[Intel-gfx] [PATCH 02/41] drm/i915: Use RPM as the barrier for controlling user mmap access

2016-10-20 Thread Chris Wilson
We can remove the false coupling between RPM and struct mutex by the observation that we can use the RPM wakeref as the barrier around user mmap access. That is as we tear down the user's PTE atomically from within rpm suspend and then to fault in new PTE requires the rpm wakeref, means that no use

[Intel-gfx] [PATCH 02/41] drm/i915: Use RPM as the barrier for controlling user mmap access

2016-10-14 Thread Chris Wilson
We can remove the false coupling between RPM and struct mutex by the observation that we can use the RPM wakeref as the barrier around user mmap access. That is as we tear down the user's PTE atomically from within rpm suspend and then to fault in new PTE requires the rpm wakeref, means that no use