Re: [PATCH V7] drm/xe/mmap: Add mmap support for PCI memory barrier

2025-01-17 Thread Rodrigo Vivi
On Mon, Jan 13, 2025 at 05:12:01PM +0530, Tejas Upadhyay wrote: Next time, please identify the patch with 'drm/xe/uapi' to get it more visible to maintainers. > In order to avoid having userspace to use MI_MEM_FENCE, > we are adding a mechanism for userspace to generate a > PCI memory barrier wit

[PATCH V7] drm/xe/mmap: Add mmap support for PCI memory barrier

2025-01-13 Thread Tejas Upadhyay
In order to avoid having userspace to use MI_MEM_FENCE, we are adding a mechanism for userspace to generate a PCI memory barrier with low overhead (avoiding IOCTL call as well as writing to VRAM will adds some overhead). This is implemented by memory-mapping a page as uncached that is backed by MM