From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Matthew Auld <matthew.auld@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
Jonathan Cavitt <jonathan.cavitt@intel.com>,
Matt Roper <matthew.d.roper@intel.com>,
"Lucas De Marchi" <lucas.demarchi@intel.com>,
Vinod Govindapillai <vinod.govindapillai@intel.com>,
<intel-gfx@lists.freedesktop.org>,
"Nikula, Jani" <jani.nikula@intel.com>
Subject: Re: [PATCH 2/2] drm/i915: disable fbc due to Wa_16023588340
Date: Wed, 26 Jun 2024 11:55:41 -0400 [thread overview]
Message-ID: <Znw5_WqRPnstGEit@intel.com> (raw)
In-Reply-To: <b36ab824-bed9-4568-bce6-02f8c1e5d08e@intel.com>
On Wed, Jun 26, 2024 at 04:14:02PM +0100, Matthew Auld wrote:
> On 25/06/2024 09:09, Matthew Auld wrote:
> > On 19/06/2024 15:31, Matthew Auld wrote:
> > > On BMG-G21 we need to disable fbc due to complications around the WA.
> > >
> > > Signed-off-by: Matthew Auld <matthew.auld@intel.com>
> > > Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
> > > Cc: Matt Roper <matthew.d.roper@intel.com>
> > > Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> > > Cc: Vinod Govindapillai <vinod.govindapillai@intel.com>
> > > Cc: intel-gfx@lists.freedesktop.org
> > Can this be merged via drm-xe-next? The first patch is the xe centric
> > part of the WA, but here this is touching i915 display and xe.
>
> Ping? Can this be landed via drm-xe-next? Lucas, Jani?
I'm afraid this patch-2 only submission to intel-gfx didn't trigger
the i915 CI. probably good to submit the entire series to both mailing
lists so we get both CIs?
>
> >
> > > ---
> > > drivers/gpu/drm/i915/display/intel_display_wa.h | 8 ++++++++
> > > drivers/gpu/drm/i915/display/intel_fbc.c | 6 ++++++
> > > drivers/gpu/drm/xe/Makefile | 4 +++-
> > > drivers/gpu/drm/xe/display/xe_display_wa.c | 16 ++++++++++++++++
> > > 4 files changed, 33 insertions(+), 1 deletion(-)
> > > create mode 100644 drivers/gpu/drm/xe/display/xe_display_wa.c
> > >
> > > diff --git a/drivers/gpu/drm/i915/display/intel_display_wa.h
> > > b/drivers/gpu/drm/i915/display/intel_display_wa.h
> > > index 63201d09852c..be644ab6ae00 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_display_wa.h
> > > +++ b/drivers/gpu/drm/i915/display/intel_display_wa.h
> > > @@ -6,8 +6,16 @@
> > > #ifndef __INTEL_DISPLAY_WA_H__
> > > #define __INTEL_DISPLAY_WA_H__
> > > +#include <linux/types.h>
> > > +
> > > struct drm_i915_private;
> > > 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; }
> > > +#else
> > > +bool intel_display_needs_wa_16023588340(struct drm_i915_private *i915);
> > > +#endif
> > > +
> > > #endif
> > > diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c
> > > b/drivers/gpu/drm/i915/display/intel_fbc.c
> > > index 67116c9f1464..8488f82143a4 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_fbc.c
> > > +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
> > > @@ -56,6 +56,7 @@
> > > #include "intel_display_device.h"
> > > #include "intel_display_trace.h"
> > > #include "intel_display_types.h"
> > > +#include "intel_display_wa.h"
> > > #include "intel_fbc.h"
> > > #include "intel_fbc_regs.h"
> > > #include "intel_frontbuffer.h"
> > > @@ -1237,6 +1238,11 @@ static int intel_fbc_check_plane(struct
> > > intel_atomic_state *state,
> > > return 0;
> > > }
> > > + if (intel_display_needs_wa_16023588340(i915)) {
> > > + plane_state->no_fbc_reason = "Wa_16023588340";
> > > + return 0;
> > > + }
> > > +
> > > /* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */
> > > if (i915_vtd_active(i915) && (IS_SKYLAKE(i915) ||
> > > IS_BROXTON(i915))) {
> > > plane_state->no_fbc_reason = "VT-d enabled";
> > > diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> > > index 0e16e5029081..f7521fd5db4c 100644
> > > --- a/drivers/gpu/drm/xe/Makefile
> > > +++ b/drivers/gpu/drm/xe/Makefile
> > > @@ -34,7 +34,8 @@ uses_generated_oob := \
> > > $(obj)/xe_ring_ops.o \
> > > $(obj)/xe_vm.o \
> > > $(obj)/xe_wa.o \
> > > - $(obj)/xe_ttm_stolen_mgr.o
> > > + $(obj)/xe_ttm_stolen_mgr.o \
> > > + $(obj)/display/xe_display_wa.o \
> > > $(uses_generated_oob): $(generated_oob)
> > > @@ -192,6 +193,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
> > > display/xe_display.o \
> > > display/xe_display_misc.o \
> > > display/xe_display_rps.o \
> > > + display/xe_display_wa.o \
> > > display/xe_dsb_buffer.o \
> > > display/xe_fb_pin.o \
> > > display/xe_hdcp_gsc.o \
> > > diff --git a/drivers/gpu/drm/xe/display/xe_display_wa.c
> > > b/drivers/gpu/drm/xe/display/xe_display_wa.c
> > > new file mode 100644
> > > index 000000000000..68e3d1959ad6
> > > --- /dev/null
> > > +++ b/drivers/gpu/drm/xe/display/xe_display_wa.c
> > > @@ -0,0 +1,16 @@
> > > +// SPDX-License-Identifier: MIT
> > > +/*
> > > + * Copyright © 2024 Intel Corporation
> > > + */
> > > +
> > > +#include "intel_display_wa.h"
> > > +
> > > +#include "xe_device.h"
> > > +#include "xe_wa.h"
> > > +
> > > +#include <generated/xe_wa_oob.h>
> > > +
> > > +bool intel_display_needs_wa_16023588340(struct drm_i915_private *i915)
> > > +{
> > > + return XE_WA(xe_root_mmio_gt(i915), 16023588340);
> > > +}
next prev parent reply other threads:[~2024-06-26 15:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240619143127.110045-3-matthew.auld@intel.com>
2024-06-19 14:31 ` [PATCH 2/2] drm/i915: disable fbc due to Wa_16023588340 Matthew Auld
2024-06-20 22:20 ` Cavitt, Jonathan
2024-06-25 8:09 ` Matthew Auld
2024-06-26 15:14 ` Matthew Auld
2024-06-26 15:55 ` Rodrigo Vivi [this message]
2024-06-26 16:18 ` Matthew Auld
2024-06-26 15:53 ` Rodrigo Vivi
2024-06-26 16:17 ` Matthew Auld
2024-06-26 17:26 ` Rodrigo Vivi
2024-06-26 17:42 ` Matt Roper
2024-06-28 5:30 ` Lucas De Marchi
2024-06-28 18:36 ` Rodrigo Vivi
2024-06-28 20:23 ` Lucas De Marchi
2024-07-02 10:24 ` Jani Nikula
2024-07-02 10:18 ` Jani Nikula
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=Znw5_WqRPnstGEit@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=jonathan.cavitt@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=matthew.auld@intel.com \
--cc=matthew.d.roper@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;
as well as URLs for NNTP newsgroup(s).