]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bios: fix offset calculation for BMPv1 bioses
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Jan 2014 17:33:59 +0000 (12:33 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 8 Jan 2014 05:56:10 +0000 (15:56 +1000)
commit031a5425dd059fdffd49ab9210fe8bab15756f47
tree18507e2b1e801c604b5c29d843fc00a7b8f2c13c
parent6540428d46b3a675e07e5c83c6d7ee4bff440416
drm/nouveau/bios: fix offset calculation for BMPv1 bioses

The only BIOS on record that needs the 14 offset has a bios major
version 2 but BMP version 1.01. Another bunch of BIOSes that need the 18
offset have BMP version 2.01 or 5.01 or higher. So instead of looking at the
bios major version, look at the BMP version. BIOSes with BMP version 0
do not contain a detectable script, so always return 0 for them.

See https://bugs.freedesktop.org/show_bug.cgi?id=68835

Reported-by: Mauro Molinari <mauromol@tiscali.it>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/init.c