From 65318734645c35a1612f76b856a84b9fb995d7e3 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Mon, 14 Dec 2015 12:50:51 +0200 Subject: [PATCH] drm/i915/opregion: make VBT size limit more strict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The VBT in OpRegion should fit in mailbox #4. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula Link: http://patchwork.freedesktop.org/patch/msgid/4bdb3f5820e3dbd1cdfa7b65cadfce4f80b880f0.1450089383.git.jani.nikula@intel.com --- drivers/gpu/drm/i915/intel_opregion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c index 859c9acbee73..1c8dfc9fca7d 100644 --- a/drivers/gpu/drm/i915/intel_opregion.c +++ b/drivers/gpu/drm/i915/intel_opregion.c @@ -988,7 +988,7 @@ int intel_opregion_setup(struct drm_device *dev) if (!dmi_check_system(intel_no_opregion_vbt)) { void *vbt = base + OPREGION_VBT_OFFSET; - u32 vbt_size = OPREGION_SIZE - OPREGION_VBT_OFFSET; + u32 vbt_size = OPREGION_ASLE_EXT_OFFSET - OPREGION_VBT_OFFSET; if (intel_bios_is_valid_vbt(vbt, vbt_size)) { DRM_DEBUG_KMS("Found valid VBT in ACPI OpRegion\n"); -- GitLab