[PATCH 1/1] drm/i915: Drop user contexts on device remove

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 24 15:23:47 UTC 2020


Quoting Janusz Krzysztofik (2020-04-24 16:19:23)
> On Fri, 2020-04-24 at 16:05 +0100, Chris Wilson wrote:
> > Quoting Janusz Krzysztofik (2020-04-24 16:01:46)
> > > Yes, I've already realized there is nothing to restore.  Do I
> > > understand correctly that there will be a problem with not revoked
> > > mappings if the device is still the same?
> > 
> > That's not really our problem, imo. If the intel-iommu is ripped away
> > from us so that we can't remove our mappings, I expect it to also tidy
> > up the unused entries from the device it tore down.
> 
> I was thinking about our driver unbind case rather than unplug.  I
> guess intel-iommu will know nothing about that when that happens, and
> I'm not sure what happens after rebind if we have old mappings left.

I presumed it would be getting remove_device/add_device signals, but I
am venturing far from my comfort zone.
-Chris


More information about the Intel-gfx-trybot mailing list