[Nouveau] [PATCH] drm/nouveau/volt/gf117: fix speedo readout register
Ilia Mirkin
imirkin at alum.mit.edu
Fri Dec 14 03:44:09 UTC 2018
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
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c
index d9ed6925ca64..d87c2efe67e7 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c
@@ -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
--
2.18.1
More information about the Nouveau
mailing list