[Intel-gfx] [igt-dev] [PATCH i-g-t v2] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer

Matthew Auld matthew.william.auld at gmail.com
Tue Apr 2 12:48:06 UTC 2019


On Mon, 1 Apr 2019 at 13:46, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> If we caused a fault on a GEM buffer while in the middle of trying to
> write/read into that buffer, we could conceivably deadlock (e.g.
> recursing on struct_mutex if we are not careful). Exercise these cases
> by supplying a fresh mmap to pread/pwrite in both non-overlapping and
> overlapping copies.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list