secboot/gm200: use proper memory target function
PATCH 1/1 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 <[email protected]>
---
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(-)
drm/nouveau/nvkm/subdev/secboot/gm200.c +1 -1
@@ -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 */
Signature · 6 lines
2.7.2 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau