From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v3] drm/i915: Don't show engine information in fdinfo with GuC submission
Date: Wed, 27 Apr 2022 10:15:35 +0100 [thread overview]
Message-ID: <22e84175-eef3-5ef3-14f0-8a19bbdab70e@linux.intel.com> (raw)
In-Reply-To: <b614c2c61a954de06fbe2c3a7c70d3a91804407e.1649982207.git.ashutosh.dixit@intel.com>
On 15/04/2022 01:25, Ashutosh Dixit wrote:
> At present i915 does not fetch busyness information from GuC, resulting in
> incorrect busyness values in fdinfo. Because engine information is coupled
> with busyness in fdinfo, skip showing client engine information in fdinfo
> with GuC submission till fetching busyness is supported in the i915 GuC
> submission backend.
>
> v2 (Daniele):
> Make commit title and description more precise
> Add FIXME with brief description at code change
> s/intel_guc_submission_is_used/intel_uc_uses_guc_submission/
>
> v3 (Daniele):
> Drop FIXME in comment
>
> Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/5564
> Fixes: 055634e4b62f ("drm/i915: Expose client engine utilisation via fdinfo")
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com
> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> ---
> drivers/gpu/drm/i915/i915_drm_client.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drm_client.c b/drivers/gpu/drm/i915/i915_drm_client.c
> index e539f6b23060..475a6f824cad 100644
> --- a/drivers/gpu/drm/i915/i915_drm_client.c
> +++ b/drivers/gpu/drm/i915/i915_drm_client.c
> @@ -145,7 +145,11 @@ void i915_drm_client_fdinfo(struct seq_file *m, struct file *f)
> PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
> seq_printf(m, "drm-client-id:\t%u\n", client->id);
>
> - if (GRAPHICS_VER(i915) < 8)
> + /*
> + * Temporarily skip showing client engine information with GuC submission till
> + * fetching engine busyness is implemented in the GuC submission backend
> + */
> + if (GRAPHICS_VER(i915) < 8 || intel_uc_uses_guc_submission(&i915->gt0.uc))
> return;
>
> for (i = 0; i < ARRAY_SIZE(uabi_class_names); i++)
Thanks for fixing this while I was away. It was a simple miss, nothing
sinister. In terms of mention of "garbage" numbers being reported - were
they actually garbage or simply always zero?
Regards,
Tvrtko
next prev parent reply other threads:[~2022-04-27 9:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-13 22:57 [Intel-gfx] [PATCH] drm/i915: Don't show client busyness in fdinfo with GuC submission Ashutosh Dixit
2022-04-14 4:39 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2022-04-14 18:05 ` [Intel-gfx] [PATCH] " Ceraolo Spurio, Daniele
2022-04-14 18:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Don't show client busyness in fdinfo with GuC submission (rev2) Patchwork
2022-04-14 21:24 ` [Intel-gfx] [PATCH v2] drm/i915: Don't show engine information in fdinfo with GuC submission Ashutosh Dixit
2022-04-15 0:14 ` Ceraolo Spurio, Daniele
2022-04-14 22:31 ` [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Don't show client busyness in fdinfo with GuC submission (rev2) Patchwork
2022-04-14 23:57 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Don't show client busyness in fdinfo with GuC submission (rev3) Patchwork
2022-04-15 0:18 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-04-15 0:25 ` [Intel-gfx] [PATCH v3] drm/i915: Don't show engine information in fdinfo with GuC submission Ashutosh Dixit
2022-04-27 9:15 ` Tvrtko Ursulin [this message]
2022-04-27 15:43 ` Dixit, Ashutosh
2022-04-27 17:16 ` Tvrtko Ursulin
2022-04-27 18:24 ` Dixit, Ashutosh
2022-04-15 2:02 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Don't show client busyness in fdinfo with GuC submission (rev4) Patchwork
2022-04-15 2:22 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-04-15 8:51 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=22e84175-eef3-5ef3-14f0-8a19bbdab70e@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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