[Nouveau] [PATCH v4 17/33] secboot: set default error value in error register

Alexandre Courbot acourbot at nvidia.com
Mon Nov 21 08:29:14 UTC 2016


Set a default error value in the mailbox 0 register so we can catch
cases where the secure boot binary fails early without being able to
report anything.

Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
---
 drm/nouveau/nvkm/subdev/secboot/gm200.c | 2 ++
 1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/drm/nouveau/nvkm/subdev/secboot/gm200.c b/drm/nouveau/nvkm/subdev/secboot/gm200.c
index 3239a2723e70..34064a4c177a 100644
--- a/drm/nouveau/nvkm/subdev/secboot/gm200.c
+++ b/drm/nouveau/nvkm/subdev/secboot/gm200.c
@@ -68,6 +68,8 @@ gm200_secboot_setup_falcon(struct gm200_secboot *gsb, struct nvkm_acr *acr)
 	/* Set boot vector to code's starting virtual address */
 	nvkm_wr32(device, base + 0x104, acr->start_address);
 
+	/* Set default error value in mailbox register */
+	nvkm_wr32(device, base + 0x040, 0xdeada5a5);
 	/* Clear mailbox register used to reflect capabilities */
 	nvkm_wr32(device, base + 0x044, 0x0);
 
-- 
git-series 0.8.10


More information about the Nouveau mailing list