[PATCH] drm/nouveau/volt/gf117: fix speedo readout register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
---
 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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux