Re: [Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-28 Thread Janusz Krzysztofik
Hi Chris, On Thu, 2020-05-28 at 14:41 +0100, Chris Wilson wrote: > Quoting Tvrtko Ursulin (2020-05-28 14:34:42) > > On 28/05/2020 13:10, Janusz Krzysztofik wrote: > > > Hi Tvrtko, > > > > > > On Thu, 2020-05-28 at 11:14 +0100, Tvrtko Ursulin wrote: > > > > On 18/05/2020 19:17, Janusz Krzysztofik

Re: [Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-28 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-05-28 14:34:42) > > On 28/05/2020 13:10, Janusz Krzysztofik wrote: > > Hi Tvrtko, > > > > On Thu, 2020-05-28 at 11:14 +0100, Tvrtko Ursulin wrote: > >> On 18/05/2020 19:17, Janusz Krzysztofik wrote: > >>> Contexts associated with open device file descriptors together

Re: [Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-28 Thread Tvrtko Ursulin
On 28/05/2020 13:10, Janusz Krzysztofik wrote: Hi Tvrtko, On Thu, 2020-05-28 at 11:14 +0100, Tvrtko Ursulin wrote: On 18/05/2020 19:17, Janusz Krzysztofik wrote: Contexts associated with open device file descriptors together with their assigned address spaces are now closed on device file

Re: [Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-28 Thread Janusz Krzysztofik
Hi Tvrtko, On Thu, 2020-05-28 at 11:14 +0100, Tvrtko Ursulin wrote: > On 18/05/2020 19:17, Janusz Krzysztofik wrote: > > Contexts associated with open device file descriptors together with > > their assigned address spaces are now closed on device file close. On > > i915_gem_driver_remove looks

Re: [Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-28 Thread Tvrtko Ursulin
On 18/05/2020 19:17, Janusz Krzysztofik wrote: Contexts associated with open device file descriptors together with their assigned address spaces are now closed on device file close. On i915_gem_driver_remove looks like module unload to me, not device file close. So.. address space

Re: [Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-27 Thread MichaƂ Winiarski
Quoting Janusz Krzysztofik (2020-05-18 20:17:17) > Contexts associated with open device file descriptors together with > their assigned address spaces are now closed on device file close. On > address space closure its associated DMA mappings are revoked. If the > device is removed while being

[Intel-gfx] [RFC PATCH 1/4] drm/i915: Drop user contexts on driver remove

2020-05-18 Thread Janusz Krzysztofik
Contexts associated with open device file descriptors together with their assigned address spaces are now closed on device file close. On address space closure its associated DMA mappings are revoked. If the device is removed while being open, subsequent attempts to revoke those mappings while