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 Skeggs <bskeggs@redhat.com>
Fri, 2 May 2014 06:24:52 +0000 (16:24 +1000)
commita3d0b1218d351c6e6f3cea36abe22236a08cb246
treea430656643c44a3cf65be966d4625e2f41fdea24
parent40189b0c6551359a9268c8d6f730914b28623817
drm/nouveau/acpi: allow non-optimus setups to load vbios from acpi

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>
Cc: <stable@vger.kernel.org> # v2.6.35+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_acpi.c