From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Cc: Intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH i-g-t] intel-gpu-top: Support for client stats
Date: Fri, 22 Jan 2021 11:36:48 +0000 [thread overview]
Message-ID: <92e11d23-a4f8-da09-5f90-6a0b0ca6614f@linux.intel.com> (raw)
In-Reply-To: <161126484631.3166.17704076104258866952@build.alporthouse.com>
On 21/01/2021 21:34, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2021-01-21 18:10:05)
>> +static struct clients *init_clients(const char *drm_card)
>> +{
>> + struct clients *clients = malloc(sizeof(*clients));
>> + const char *slash;
>> + ssize_t ret;
>> +
>> + memset(clients, 0, sizeof(*clients));
>> +
>> + if (drm_card) {
>> + slash = rindex(drm_card, '/');
>> + assert(slash);
>> + } else {
>> + slash = "card0";
>> + }
>> +
>> + ret = snprintf(clients->sysfs_root, sizeof(clients->sysfs_root),
>> + "/sys/class/drm/%s/clients/", slash);
>> + assert(ret > 0 && ret < sizeof(clients->sysfs_root));
>
> Afaict, igt_device_card_match_pci et al are not guaranteed to fill in
> dev->drm_card and may leave it blank instead of finding the
> corresponding /dev/dri/cardN.
I did the rest but this is giving me trouble - can't see locally that it
doesn't populate it. Do you know how to trigger that?
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2021-01-22 11:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-21 18:10 [Intel-gfx] [PATCH i-g-t] intel-gpu-top: Support for client stats Tvrtko Ursulin
2021-01-21 21:34 ` Chris Wilson
2021-01-22 11:36 ` Tvrtko Ursulin [this message]
2021-01-22 11:41 ` Chris Wilson
2021-01-22 11:55 ` [Intel-gfx] [PATCH i-g-t v6] " Tvrtko Ursulin
2021-01-22 12:15 ` [Intel-gfx] [igt-dev] " Chris Wilson
2021-01-22 12:17 ` Tvrtko Ursulin
2021-01-22 12:21 ` Chris Wilson
2021-01-22 13:12 ` [Intel-gfx] [PATCH i-g-t v7] " Tvrtko Ursulin
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=92e11d23-a4f8-da09-5f90-6a0b0ca6614f@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@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