All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: intel-gfx@lists.freedesktop.org, andi.shyti@intel.com
Subject: Re: [PATCH 1/1] drm/i915/xehp: add wait on depth stall done bit handling
Date: Tue, 11 Feb 2025 20:26:05 +0200	[thread overview]
Message-ID: <Z6uWPZRuesM_3zSk@intel.com> (raw)
In-Reply-To: <20250211172431.2631083-2-juhapekka.heikkila@gmail.com>

On Tue, Feb 11, 2025 at 07:24:31PM +0200, Juha-Pekka Heikkila wrote:
> Add writing of WAIT_ON_DEPTH_STALL_DONE_DISABLE for gen12. This
> is performance optimization, writing this bit disables the wait.
> 
> Bspec: 46132
> 
> Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12411
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
>  drivers/gpu/drm/i915/gt/intel_gt_regs.h     | 3 +++
>  drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 +++++
>  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 6dba65e54cdb..7423fdd5dcaf 100644
> --- a/drivers/gpu/drm/i915/gt/intel_gt_regs.h
> +++ b/drivers/gpu/drm/i915/gt/intel_gt_regs.h
> @@ -1010,6 +1010,9 @@
>  #define XEHP_L3SCQREG7				MCR_REG(0xb188)
>  #define   BLEND_FILL_CACHING_OPT_DIS		REG_BIT(3)
>  
> +#define XEHP_WM_CHICKEN2			MCR_REG(0x5584)

WM_CHICKEN2/3 have existed since BDW. WM_CHICKEN1 since snb.

Looks like our already existing GEN9_WM_CHICKEN3 define
is also misnamed, and it's also missing the MCR_REG() so
wouldn't even work when used on platforms that need steering.

> +#define   WAIT_ON_DEPTH_STALL_DONE_DISABLE	REG_BIT(5)
> +
>  #define GEN11_GLBLINVL				_MMIO(0xb404)
>  #define   GEN11_BANK_HASH_ADDR_EXCL_MASK	(0x7f << 5)
>  #define   GEN11_BANK_HASH_ADDR_EXCL_BIT0	(1 << 5)
> diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> index db04c3ee02e2..affee4d4cee2 100644
> --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
> +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> @@ -1640,6 +1640,11 @@ static void gt_tuning_settings(struct intel_gt *gt, struct i915_wa_list *wal)
>  		wa_mcr_write_or(wal, XEHP_L3SCQREG7, BLEND_FILL_CACHING_OPT_DIS);
>  		wa_mcr_write_or(wal, XEHP_SQCM, EN_32B_ACCESS);
>  	}
> +
> +	if (IS_GFX_GT_IP_RANGE(gt, IP_VER(12, 0), IP_VER(12, 70))) {
> +		wa_mcr_write_or(wal, XEHP_WM_CHICKEN2,
> +				WAIT_ON_DEPTH_STALL_DONE_DISABLE);
> +	}
>  }
>  
>  static void
> -- 
> 2.45.2

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2025-02-11 18:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-11 17:24 [PATCH 0/1] Add writing of WAIT_ON_DEPTH_STALL_DONE_DISABLE for gen12 Juha-Pekka Heikkila
2025-02-11 17:24 ` [PATCH 1/1] drm/i915/xehp: add wait on depth stall done bit handling Juha-Pekka Heikkila
2025-02-11 18:26   ` Ville Syrjälä [this message]
2025-02-11 17:44 ` ✗ Fi.CI.SPARSE: warning for Add writing of WAIT_ON_DEPTH_STALL_DONE_DISABLE for gen12 Patchwork
2025-02-11 19:12 ` ✗ i915.CI.BAT: failure " 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=Z6uWPZRuesM_3zSk@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=andi.shyti@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.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.