Alexandre Courbot
2016-Mar-01 08:21 UTC
[Nouveau] [PATCH] secboot/gm200: use proper memory target function
Use nvkm_memory_target() to know the location of the instance block used for secure boot, instead of guessing through the presence of a RAM device. Signed-off-by: Alexandre Courbot <acourbot at nvidia.com> --- Ben, feel free to squash this one into the original secboot patch since it is a really minor fix. drm/nouveau/nvkm/subdev/secboot/gm200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drm/nouveau/nvkm/subdev/secboot/gm200.c b/drm/nouveau/nvkm/subdev/secboot/gm200.c index b7ceba59dfb2..137c821213bb 100644 --- a/drm/nouveau/nvkm/subdev/secboot/gm200.c +++ b/drm/nouveau/nvkm/subdev/secboot/gm200.c @@ -1148,7 +1148,7 @@ gm200_secboot_setup_falcon(struct gm200_secboot *gsb) 0x4 | 0x2); /* Set context */ - if (device->fb->ram) + if (nvkm_memory_target(gsb->inst->memory) == NVKM_MEM_TARGET_VRAM) inst_loc = 0x0; /* FB */ else inst_loc = 0x3; /* Non-coherent sysmem */ -- 2.7.2
Apparently Analagous Threads
- [PATCH v3 10/11] secboot/gm200: add secure-boot support
- [PATCH] secboot/gm200: fix suspend/resume
- [PATCH v3 07/15] secboot: generate HS BL descriptor in hook
- [PATCH 03/11] drm/nouveau: secboot: Read WPR configuration from GPU registers
- [PATCH v3 05/15] secboot: remove fixup_hs_desc hook