]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau/volt: Fix for some cards having 0 maximum voltage
authorMark Menzynski <mmenzyns@redhat.com>
Fri, 2 Aug 2019 09:21:00 +0000 (11:21 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 23 Aug 2019 02:55:34 +0000 (12:55 +1000)
commita1af2afbd244089560794c260b2d4326a86e39b6
tree5a0da1d208a192c3022685081f501785b7002052
parented22eb56f2bf2908fef7a108809ffa208ff62c0c
drm/nouveau/volt: Fix for some cards having 0 maximum voltage

Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks.

When changing this value Nvidia driver still appeared to ignore it, and I wasn't able to find out why, thus the code is ignoring the value if it is zero.

CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Mark Menzynski <mmenzyns@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c