All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/fdinfo: Don't show engine classes not present
Date: Fri, 17 Jun 2022 09:06:50 +0100	[thread overview]
Message-ID: <fbe6a20c-d796-7262-cdae-663aa2c4f8fd@linux.intel.com> (raw)
In-Reply-To: <20220616141943.GM48807@orsosgc001.jf.intel.com>


On 16/06/2022 15:19, Umesh Nerlige Ramappa wrote:
> On Thu, Jun 16, 2022 at 03:00:56PM +0100, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> Stop displaying engine classes with no engines - it is not a huge problem
>> if they are shown, since the values will correctly be all zeroes, but it
>> does count as misleading.
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>> Fixes: 055634e4b62f ("drm/i915: Expose client engine utilisation via 
>> fdinfo")
>> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>> ---
>> drivers/gpu/drm/i915/i915_drm_client.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/i915_drm_client.c 
>> b/drivers/gpu/drm/i915/i915_drm_client.c
>> index 18d38cb59923..b09d1d386574 100644
>> --- a/drivers/gpu/drm/i915/i915_drm_client.c
>> +++ b/drivers/gpu/drm/i915/i915_drm_client.c
>> @@ -116,8 +116,9 @@ show_client_class(struct seq_file *m,
>>         total += busy_add(ctx, class);
>>     rcu_read_unlock();
>>
>> -    seq_printf(m, "drm-engine-%s:\t%llu ns\n",
>> -           uabi_class_names[class], total);
>> +    if (capacity)
>> +        seq_printf(m, "drm-engine-%s:\t%llu ns\n",
>> +               uabi_class_names[class], total);
> 
> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

Thanks, pushed!

Regards,

Tvrtko

  reply	other threads:[~2022-06-17  8:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16 14:00 [Intel-gfx] [PATCH] drm/i915/fdinfo: Don't show engine classes not present Tvrtko Ursulin
2022-06-16 14:19 ` Umesh Nerlige Ramappa
2022-06-17  8:06   ` Tvrtko Ursulin [this message]
2022-06-16 18:40 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2022-06-17  1:46 ` [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=fbe6a20c-d796-7262-cdae-663aa2c4f8fd@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=umesh.nerlige.ramappa@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.