[PATCH i-g-t] tests: Add a test for device hot unplug
Chris Wilson
chris at chris-wilson.co.uk
Tue Apr 7 10:41:18 UTC 2020
Quoting Chris Wilson (2020-04-07 11:39:48)
> Quoting Janusz Krzysztofik (2020-04-07 11:13:53)
> > +struct hotunplug {
> > + int chipset;
> > + struct {
> > + int drm;
> > + int sysfs_dev;
> > + int sysfs_bus;
> > + } fd;
> > +};
> > +
> > +/* Helpers */
> > +
> > +static void prepare(struct hotunplug *priv)
> > +{
> > + /* open the driver */
> > + priv->fd.drm = __drm_open_driver(priv->chipset);
>
> Hmm. How do we avoid chipset and use a specific device? For the
> inevitable extension to multi-device validation.
But that is not a blocker for this, just verifying one idle device can
be unbound is a huge step forward for CI.
-Chris
More information about the Intel-gfx-trybot
mailing list