]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/display: Extract display init from intel_device_info_runtime_init
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 2 Jun 2023 18:14:50 +0000 (11:14 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 5 Jun 2023 23:00:37 +0000 (16:00 -0700)
commit2d0cdf6020549400d93a3f56f09373ece71c76da
tree6b73c7ca8a68e59a9cfe461f61d4af03a9e52627
parent19db2062094c75c64039d820c2547aad4dcfd905
drm/i915/display: Extract display init from intel_device_info_runtime_init

Moving display-specific runtime info initialization into display/ makes
the display code more self-contained and also makes it easier to call
from the Xe driver.

v2:
 - Drop unnecessary display/ prefix from #includes.  (Jani)
 - Clear runtime info if fusing leaves no pipes remaining, the same as
   we do when fusing indicates the entire display controller is
   unavailable.  (Jani)
 - Move adjustment of DRIVER_MODESET / DRIVER_ATOMIC after call to
   intel_display_device_info_runtime_init(); HAS_DISPLAY may have
   changed to false during the runtime init.  (Jani)

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230602181450.1151368-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h
drivers/gpu/drm/i915/intel_device_info.c