]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT
authorHans de Goede <hdegoede@redhat.com>
Tue, 14 Feb 2017 16:12:38 +0000 (18:12 +0200)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 15 Mar 2017 15:32:11 +0000 (10:32 -0500)
commit6903a4dbff67bc135edcba4b6b6506f717deb5df
treef3a26c189c07b1858a05beab6b01b62f82240cca
parentc74631c940099a7fcc839e537abf55e56f27e5a5
drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT

BugLink: http://bugs.launchpad.net/bugs/1673118
commit 998d75730b40afc218c059d811869abe9676b305 upstream.

If there is no OPREGION_ASLE_EXT then a VBT stored in mailbox #4 may
use the ASLE_EXT parts of the opregion. Adjust the vbt_size calculation
for a vbt in mailbox #4 for this.

This fixes the driver not finding the VBT on a jumper ezpad mini3
cherrytrail tablet and on a ACER SW5_017 machine.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1487088758-30050-1-git-send-email-jani.nikula@intel.com
(cherry picked from commit dfb65e71ea2c1d97ac373cc0587dc60b3307581a)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/i915/intel_opregion.c