From: "Kempczynski, Zbigniew" <zbigniew.kempczynski@intel.com>
To: "Dec, Katarzyna" <katarzyna.dec@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Latvala, Petri" <petri.latvala@intel.com>,
"daniel@ffwll.ch" <daniel@ffwll.ch>
Subject: Re: [igt-dev] [PATCH i-g-t v5 1/2] Introduce device selection API
Date: Wed, 28 Aug 2019 08:23:38 +0000 [thread overview]
Message-ID: <94fe2662e78395bba771bdbdae512665093653ec.camel@intel.com> (raw)
In-Reply-To: <20190828061041.GN21194@kdec5-desk.ger.corp.intel.com>
On Wed, 2019-08-28 at 08:10 +0200, Katarzyna Dec wrote:
> On Fri, Aug 23, 2019 at 09:03:50AM +0200, Zbigniew Kempczyński wrote:
> > + * # lsgpu
> > + *
> > + * The devices can be scanned and displayed using 'lsgpu' tool. Tool also
> > + * displays properties and sysattrs (-p switch, means print detail) which
> > + * can be used during filter implementation.
> > + *
> > + * Tool can also be used to try out filters.
> > + * To select device use '-d' or '--device' argument like:
> > + *
> > + * |[<!-- language="plain" -->
> > + * ./lsgpu -d 'pci:vendor=Intel'
> > + * === Device filter list ===
> > + * [ 0]: pci:vendor=Intel
> > +
> > + * === Testing device open ===
> > + * subsystem : pci
> > + * chipset : 1
> > + * drm card : /dev/dri/card0
> > + * drm render : /dev/dri/renderD128
> > + * Device /dev/dri/card0 successfully opened
> > + * Device /dev/dri/renderD128 successfully opened
> > + * ]|
> > + *
> > + * Additionally lsgpu tries to open the card and render nodes to verify
> > + * permissions. It also uses IGT variable search order:
> > + * - use --device first (it overrides IGT_DEVICE and .igtrc
> > Common::Device
> > + * settings)
> > + * - use IGT_DEVICE enviroment variable if no --device are passed
> > + * - use .igtrc Common::Device if no --device nor IGT_DEVICE are passed
> > + */
>
> I looked thought code in all patch and it generally looks good.
> I have a question about lsgpu usage.
> '-p' prints all devices, but there is not information in help about that
> '-d' used without '-p' filters and prints details about particular device
> Mixing '-p' and '-d' has no affect - we still see all devices, not filtered
> ones. Is it by desing?
Argument -p displays details for devices filtered with -d. If you use:
$ lsgpu -d platform:/sys/devices/platform/vgem -p
will display detail only for vgem device.
>
> Kasia :)
Zbigniew
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-08-28 8:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-23 7:03 [igt-dev] [PATCH i-g-t v5 0/2] Add device selection methods Zbigniew Kempczyński
2019-08-23 7:03 ` [igt-dev] [PATCH i-g-t v5 1/2] Introduce device selection API Zbigniew Kempczyński
2019-08-28 6:10 ` Katarzyna Dec
2019-08-28 8:23 ` Kempczynski, Zbigniew [this message]
2019-08-28 9:00 ` Katarzyna Dec
2019-09-03 6:04 ` Arkadiusz Hiler
2019-08-23 7:03 ` [igt-dev] [PATCH i-g-t v5 2/2] Add device selection for IGT Zbigniew Kempczyński
2019-08-28 6:18 ` Katarzyna Dec
2019-08-28 8:28 ` Kempczynski, Zbigniew
2019-08-28 8:48 ` Katarzyna Dec
2019-09-03 6:05 ` Arkadiusz Hiler
2019-09-03 6:51 ` Arkadiusz Hiler
2019-09-03 12:23 ` Kempczynski, Zbigniew
2019-08-23 9:05 ` [igt-dev] ✓ Fi.CI.BAT: success for Add device selection methods (rev5) Patchwork
2019-08-24 2:39 ` [igt-dev] ✓ 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=94fe2662e78395bba771bdbdae512665093653ec.camel@intel.com \
--to=zbigniew.kempczynski@intel.com \
--cc=daniel@ffwll.ch \
--cc=igt-dev@lists.freedesktop.org \
--cc=katarzyna.dec@intel.com \
--cc=petri.latvala@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