Fix some VID parsing in the voltage table version 0x50

Submitted by Karol Herbst on March 16, 2016, 5:18 p.m.


Reviewer None
Submitted March 16, 2016, 5:18 p.m.
Last Updated March 16, 2016, 5:18 p.m.
Revision 1

Cover Letter(s)

Revision 1
      On a very few GPUs with the voltage table version 0x50 we have to read out
the VIDs out of the entries of the table, where all the other gpus are either
PWM based or get a base and a step voltage out of the table header.

Currently nouveau tried to autodetect this and actually doesn't parse the

This Series adds two things:
1. It parses the entries
2. It decides upon a field in the voltage table to either use the base+step or
   entries approach

This fixes volting on some GPUs

Karol Herbst (2):
  bios/volt: handle voltage table version 0x50 with 0ed header
  volt: properly detect entry based voltage tables

 drm/nouveau/include/nvkm/subdev/bios/volt.h |  5 +++--
 drm/nouveau/nvkm/subdev/bios/volt.c         | 16 ++++++++++------
 drm/nouveau/nvkm/subdev/volt/base.c         |  7 +++++--
 3 files changed, 18 insertions(+), 10 deletions(-)