]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/vga: Clean up VGA registers even if VGA plane is disabled
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 8 Dec 2025 18:26:24 +0000 (20:26 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 Jan 2026 03:20:27 +0000 (05:20 +0200)
commitf1640f9d7fa44b19f06aa0e9b2e99bdd8e62863a
tree7527c9067ddc3f967f6ab4a68147fb1199b5f4d9
parent46ccf3fb55d5260e6e3535fec7bcb85f3e9ba667
drm/i915/vga: Clean up VGA registers even if VGA plane is disabled

Turns out at least some systems (eg. HSW Lenovo ThinkCentre E73)
configure the VGA registers even when booting in UEFI mode. So
in order to avoid any issues with the MSR register we should
clean up the VGA registers anyway.

For now this mostly avoids the potential for unclaimed register
accesses due to the power well vs. MDA/CGA selection. But this
will become more important soon as we'll start to rely on the
MSR register to control VGA memory decode as well.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251208182637.334-7-ville.syrjala@linux.intel.com
Acked-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_vga.c