drm/i915: Fix wrongly populated plane possible_crtcs bit mask
authorAnshuman Gupta <anshuman.gupta@intel.com>
Wed, 26 Feb 2020 16:35:17 +0000 (22:05 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Feb 2020 13:40:46 +0000 (15:40 +0200)
commit6875eb3ff5a37b73cd59bb6dcb6828ade1f62e66
treeaf220132706c3c7af087a7d5b4838e00c51df3c6
parentd22d2d073ef859b346bc32cb25299262e3973769
drm/i915: Fix wrongly populated plane possible_crtcs bit mask

As a disabled pipe in pipe_mask is not having a valid intel crtc,
driver wrongly populates the possible_crtcs mask while initializing
the plane for a CRTC. Fixing up the plane possible_crtcs mask.

changes since RFC:
- Simplify the possible_crtcs initialization. [Ville]
v2:
- Removed the unnecessary stack garbage possible_crtcs to
  drm_universal_plane_init. [Ville]
v3:
- Combine the intel_crtc assignment and declaration. [Ville]
v4:
- Fix possible_crtcs abused bits from
  intel_{primary,curosr,sprite}_plane_create(). [Ville]

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200226163517.31234-1-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_sprite.c