]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: skip display initialization when there is no display
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 8 Apr 2021 20:31:50 +0000 (13:31 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 9 Apr 2021 20:30:43 +0000 (13:30 -0700)
commit2d14f3bb1f546ad5a81c5f14e1aa346f2a9bef4a
tree949135d79f1e9b4275141b6d499460aa09225e7b
parent84efb596cd18d2d837d67a3b2a72d1f345b26734
drm/i915: skip display initialization when there is no display

Display features should not be initialized or de-initialized when there
is no display. Skip modeset initialization, output setup, plane, crtc,
encoder, connector registration, display cdclk and rawclk
initialization, display core initialization, etc.

Skip the functionality at as high level as possible, and remove any
redundant checks. If the functionality is conditional to *other* display
checks, do not add more. If the un-initialization has checks for
initialization, do not add more.

We explicitly do not care about any GMCH/VLV/CHV code paths, as they've
always had and will have display.

Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210408203150.237947-3-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_gmbus.c
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/display/intel_pps.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_suspend.c