summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNemesa Garg <nemesa.garg@intel.com>2024-10-28 10:11:53 +0530
committerSuraj Kandpal <suraj.kandpal@intel.com>2024-10-28 10:20:13 +0530
commitd9fa32dd92eb162cf996d2881a9596b28d91eb64 (patch)
tree9ed47d5bf2c9eb6516e2fd056d3ed8e2b71545c0
parent0d018d1dc62222176a5e30b052e0133c63d3be8e (diff)
downloadlwn-d9fa32dd92eb162cf996d2881a9596b28d91eb64.tar.gz
lwn-d9fa32dd92eb162cf996d2881a9596b28d91eb64.zip
drm/i915/display: Add Wa_16023981245
Disable the support for odd panning in x direction. v2: Replace HSD with WA in commit message [Suraj] Modified the condition for handling odd panning v3: Simplified the condition for checking hsub Using older framework for wa as rev1[Jani] v4: Modify the condition for hsub [Sai Teja] Initialize hsub in else path [Dan] v5: Replace IS_LUNARLAKE with display version. Resolve nitpicks[Jani] v6: Replace -EINVAL with hsub [Suraj] Remove src_w check as not required v7: Remove check for NV12. Add check for PTL as well [Matt] v8: Alignment fix Continuing discussions from: https://patchwork.freedesktop.org/series/136416/ Signed-off-by: Nemesa Garg <nemesa.garg@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241028044153.1605209-1-nemesa.garg@intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_atomic_plane.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
index b7e462075ded..73fe36f00dae 100644
--- a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
+++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
@@ -1024,6 +1024,12 @@ int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state)
*/
hsub = 1;
vsub = 1;
+
+ /* Wa_16023981245 */
+ if ((DISPLAY_VER_FULL(i915) == IP_VER(20, 0) ||
+ DISPLAY_VER_FULL(i915) == IP_VER(30, 0)) &&
+ src_x % 2 != 0)
+ hsub = 2;
} else {
hsub = fb->format->hsub;
vsub = fb->format->vsub;