ACPI: Populate DIDL before registering ACPI video device on Intel
authorMatthew Garrett <mjg59@srcf.ucam.org>
Thu, 19 Mar 2009 21:35:39 +0000 (21:35 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 28 Mar 2009 02:11:03 +0000 (22:11 -0400)
commit74a365b3f354fafc537efa5867deb7a9fadbfe27
tree66ebff203807d2ed77e77e1ccc2f71f63e571098
parentc60d638e29c780b75b648283a197d0226e3576c3
ACPI: Populate DIDL before registering ACPI video device on Intel

Intel graphics hardware that implements the ACPI IGD OpRegion spec
requires that the list of display devices be populated before any ACPI
video methods are called. Detect when this is the case and defer
registration until the opregion code calls it. Fixes crashes on HP
laptops.

http://bugzilla.kernel.org/show_bug.cgi?id=11259

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_opregion.c
include/acpi/video.h [new file with mode: 0644]