]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bios/therm: handle vbioses with duplicate entries (mostly nva5)
authorMartin Peres <martin.peres@labri.fr>
Fri, 30 Aug 2013 23:58:50 +0000 (01:58 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:48:52 +0000 (13:48 +1000)
commit51c47a01ece63db41297c7e4821f96b5e6213d22
tree9a92326853deb2e0e1adcd024c427284278aa760
parentac05ccf8233cb9fbedc6c8427668f90518500157
drm/nouveau/bios/therm: handle vbioses with duplicate entries (mostly nva5)

Some vbioses have extra useless entries after "the end" of the table. This is
problematic since all of the vbios I found with this issue redefine the
pwm freq divider to insane levels (52750 Hz instead of 2500), thus breaking
fan management.

The first solution to solve this mess would be to change the length of the
table. The solution I choose was simply to avoid setting the pwm freq twice
as the other redefinitions are harmless with our current parser.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Reported-by: Mariusz Bialonczyk <manio@skyboo.net>
Tested-by: Mariusz Bialonczyk <manio@skyboo.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/therm.c