drm/nouveau/bios/volt: Handle voltage table version 0x50 with zeroed header
authorKarol Herbst <karolherbst@gmail.com>
Tue, 12 Jul 2016 19:36:08 +0000 (21:36 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 12 Oct 2016 07:29:19 +0000 (17:29 +1000)
commit32dd7f2329765f428a824d91819bb8db7af432c5
tree59602c064bcc9499414fb5e38f72b42e3ef87309
parent380b1cadb0ef26165ba4b15fcf1bd2f1d82d0c29
drm/nouveau/bios/volt: Handle voltage table version 0x50 with zeroed header

Some Fermi+ GPUs specify VID information via voltage table entries, rather
than describing them as a range in the header.

The mask may be bigger than 0x1fffff, but this value is already >2V, so it
will be fine for now.

This patch fixes volting issues on those cards enabling them to switch
cstates.

v6: rework message

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
Tested-by: Pierre Moreau <pierre.morrow@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c