[Nouveau] [PATCH v2 11/14] secboot: disable falcon interrupts before running
Alexandre Courbot
acourbot at nvidia.com
Thu Oct 27 04:37:05 UTC 2016
Make sure we are not disturbed by spurious interrupts, as we poll the
halt bit anyway.
Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
---
drm/nouveau/nvkm/subdev/secboot/gm200.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drm/nouveau/nvkm/subdev/secboot/gm200.c b/drm/nouveau/nvkm/subdev/secboot/gm200.c
index 75f7d381a0c9..9218e8187a84 100644
--- a/drm/nouveau/nvkm/subdev/secboot/gm200.c
+++ b/drm/nouveau/nvkm/subdev/secboot/gm200.c
@@ -26,6 +26,7 @@
#include <core/gpuobj.h>
#include <subdev/fb.h>
+#include <subdev/mc.h>
/**
* gm200_secboot_setup_falcon() - set up the secure falcon for secure boot
@@ -99,6 +100,9 @@ gm200_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob)
if (ret)
goto done;
+ /* Disable interrupts as we will poll for the HALT bit */
+ nvkm_mc_intr_mask(sb->subdev.device, sb->devidx, false);
+
/* Start the HS bootloader */
ret = nvkm_secboot_falcon_run(sb);
if (ret)
--
2.10.0
More information about the Nouveau
mailing list