Skip to contentSkip to conversation

drm/nouveau/falcon: avoid touching registers if engine is off

PATCH New Ilia Mirkin 2 participants 2 messages Dec 14, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/falcon: avoid touching registers if engine is off

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108980

---
 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c +5 -2
index 816ccaedfc73..8675613e142b 100644
@@ -22,6 +22,7 @@
 #include <engine/falcon.h>
 
 #include <core/gpuobj.h>
+#include <subdev/mc.h>
 #include <subdev/timer.h>
 #include <engine/fifo.h>
 
@@ -107,8 +108,10 @@ nvkm_falcon_fini(struct nvkm_engine *engine, bool suspend)
 		}
 	}
 
-	nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
-	nvkm_wr32(device, base + 0x014, 0xffffffff);
+	if (nvkm_mc_enabled(device, engine->subdev.index)) {
+		nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
+		nvkm_wr32(device, base + 0x014, 0xffffffff);
+	}
 	return 0;
 }
 
Signature · 6 lines
2.18.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

A message that is not in the archive (sent off-list or not yet received): 20181214034409.30410-1-imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]

#2 lore raw

PATCH 1/1 drm/nouveau/volt/gf117: fix speedo readout register

GF117 appears to use the same register as GK104 (but still with the general Fermi readout mechanism).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108980

---
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c +2 -1
index d9ed6925ca64..d87c2efe67e7 100644
@@ -30,11 +30,12 @@ gf100_volt_speedo_read(struct nvkm_volt *volt)
 {
 	struct nvkm_device *device = volt->subdev.device;
 	struct nvkm_fuse *fuse = device->fuse;
+	const u32 speedo_fuse = device->chipset == 0xd7 ? 0x3a8 : 0x1cc;
 
 	if (!fuse)
 		return -EINVAL;
 
-	return nvkm_fuse_read(fuse, 0x1cc);
+	return nvkm_fuse_read(fuse, speedo_fuse);
 }
 
 int
Signature · 6 lines
2.18.1

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau