drm/nouveau/volt: save the voltage range we are able to set
authorKarol Herbst <nouveau@karolherbst.de>
Fri, 26 Feb 2016 06:49:08 +0000 (07:49 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:53:25 +0000 (11:53 +1000)
commit437bb44d382c9570307393bad8d4eb0bc6e21b62
tree428115b830237b6e862f877772fecb8c40442605
parent22b6c9e8fef4553017a92ed5e27451e0b2f9c5ce
drm/nouveau/volt: save the voltage range we are able to set

We shouldn't set voltages below the min or above the max voltage the gpu is
able to set, so save the range for future lookups.

Signed-off-by: Karol Herbst <karolherbst@gmail.de>
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/include/nvkm/subdev/volt.h
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c