public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Kempczynski, Zbigniew" <zbigniew.kempczynski@intel.com>
To: "daniel@ffwll.ch" <daniel@ffwll.ch>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Latvala, Petri" <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v1 1/1] Introduce new method of device selection
Date: Mon, 15 Jul 2019 11:22:34 +0000	[thread overview]
Message-ID: <dfc8e37e542e8d040dfe2fac963fd01fe132974c.camel@intel.com> (raw)
In-Reply-To: <20190715093115.GQ15868@phenom.ffwll.local>

On Mon, 2019-07-15 at 11:31 +0200, Daniel Vetter wrote:
> 
> The entire point of review is to create a shared understanding of the
> problems involved. Dropping that stuff is pretty crucial.
> 
> Also, I'm not really following your description. Maybe there's a gap
> between the udev library interface and what I can get at the command line.
> But if I look at
> 
> # udevadm info -e
> 
> And for a specific device, the pile of links/higher level directories,
> then I think we should be able to find everything.

Data acquired from udev database are not enough in some cases to do 
the logic I need in CI. So without following the sysattrs I'm not able
to do what I wanted to achieve with udev filtering only. 

'udevadm info -e' show properties only, sysattrs are not printed.

> Maybe another part of the misunderstanding: Imo we don't want to identify
> physical devices, we want to identify drm_devices. Module reload is very
> much the exception, and the trickery we have to let igt/lib load the
> module if it's not there is imo a bit a hack. Aside from for vgem, where
> it makes some sense at least.
> 
> So rough algorithimg I had in mind:
> 1. iterate all drm_devices in sysfs
> 2. walk the link to physical device
> 3. go up the hierarchy
> 
> Anywhere where we spot a name=value pair that matches what we filter, we
> stop, and use that device. Plus augmented with the udevadm info -e stuff,
> so you can add arbitrary additional stuff on top. Zero reinvented wheel
> needed in igt.
> 
> Aside: Maybe we should ditch the module autoload stuff again, except for
> vgem. Really no idea why that's needed.

All assumptions I made regarding patch I sent were sum of all talks with
different people. Your point of view is strictly udev/drm but other think
about devices in more (how to say it?) contextual manner. 

Could you write how do you think should igt test run should look like
when device filter could be passed by user? 

I mean: ./gem_device_test --device ??? --device ??? 

Zbigniew
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-07-15 11:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-11 10:30 [igt-dev] [PATCH i-g-t v1 0/1] Add device selection methods Zbigniew Kempczyński
2019-07-11 10:30 ` [igt-dev] [PATCH i-g-t v1 1/1] Introduce new method of device selection Zbigniew Kempczyński
2019-07-11 12:43   ` Daniel Vetter
2019-07-15  6:25     ` Kempczynski, Zbigniew
2019-07-15  9:31       ` Daniel Vetter
2019-07-15 11:22         ` Kempczynski, Zbigniew [this message]
2019-07-12  8:20   ` Vasilev, Oleg
2019-07-12  9:18     ` Zbigniew Kempczyński
2019-07-11 15:13 ` [igt-dev] ✓ Fi.CI.BAT: success for Add device selection methods Patchwork
2019-07-12 10:08 ` [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=dfc8e37e542e8d040dfe2fac963fd01fe132974c.camel@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=igt-dev@lists.freedesktop.org \
    --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