All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@intel.com>
To: "Summers, Stuart" <stuart.summers@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/xelp: Add Wa_1806527549
Date: Thu, 20 Oct 2022 22:28:50 -0700	[thread overview]
Message-ID: <20221021052850.4ssa2xefapywpywl@ldmartin-desk2.lan> (raw)
In-Reply-To: <980ba10f8230463b85f08887864dacb57a09ca2b.camel@intel.com>

On Fri, Oct 21, 2022 at 04:03:20AM +0000, Stuart Summers wrote:
>On Wed, 2022-10-19 at 11:21 -0300, Gustavo Sousa wrote:
>> Workaround to be applied to platforms using XE_LP graphics.
>>
>> BSpec: 52890
>> Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
>> ---
>>  drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 1 +
>>  drivers/gpu/drm/i915/gt/intel_workarounds.c | 7 +++++++
>>  2 files changed, 8 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/gt/intel_gt_regs.h
>> b/drivers/gpu/drm/i915/gt/intel_gt_regs.h
>> index 36d95b79022c..23844ba7e824 100644
>> --- a/drivers/gpu/drm/i915/gt/intel_gt_regs.h
>> +++ b/drivers/gpu/drm/i915/gt/intel_gt_regs.h
>> @@ -443,6 +443,7 @@
>>  #define HIZ_CHICKEN				_MMIO(0x7018)
>>  #define   CHV_HZ_8X8_MODE_IN_1X			REG_BIT(15)
>>  #define   DG1_HZ_READ_SUPPRESSION_OPTIMIZATION_DISABLE	REG_BIT
>> (14)
>> +#define   HZ_DEPTH_TEST_LE_GE_OPT_DISABLE	REG_BIT(13)
>>  #define   BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE	REG_BIT
>> (3)
>>
>>  #define GEN8_L3CNTLREG				_MMIO(0x7034)
>> diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c
>> b/drivers/gpu/drm/i915/gt/intel_workarounds.c
>> index 63e1e6becf34..5cdec699ae04 100644
>> --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
>> +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
>> @@ -660,6 +660,8 @@ static void gen12_ctx_gt_tuning_init(struct
>> intel_engine_cs *engine,
>>  static void gen12_ctx_workarounds_init(struct intel_engine_cs
>> *engine,
>>  				       struct i915_wa_list *wal)
>>  {
>> +	struct drm_i915_private *i915 = engine->i915;
>> +
>>  	gen12_ctx_gt_tuning_init(engine, wal);
>>
>>  	/*
>> @@ -693,6 +695,11 @@ static void gen12_ctx_workarounds_init(struct
>> intel_engine_cs *engine,
>>  	       FF_MODE2_GS_TIMER_MASK,
>>  	       FF_MODE2_GS_TIMER_224,
>>  	       0, false);
>> +
>> +	if (!IS_DG1(i915))
>
>My reading of the spec here is that we should be applying this to DG1
>as well. Why are you removing it there?

for me DG1 is marked as "no impact"


>Also, it looks like this is conditional on a specific depth buffer, do
>we need to take that into account here?

it was agreed with mesa to do this unconditionally, so it can be done in
i915 rather than in mesa as it doesn't appear to have side effects.

Lucas De Marchi

>
>Thanks,
>Stuart
>
>> +		/* Wa_1806527549 */
>> +		wa_masked_en(wal, HIZ_CHICKEN,
>> HZ_DEPTH_TEST_LE_GE_OPT_DISABLE);
>> +
>>  }
>>
>>  static void dg1_ctx_workarounds_init(struct intel_engine_cs *engine,

      reply	other threads:[~2022-10-21  5:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 14:21 [Intel-gfx] [PATCH] drm/i915/xelp: Add Wa_1806527549 Gustavo Sousa
2022-10-19 15:48 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2022-10-19 16:09 ` [Intel-gfx] [PATCH] " Gustavo Sousa
2022-10-21  4:03 ` Summers, Stuart
2022-10-21  5:28   ` Lucas De Marchi [this message]

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=20221021052850.4ssa2xefapywpywl@ldmartin-desk2.lan \
    --to=lucas.demarchi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stuart.summers@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 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.