Re: [Intel-gfx] [PATCH] drm/i915: Check domains for userptr on release

2019-03-31 Thread Matthew Auld
On Sun, 31 Mar 2019 at 10:47, Chris Wilson wrote: > > When we return pages to the system, we release control over them and > should defensively return them to the CPU write domain so that we catch > any external writes on reacquiring them (e.g. to transparently > swapout/swapin). While we did this

[Intel-gfx] [PATCH] drm/i915: Check domains for userptr on release

2019-03-31 Thread Chris Wilson
When we return pages to the system, we release control over them and should defensively return them to the CPU write domain so that we catch any external writes on reacquiring them (e.g. to transparently swapout/swapin). While we did this defensive clflushing for ordinary shmem pages, it was forgot