drm/i915: Move pipe/transcoder/abox masks under intel_device_info.display
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Dec 2021 12:27:26 +0000 (14:27 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Dec 2021 12:58:28 +0000 (14:58 +0200)
commit6678916dfa01251b888465e2193e28affb23fca9
treeb47e4360f53810127355fb32aea86775938d3a07
parent2bebea57c2efeb7c4e981f5ff76bdca7e58ab815
drm/i915: Move pipe/transcoder/abox masks under intel_device_info.display

Collect the dipslay related mask under the display sub-structure
in intel_device_info.

Note that there is a slight change in behaviour in that we zero
out .display entirely when !HAS_DISPLAY (aka. pipe_mask==0), so
now we also zero out the other masks (although cpu_transocder_mask
should already be zero of pipe_mask is zero). abox_mask is
only used by the display core init when HAS_DISPLAY is true, so
the actual behaviour of the system shouldn't change despite the
zeroing of these masks.

There is a lot more display stuff directly in device info that
could be moved over. Maybe someone else will be inspired to do it...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211210122726.12577-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/intel_device_info.h