Re: [PATCH 2/4] drm/i915/selftests: align more to real device lifetimes

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 8:31 PM Matthew Auld wrote: > > On Fri, 18 Sep 2020 at 19:22, Daniel Vetter wrote: > > > > On Fri, Sep 18, 2020 at 7:50 PM Matthew Auld > > wrote: > > > > > > On Fri, 18 Sep 2020 at 14:25, Daniel Vetter > > > wrote: > > > > > > > > The big change is device_add so that d

Re: [PATCH 2/4] drm/i915/selftests: align more to real device lifetimes

2020-09-18 Thread Matthew Auld
On Fri, 18 Sep 2020 at 19:22, Daniel Vetter wrote: > > On Fri, Sep 18, 2020 at 7:50 PM Matthew Auld > wrote: > > > > On Fri, 18 Sep 2020 at 14:25, Daniel Vetter wrote: > > > > > > The big change is device_add so that device_del can auto-cleanup > > > devres resources. This allows us to use devm_

Re: [PATCH 2/4] drm/i915/selftests: align more to real device lifetimes

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 7:50 PM Matthew Auld wrote: > > On Fri, 18 Sep 2020 at 14:25, Daniel Vetter wrote: > > > > The big change is device_add so that device_del can auto-cleanup > > devres resources. This allows us to use devm_drm_dev_alloc, which > > removes the last user of drm_dev_init. > >

Re: [PATCH 2/4] drm/i915/selftests: align more to real device lifetimes

2020-09-18 Thread Matthew Auld
On Fri, 18 Sep 2020 at 14:25, Daniel Vetter wrote: > > The big change is device_add so that device_del can auto-cleanup > devres resources. This allows us to use devm_drm_dev_alloc, which > removes the last user of drm_dev_init. > > v2: Rebased > > v3: use devres_open/release_group so we can use d

[PATCH 2/4] drm/i915/selftests: align more to real device lifetimes

2020-09-18 Thread Daniel Vetter
The big change is device_add so that device_del can auto-cleanup devres resources. This allows us to use devm_drm_dev_alloc, which removes the last user of drm_dev_init. v2: Rebased v3: use devres_open/release_group so we can use devm without real hacks in the driver core or having to create an e