summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2023-01-31 08:37:15 +1000
committerLyude Paul <lyude@redhat.com>2023-01-30 18:50:09 -0500
commit90741096769bd75152a5fe397343e5893c7d905a (patch)
tree373961729f868cc41fac9763c29a88b6b018ee28 /drivers/gpu/drm/nouveau/nvkm/core/firmware.c
parentb480600988181c411d46a7f8da24d78d1e5ee151 (diff)
drm/nouveau/acr/gm20b: regression fixes
Missed some Tegra-specific quirks when reworking ACR to support Ampere. Fixes: 2541626cfb79 ("drm/nouveau/acr: use common falcon HS FW code for ACR FWs") Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt> Tested-by: Nicolas Chauvet <kwizart@gmail.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230130223715.1831509-3-bskeggs@redhat.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/core/firmware.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/core/firmware.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
index fcf2a002f6cb..91fb494d4009 100644
--- a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
+++ b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
@@ -151,6 +151,9 @@ nvkm_firmware_mem_page(struct nvkm_memory *memory)
static enum nvkm_memory_target
nvkm_firmware_mem_target(struct nvkm_memory *memory)
{
+ if (nvkm_firmware_mem(memory)->device->func->tegra)
+ return NVKM_MEM_TARGET_NCOH;
+
return NVKM_MEM_TARGET_HOST;
}