Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Shyti <andi.shyti@linux.intel.com>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
	Jonathan Cavitt <jonathan.cavitt@intel.com>
Subject: Re: [Intel-gfx] [PATCH v2] drm/i915/mcr: Hold GT forcewake during steering operations
Date: Tue, 24 Oct 2023 14:02:17 +0200	[thread overview]
Message-ID: <ZTeySSFGbBpmfn-7@ashyti-mobl2.lan> (raw)
In-Reply-To: <20231019170241.2102037-2-matthew.d.roper@intel.com>

Hi Matt,

On Thu, Oct 19, 2023 at 10:02:42AM -0700, Matt Roper wrote:
> The steering control and semaphore registers are inside an "always on"
> power domain with respect to RC6.  However there are some issues if
> higher-level platform sleep states are entering/exiting at the same time
> these registers are accessed.  Grabbing GT forcewake and holding it over
> the entire lock/steer/unlock cycle ensures that those sleep states have
> been fully exited before we access these registers.
> 
> This is expected to become a formally documented/numbered workaround
> soon.
> 
> Note that this patch alone isn't expected to have an immediately
> noticeable impact on MCR (mis)behavior; an upcoming pcode firmware
> update will also be necessary to provide the other half of this
> workaround.

right... I did try this, but so fare we hold the forcewake when
calling mcr_lock().

> v2:
>  - Move the forcewake inside the Xe_LPG-specific IP version check.  This
>    should only be necessary on platforms that have a steering semaphore.
> 
> Fixes: 4186e2185b4f ("drm/i915/gt: Add dedicated MCR lock")

Is this the right Fixes tag? This is adding the spinlock around
MCR, but the power domain needs to be taken independently from
the lock... I think the right fix here is

Fixes: 3100240bf846 ("drm/i915/mtl: Add hardware-level lock for steering")
Cc: <stable@vger.kernel.org> # v6.3+

When the access to the hardware was added.

BTW, given that currently we hold the forcewake already, is this
really a fix or is this more looking at the future? Is the Fixes
tag necessary?

> Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
> Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>

In any case,

Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>

Andi

  parent reply	other threads:[~2023-10-24 12:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-19 16:39 [Intel-gfx] [PATCH] drm/i915/mcr: Hold GT forcewake during steering operations Matt Roper
2023-10-19 17:02 ` [Intel-gfx] [PATCH v2] " Matt Roper
2023-10-20 21:32   ` Sripada, Radhakrishna
2023-10-20 22:02     ` Cavitt, Jonathan
2023-10-24 12:02   ` Andi Shyti [this message]
2023-10-24 15:21     ` Matt Roper
2023-10-24 15:29       ` Andi Shyti
2023-10-24  8:26 ` [Intel-gfx] [PATCH] " Nirmoy Das
2023-10-24 11:42 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/mcr: Hold GT forcewake during steering operations (rev2) Patchwork
2023-10-24 19:15 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-24 19:57   ` Matt Roper

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=ZTeySSFGbBpmfn-7@ashyti-mobl2.lan \
    --to=andi.shyti@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jonathan.cavitt@intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox