From 317076e5b98fd39dd1a7ee456900bb1e5447ae7d Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Wed, 12 Dec 2018 23:53:32 -0500 Subject: [PATCH] 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 Signed-off-by: Ilia Mirkin --- 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