[Intel-gfx] [PATCH 07/11] drm/i915/opregion: make VBT size limit more strict
Jani Nikula
jani.nikula at intel.com
Mon Dec 14 02:50:51 PST 2015
The VBT in OpRegion should fit in mailbox #4.
Signed-off-by: Jani Nikula <jani.nikula at 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 9f992e7c6185..3c76a8684ff2 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))
opregion->vbt = vbt;
--
2.1.4
More information about the Intel-gfx
mailing list