From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Andi Shyti <andi.shyti@linux.intel.com>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
dri-devel <dri-devel@lists.freedesktop.org>
Cc: Nirmoy Das <nirmoy.das@intel.com>,
Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>,
Andi Shyti <andi.shyti@kernel.org>
Subject: Re: [PATCH v2] drm/i915: Increase FLR timeout from 3s to 9s
Date: Wed, 29 May 2024 10:42:09 +0200 [thread overview]
Message-ID: <f2c2f983-6e75-4cc6-b793-5ff928b5605d@linux.intel.com> (raw)
In-Reply-To: <20240523235853.171796-1-andi.shyti@linux.intel.com>
On 5/24/2024 1:58 AM, Andi Shyti wrote:
> Following the guidelines it takes 3 seconds to perform an FLR
> reset. Let's give it a bit more slack because this time can
> change depending on the platform and on the firmware
>
> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
> ---
> Hi,
>
> In this second version I removed patch 2 that was ignoring the
> FLR reset timeouts, until we develop a proper patch.
>
> This first patch is basically the same as v1. Thanks Nirmoy for
> your review.
>
> Andi
>
> drivers/gpu/drm/i915/intel_uncore.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c
> index 729409a4bada..2eba289d88ad 100644
> --- a/drivers/gpu/drm/i915/intel_uncore.c
> +++ b/drivers/gpu/drm/i915/intel_uncore.c
> @@ -2614,11 +2614,18 @@ void intel_uncore_prune_engine_fw_domains(struct intel_uncore *uncore,
> static void driver_initiated_flr(struct intel_uncore *uncore)
> {
> struct drm_i915_private *i915 = uncore->i915;
> - const unsigned int flr_timeout_ms = 3000; /* specs recommend a 3s wait */
> + unsigned int flr_timeout_ms;
> int ret;
>
> drm_dbg(&i915->drm, "Triggering Driver-FLR\n");
>
> + /*
> + * The specification recommends a 3 seconds FLR reset timeout. To be
> + * cautious, we will extend this to 9 seconds, three times the specified
> + * timeout.
> + */
> + flr_timeout_ms = 9000;
> +
> /*
> * Make sure any pending FLR requests have cleared by waiting for the
> * FLR trigger bit to go to zero. Also clear GU_DEBUG's DRIVERFLR_STATUS
prev parent reply other threads:[~2024-05-29 8:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 23:58 [PATCH v2] drm/i915: Increase FLR timeout from 3s to 9s Andi Shyti
2024-05-24 0:40 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-05-24 14:07 ` [PATCH v2] " Rodrigo Vivi
2024-05-27 10:47 ` Andi Shyti
2024-05-27 15:00 ` Andi Shyti
2024-05-28 16:36 ` Rodrigo Vivi
2024-05-25 8:25 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-05-29 8:42 ` Nirmoy Das [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=f2c2f983-6e75-4cc6-b793-5ff928b5605d@linux.intel.com \
--to=nirmoy.das@linux.intel.com \
--cc=andi.shyti@kernel.org \
--cc=andi.shyti@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=janusz.krzysztofik@linux.intel.com \
--cc=nirmoy.das@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