From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [igt-dev] [RFC i-g-t 0/5] User friendly lsgpu/intel_gpu_top device listing
Date: Mon, 16 Nov 2020 13:08:07 +0000 [thread overview]
Message-ID: <e87c35c2-b74b-b9bb-5c0d-b5201445b973@linux.intel.com> (raw)
In-Reply-To: <20201113162736.2434791-1-tvrtko.ursulin@linux.intel.com>
On 13/11/2020 16:27, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> Please see individual path commit messages for details, but essentially I
> implemented this:
>
> $ sudo tools/lsgpu
> card1 8086:4905 drm:/dev/dri/card1
> └─renderD129 drm:/dev/dri/renderD129
> card0 8086:3E98 drm:/dev/dri/card0
> └─renderD128 drm:/dev/dri/renderD128
>
> $ sudo tools/lsgpu --pci
> card1 8086:4905 pci:vendor=8086,device=4905,card=0
> └─renderD129
> card0 8086:3E98 pci:vendor=8086,device=3E98,card=0
> └─renderD128
>
> $ sudo tools/lsgpu --sysfs
> card1 8086:4905 sys:/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:01.0/0000:03:00.0
> └─renderD129 sys:/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:01.0/0000:03:00.0/drm/renderD129
> card0 8086:3E98 sys:/sys/devices/pci0000:00/0000:00:02.0
> └─renderD128 sys:/sys/devices/pci0000:00/0000:00:02.0/drm/renderD128
>
> I need to find a machine with two GPUs of the same device id to finish testing
> this hence still RFC.
I mock tested the PCI card index generating code and it seems to work fine:
$ tools/lsgpu --pci
card0 8086:193B pci:vendor=8086,device=193B,card=0
├─renderD128
└─renderD128
card0x 8086:193B pci:vendor=8086,device=193B,card=1
├─renderD128
└─renderD128
Regards,
Tvrtko
> Tvrtko Ursulin (5):
> intel_gpu_top: User friendly device listing
> lsgpu: User friendly device listing
> lib/igt_device_scan: Remember PCI card index after scanning
> lsgpu: Add filter type print-out selection
> intel_gpu_top: Default GPU list to PCI mode
>
> lib/igt_device_scan.c | 205 +++++++++++++++++++++++++++++++++++++-----
> lib/igt_device_scan.h | 16 +++-
> tools/intel_gpu_top.c | 8 +-
> tools/lsgpu.c | 38 ++++++--
> 4 files changed, 233 insertions(+), 34 deletions(-)
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2020-11-16 13:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-13 16:27 [Intel-gfx] [RFC i-g-t 0/5] User friendly lsgpu/intel_gpu_top device listing Tvrtko Ursulin
2020-11-13 16:27 ` [Intel-gfx] [RFC i-g-t 1/5] intel_gpu_top: User friendly " Tvrtko Ursulin
2020-11-13 16:27 ` [Intel-gfx] [RFC i-g-t 2/5] lsgpu: " Tvrtko Ursulin
2020-11-13 16:27 ` [Intel-gfx] [RFC i-g-t 3/5] lib/igt_device_scan: Remember PCI card index after scanning Tvrtko Ursulin
2020-11-16 14:03 ` Zbigniew Kempczyński
2020-11-16 15:09 ` Tvrtko Ursulin
2020-11-16 16:47 ` Zbigniew Kempczyński
2020-11-16 17:07 ` Tvrtko Ursulin
2020-11-13 16:27 ` [Intel-gfx] [RFC i-g-t 4/5] lsgpu: Add filter type print-out selection Tvrtko Ursulin
2020-11-13 16:27 ` [Intel-gfx] [RFC i-g-t 5/5] intel_gpu_top: Default GPU list to PCI mode Tvrtko Ursulin
2020-11-16 13:08 ` Tvrtko Ursulin [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=e87c35c2-b74b-b9bb-5c0d-b5201445b973@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--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