Message ID | 20181214034409.30410-2-imirkin@alum.mit.edu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/nouveau/volt/gf117: fix speedo readout register | expand |
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
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@alum.mit.edu> --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)