OSDN Git Service

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)
committerJani Nikula <jani.nikula@intel.com>
Wed, 15 Feb 2017 09:29:04 +0000 (11:29 +0200)
commitdfb65e71ea2c1d97ac373cc0587dc60b3307581a
tree5d2ea3900cd1957f08de030e39c6fb0a0b715424
parent4ac9659ef9f110a8f651e5a75c24e1ac439b44ff
drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT

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.

Cc: stable@vger.kernel.org
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
drivers/gpu/drm/i915/intel_opregion.c