All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Andi Shyti <andi.shyti@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/5] drm/i915: Disable compression tricks on JSL
Date: Fri, 28 Jun 2024 13:57:24 +0300	[thread overview]
Message-ID: <Zn6XFAL_x4jEF8gL@intel.com> (raw)
In-Reply-To: <Zn3oqMm-oAIS55ot@ashyti-mobl2.lan>

On Fri, Jun 28, 2024 at 12:33:12AM +0200, Andi Shyti wrote:
> Hi Ville,
> 
> On Mon, Jun 24, 2024 at 06:05:34PM +0300, Ville Syrjala wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > 
> > Bspec asks us to disable some compression trick on JSL. While the
> > bspec description is pretty vague it looks like this is some extra
> > trick for 10bpc+ CCS which presumably the ICL derived display engine
> > doesn't support.
> > 
> > Note that we aren't currently exposing 10bpc CCS scanout support,
> > but once that gets added this presumably becomes an issue.
> > 
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> >  drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 1 +
> >  drivers/gpu/drm/i915/gt/intel_workarounds.c | 9 +++++++++
> >  2 files changed, 10 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/gt/intel_gt_regs.h b/drivers/gpu/drm/i915/gt/intel_gt_regs.h
> > index e42b3a5d4e63..af53c40e6c21 100644
> > --- a/drivers/gpu/drm/i915/gt/intel_gt_regs.h
> > +++ b/drivers/gpu/drm/i915/gt/intel_gt_regs.h
> > @@ -432,6 +432,7 @@
> >  #define XEHPG_INSTDONE_GEOM_SVG			MCR_REG(0x666c)
> >  
> >  #define CACHE_MODE_0_GEN7			_MMIO(0x7000) /* IVB+ */
> > +#define   DISABLE_REPACKING_FOR_COMPRESSION	REG_BIT(15) /* jsl+ */
> 
> I know that REG_BIT() is the correct one, but for conformity I
> would still use (1 << 15), otherwise we would have a mess of
> styles.

The file is full of both. I guess I could throw in a patch to
finish the conversion...

> 
> Besides, you are breaking the order here.

The order here is wrong for whatever reason. I suppose I
can cook up a patch to fix that too.

> 
> >  #define   RC_OP_FLUSH_ENABLE			(1 << 0)
> >  #define   HIZ_RAW_STALL_OPT_DISABLE		(1 << 2)
> >  #define CACHE_MODE_1				_MMIO(0x7004) /* IVB+ */
> > diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> > index 09a287c1aedd..a424b442493f 100644
> > --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
> > +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> > @@ -2286,6 +2286,15 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
> >  			     GEN8_RC_SEMA_IDLE_MSG_DISABLE);
> >  	}
> >  
> > +	if (IS_JASPERLAKE(i915) || IS_ELKHARTLAKE(i915)) {
> > +		/*
> > +		 * "Disable Repacking for Compression (masked R/W access)
> > +		 *  before rendering compressed surfaces for display."
> > +		 */
> > +		wa_masked_en(wal, CACHE_MODE_0_GEN7,
> > +			     DISABLE_REPACKING_FOR_COMPRESSION);
> 
> It is vague, indeed, but the description says that repacking
> provides a boost in performance and "improvement in Lossless
> Compression Algo" (whatever that means, I'm sailing in unknown
> waters here :-) )
> 
> How did you get here?

Bspec:18437 and then I read through the linked HSDs.

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2024-06-28 10:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-24 15:05 [PATCH 0/5] drm/i915: Enable CCS+10bpc and CCS+async flips Ville Syrjala
2024-06-24 15:05 ` [PATCH 1/5] drm/i915: Disable compression tricks on JSL Ville Syrjala
2024-06-27 22:33   ` Andi Shyti
2024-06-28 10:57     ` Ville Syrjälä [this message]
2024-06-24 15:05 ` [PATCH 2/5] drm/i915: Expose CCS for 10bpc RGB formats on TGL+ Ville Syrjala
2024-06-24 15:05 ` [PATCH 3/5] drm/i915: Enable 10bpc + CCS on ICL Ville Syrjala
2024-06-24 15:05 ` [PATCH 4/5] drm/i915: Allow async flips with render compression on TGL+ Ville Syrjala
2024-06-24 15:05 ` [PATCH 5/5] drm/i915: Allow async flips with CCS on ICL Ville Syrjala
2024-06-24 15:58 ` ✗ Fi.CI.SPARSE: warning for drm/i915: Enable CCS+10bpc and CCS+async flips Patchwork
2024-06-24 16:06 ` ✓ Fi.CI.BAT: success " Patchwork
2024-06-25 14:05 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-06-25 17:27   ` Ville Syrjälä

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=Zn6XFAL_x4jEF8gL@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=andi.shyti@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.