[PATCH] drm/i915/display: WA for odd pan
Nemesa Garg
nemesa.garg at intel.com
Thu Aug 8 06:17:24 UTC 2024
Signed-off-by: Nemesa Garg <nemesa.garg at intel.com>
---
drivers/gpu/drm/i915/display/intel_atomic_plane.c | 7 +++++++
drivers/gpu/drm/i915/display/intel_display_wa.h | 2 ++
drivers/gpu/drm/xe/display/xe_display_wa.c | 5 +++++
3 files changed, 14 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
index e979786aa5cf..e106feb87941 100644
--- a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
+++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
@@ -47,11 +47,13 @@
#include "intel_display_rps.h"
#include "intel_display_trace.h"
#include "intel_display_types.h"
+#include "intel_display_wa.h"
#include "intel_fb.h"
#include "intel_fb_pin.h"
#include "skl_scaler.h"
#include "skl_watermark.h"
+
static void intel_plane_state_reset(struct intel_plane_state *plane_state,
struct intel_plane *plane)
{
@@ -1025,6 +1027,11 @@ int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state)
vsub = 2;
} else if (DISPLAY_VER(i915) >= 20 &&
intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) {
+ /*
+ * Wa_16023981245 for display version 20.
+ */
+ if (intel_display_needs_wa_16023981245(i915))
+ return -EINVAL;
/*
* This allows NV12 and P0xx formats to have odd size and/or odd
* source coordinates on DISPLAY_VER(i915) >= 20
diff --git a/drivers/gpu/drm/i915/display/intel_display_wa.h b/drivers/gpu/drm/i915/display/intel_display_wa.h
index be644ab6ae00..9be35a751503 100644
--- a/drivers/gpu/drm/i915/display/intel_display_wa.h
+++ b/drivers/gpu/drm/i915/display/intel_display_wa.h
@@ -14,8 +14,10 @@ void intel_display_wa_apply(struct drm_i915_private *i915);
#ifdef I915
static inline bool intel_display_needs_wa_16023588340(struct drm_i915_private *i915) { return false; }
+static inline bool intel_display_needs_wa_16023981245(struct drm_i915_private *i915) { return false; }
#else
bool intel_display_needs_wa_16023588340(struct drm_i915_private *i915);
+bool intel_display_needs_wa_16023981245(struct drm_i915_private *i915);
#endif
#endif
diff --git a/drivers/gpu/drm/xe/display/xe_display_wa.c b/drivers/gpu/drm/xe/display/xe_display_wa.c
index 68e3d1959ad6..4be2e5e62748 100644
--- a/drivers/gpu/drm/xe/display/xe_display_wa.c
+++ b/drivers/gpu/drm/xe/display/xe_display_wa.c
@@ -14,3 +14,8 @@ bool intel_display_needs_wa_16023588340(struct drm_i915_private *i915)
{
return XE_WA(xe_root_mmio_gt(i915), 16023588340);
}
+
+bool intel_display_needs_wa_16023981245(struct drm_i915_private *i915)
+{
+ return XE_WA(xe_root_mmio_gt(i915), 22019338487_display);
+}
--
2.25.1
More information about the Intel-gfx-trybot
mailing list