diff options
author | Karol Herbst <karolherbst@gmail.com> | 2016-07-12 21:36:08 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-10-12 17:29:20 +1000 |
commit | 4a4555a7f1dd60fe34336f440ff1de73313820ee (patch) | |
tree | 40b794fd541501aa008a5d23fbcad526a6ad328d /drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h | |
parent | 17d063dbdce3bab04957b2281dcdceecb7407170 (diff) | |
download | linux-stable-4a4555a7f1dd60fe34336f440ff1de73313820ee.tar.gz linux-stable-4a4555a7f1dd60fe34336f440ff1de73313820ee.tar.bz2 linux-stable-4a4555a7f1dd60fe34336f440ff1de73313820ee.zip |
drm/nouveau/volt: Parse the max voltage map entries
There are at least three "max" entries, which specify the max voltage.
Because they are actually normal voltage map entries, they can also be
affected by the temperature.
Nvidia respects those entries and if they get changed, nvidia uses the
lower voltage from all three.
We shouldn't exceed those voltages at any given time.
v2: State what those entries do in the source.
v3: Add the third max entry.
v5: Better describe the entries.
Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h b/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h index 6633c6db9281..ae2f27be3f29 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h @@ -1,6 +1,9 @@ #ifndef __NVBIOS_VMAP_H__ #define __NVBIOS_VMAP_H__ struct nvbios_vmap { + u8 max0; + u8 max1; + u8 max2; }; u16 nvbios_vmap_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); |