Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Vinod Govindapillai <vinod.govindapillai@intel.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	ville.syrjala@intel.com, juha-pekka.heikkila@intel.com
Subject: Re: [PATCH v3 2/3] drm/i915/fbc: Apply Wa_14028723391
Date: Tue, 27 Oct 2026 17:13:56 +0200	[thread overview]
Message-ID: <auC_tAQTwUlC67Wv@intel.com> (raw)
In-Reply-To: <20261027150544.81548-2-vinod.govindapillai@intel.com>

On Tue, Oct 27, 2026 at 05:05:43PM +0200, Vinod Govindapillai wrote:
> Disable FBC in XE3P_LPD for FP16 formats with Alpha.
> 
> v2: Group the wa conditions as a separate function
>     Wa condition to check pixel blend mode
> 
> v3: use fomrat_is_float()
> 
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> ---
>  .../gpu/drm/i915/display/intel_display_wa.c   |  2 ++
>  .../gpu/drm/i915/display/intel_display_wa.h   |  1 +
>  drivers/gpu/drm/i915/display/intel_fbc.c      | 22 +++++++++++++++++++
>  3 files changed, 25 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display_wa.c b/drivers/gpu/drm/i915/display/intel_display_wa.c
> index cc0b28d524f6..3df25104fb12 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_wa.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_wa.c
> @@ -159,6 +159,8 @@ bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa,
>  		return IS_DISPLAY_VERx100(display, 1100, 1400);
>  	case INTEL_DISPLAY_WA_22021048059:
>  		return IS_DISPLAY_VER(display, 14, 35);
> +	case INTEL_DISPLAY_WA_14028723391:
> +		return DISPLAY_VER(display) == 35;
>  	default:
>  		drm_WARN(display->drm, 1, "Missing Wa: %s\n", name);
>  		break;
> diff --git a/drivers/gpu/drm/i915/display/intel_display_wa.h b/drivers/gpu/drm/i915/display/intel_display_wa.h
> index 2086c7da710d..5514771f513b 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_wa.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_wa.h
> @@ -56,6 +56,7 @@ enum intel_display_wa {
>  	INTEL_DISPLAY_WA_22012358565,
>  	INTEL_DISPLAY_WA_22014263786,
>  	INTEL_DISPLAY_WA_22021048059,
> +	INTEL_DISPLAY_WA_14028723391,
>  };
>  
>  bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa, const char *name);
> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
> index b84fa350c433..f70f3e34d655 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
> @@ -1215,6 +1215,23 @@ static bool xe3p_lpd_fbc_pixel_format_is_valid(const struct intel_plane_state *p
>  	}
>  }
>  
> +static bool
> +intel_fbc_wa_14028723391_applies(const struct intel_plane_state *plane_state)
> +{
> +	struct intel_display *display = to_intel_display(plane_state);
> +	const struct drm_framebuffer *fb = plane_state->hw.fb;
> +
> +	/*
> +	 * Wa_14028723391:
> +	 * Fixes: Screen corruption with FBC enabled on a plane with the FP16
> +	 * Workaround: Disable FBC for FP16+Alpha in xe3p_lpd
> +	 */
> +	return intel_display_wa(display, INTEL_DISPLAY_WA_14028723391) &&
> +	       format_is_float(plane_state) &&
> +	       fb->format->has_alpha &&
> +	       plane_state->hw.pixel_blend_mode != DRM_MODE_BLEND_PIXEL_NONE;

Seems overly complicated. Could just drop the alpha formats from
the list and be done with it.

> +}
> +
>  bool intel_fbc_need_pixel_normalizer(const struct intel_plane_state *plane_state)
>  {
>  	struct intel_display *display = to_intel_display(plane_state);
> @@ -1679,6 +1696,11 @@ static int intel_fbc_check_plane(struct intel_atomic_state *state,
>  		return 0;
>  	}
>  
> +	if (intel_fbc_wa_14028723391_applies(plane_state)) {
> +		plane_state->no_fbc_reason = "Wa_14028723391";
> +		return 0;
> +	}
> +
>  	if (!tiling_is_valid(plane_state)) {
>  		plane_state->no_fbc_reason = "tiling not supported";
>  		return 0;
> -- 
> 2.43.0

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2026-10-27 15:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27 15:05 [PATCH v3 1/3] drm/i915/fbc: update the supported FP16 formats Vinod Govindapillai
2026-10-27 15:05 ` [PATCH v3 2/3] drm/i915/fbc: Apply Wa_14028723391 Vinod Govindapillai
2026-10-27 15:13   ` Ville Syrjälä [this message]
2026-10-27 15:53     ` Govindapillai, Vinod
2026-10-27 16:06       ` Ville Syrjälä
2026-10-27 15:05 ` [PATCH v3 3/3] drm/i915/fbc: update pixel normalizer condition for FBC FP16 formats Vinod Govindapillai
2026-10-27 17:01 ` ✓ i915.CI.BAT: success for series starting with [v3,1/3] drm/i915/fbc: update the supported " Patchwork
2026-10-27 21:52 ` ✓ i915.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=auC_tAQTwUlC67Wv@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=juha-pekka.heikkila@intel.com \
    --cc=ville.syrjala@intel.com \
    --cc=vinod.govindapillai@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox