[igt-dev] [RFC] IGT device scanning and selection

Kempczynski, Zbigniew zbigniew.kempczynski at intel.com
Tue Jun 4 08:47:12 UTC 2019


On Tue, 2019-06-04 at 11:36 +0300, Arkadiusz Hiler wrote:
> 
> Hey,
> 
> Seems like a well-written verbalization of some of the ideas that were
> floating around since XDC. Thanks!
> 
> 
> Couple of points that were not captured here:
> 
> 1. We should have an option to set device via .igtrc and IGT_DEVICE env
> variable too. ENV variable would take precedence over .igtrc, and
> --device switch would take precedence over both of the other methods.
> 
> That would help a lot with both automatization and having some defaults
> for local development.

Acked. I'll follow this override path. 

> 
> 
> 2. What to do with drm_open_driver(DRIVER_INTEL) et al?
> 
> Simplest solution would be to just skip if we are --device-ing a card
> that does not meet those "constraints", but we may want to rework those
> a bit?
> 

IMHO --device specification should override this vendor requirement
constraint. Using globals is not pretty solution but allows easily 
adds new device selection without rewritting all tests.

Best,
Zbigniew


More information about the igt-dev mailing list