drm/i915: Duplicate opregion vbt memory
authorRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Wed, 28 Feb 2024 21:32:34 +0000 (13:32 -0800)
committerJani Nikula <jani.nikula@intel.com>
Mon, 11 Mar 2024 10:37:32 +0000 (12:37 +0200)
commit0cb9b4ead00e5359e543f9c88684970ccbaf5d25
tree4e2394af5b3132c278fe1d27b33138541c6b6caa
parent9d9bb71f3e115b75ec5e38f087e159a87fc0413a
drm/i915: Duplicate opregion vbt memory

In the case of vbt residing in opregion, we simply remap the region
into the kernel and pass the memory reference. Instead duplicate the
memory to handle a saner cleanup in intel_bios_init.

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240228213235.2495611-6-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/display/intel_opregion.c