Commit bd80b0dd authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Skip cursor when writing PLANE_CHICKEN

Cursor is not a universal plane and thus doesn't have the
PLANE_CHICKEN register. Skip it.

Fixes: c5de2484 ("drm/i915/dpt: Add a modparam to disable DPT via the chicken bit")
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230329190445.13456-1-ville.syrjala@linux.intel.comReviewed-by: default avatarImre Deak <imre.deak@intel.com>
parent 1164c92b
...@@ -324,10 +324,14 @@ void intel_dpt_configure(struct intel_crtc *crtc) ...@@ -324,10 +324,14 @@ void intel_dpt_configure(struct intel_crtc *crtc)
enum pipe pipe = crtc->pipe; enum pipe pipe = crtc->pipe;
enum plane_id plane_id; enum plane_id plane_id;
for_each_plane_id_on_crtc(crtc, plane_id) for_each_plane_id_on_crtc(crtc, plane_id) {
if (plane_id == PLANE_CURSOR)
continue;
intel_de_rmw(i915, PLANE_CHICKEN(pipe, plane_id), intel_de_rmw(i915, PLANE_CHICKEN(pipe, plane_id),
PLANE_CHICKEN_DISABLE_DPT, PLANE_CHICKEN_DISABLE_DPT,
i915->params.enable_dpt ? 0 : PLANE_CHICKEN_DISABLE_DPT); i915->params.enable_dpt ? 0 : PLANE_CHICKEN_DISABLE_DPT);
}
} else if (DISPLAY_VER(i915) == 13) { } else if (DISPLAY_VER(i915) == 13) {
intel_de_rmw(i915, CHICKEN_MISC_2, intel_de_rmw(i915, CHICKEN_MISC_2,
CHICKEN_MISC_DISABLE_DPT, CHICKEN_MISC_DISABLE_DPT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment