drm/nouveau/acpi: allow non-optimus setups to load vbios from acpi
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 26 Mar 2014 23:37:21 +0000 (19:37 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 9 Jun 2014 12:29:05 +0000 (13:29 +0100)
commitea2660165758bfea9230f17c894927ad4b6b4280
tree8c2039b6128afab4c8eea152b25d3be482be27cb
parent5003eea6cec931203469521351918d4a54c18185
drm/nouveau/acpi: allow non-optimus setups to load vbios from acpi

commit a3d0b1218d351c6e6f3cea36abe22236a08cb246 upstream.

There appear to be a crop of new hardware where the vbios is not
available from PROM/PRAMIN, but there is a valid _ROM method in ACPI.
The data read from PCIROM almost invariably contains invalid
instructions (still has the x86 opcodes), which makes this a low-risk
way to try to obtain a valid vbios image.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76475
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/nouveau/nouveau_acpi.c