All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v2] drm/i915/dg2: Add performance workaround 18019455067
Date: Wed, 29 Jun 2022 16:11:46 -0700	[thread overview]
Message-ID: <20220629231146.7jlpwjy6blachazy@ldmartin-desk2> (raw)
In-Reply-To: <YrzPKae38BnFCDcU@mdroper-desk1.amr.corp.intel.com>

On Wed, Jun 29, 2022 at 03:16:09PM -0700, Matt Roper wrote:
>On Mon, Jun 27, 2022 at 03:59:28PM +0300, Lionel Landwerlin wrote:
>> The recommended number of stackIDs for Ray Tracing subsystem is 512
>> rather than 2048 (default HW programming).
>>
>> v2: Move the programming to dg2_ctx_gt_tuning_init() (Lucas)
>
>I'm not sure this is actually the correct move.  As far as I can see on
>bspec 46261, RT_CTRL isn't part of the engine's context, so we need to
>make sure it gets added to engine->wa_list instead of
>engine->ctx_wa_list, otherwise it won't be properly re-applied after
>engine resets and such.  Most of our other tuning values are part of the
>context image, so this one is a bit unusual.
>
>To get it onto the engine->wa_list, the workaround needs to either be
>defined via rcs_engine_wa_init() or general_render_compute_wa_init().
>The latter is the new, preferred location for registers that are part of
>the render/compute reset domain, but that don't live in the RCS engine's
>0x2xxx MMIO range (since all RCS and CCS engines get reset together, the
>items in general_render_compute_wa_init() will make sure it's dealt with
>as part of the handling for the first RCS/CCS engine, so that we won't
>miss out on applying it if the platform doesn't have an RCS).
>
>At the moment we don't have too many "tuning" values that we need to set
>that aren't part of an engine's context, so we don't yet have a
>dedicated "tuning" function for engine-style workarounds like we do with
>ctx-style workarounds.


what I meant on my review was not to move it to
dg2_ctx_gt_tuning_init(), but rather to follow the same logic: we need
an equivalent tuning version for engine wa.

Lucas De Marchi

  reply	other threads:[~2022-06-29 23:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 12:59 [Intel-gfx] [PATCH v2] drm/i915/dg2: Add performance workaround 18019455067 Lionel Landwerlin
2022-06-28  2:53 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dg2: Add performance workaround 18019455067 (rev2) Patchwork
2022-06-28 17:09 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-06-29 22:16 ` [Intel-gfx] [PATCH v2] drm/i915/dg2: Add performance workaround 18019455067 Matt Roper
2022-06-29 23:11   ` Lucas De Marchi [this message]
2022-06-30  8:36   ` Lionel Landwerlin

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=20220629231146.7jlpwjy6blachazy@ldmartin-desk2 \
    --to=lucas.demarchi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.d.roper@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.