Skip to content

Commit

Permalink
drm/nouveau/acr/tu102-: prepare for GSP-RM
Browse files Browse the repository at this point in the history
- disable ACR completely when GSP-RM detected

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-6-skeggsb@gmail.com
  • Loading branch information
Ben Skeggs authored and Dave Airlie committed Oct 31, 2023
1 parent 015ef61 commit 74e2011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "priv.h"
#include <subdev/gsp.h>

#include <nvfw/acr.h>

Expand Down Expand Up @@ -322,5 +323,8 @@ int
ga102_acr_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_acr **pacr)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;

return nvkm_acr_new_(ga102_acr_fwif, device, type, inst, pacr);
}
3 changes: 3 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,8 @@ int
tu102_acr_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_acr **pacr)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;

return nvkm_acr_new_(tu102_acr_fwif, device, type, inst, pacr);
}

0 comments on commit 74e2011

Please sign in to comment.