Skip to contentSkip to conversation

secboot/gm200: use proper memory target function

PATCH New Alexandre Courbot 1 participant 1 message Mar 1, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
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
index b7ceba59dfb2..137c821213bb 100644
@@ -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