]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/migrate: use XE_BO_FLAG_PAGETABLE
authorMatthew Auld <matthew.auld@intel.com>
Tue, 26 Nov 2024 18:13:01 +0000 (18:13 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 27 Nov 2024 10:54:20 +0000 (10:54 +0000)
commitfebc689b27d28973cd02f667548a5dca383d859a
tree98f231f7ec2d7f71a3714342b8f7e3b8b8ee2c7d
parentf3dc9246f9c3cd5a7d8fd70cfd805bfc52214e2e
drm/xe/migrate: use XE_BO_FLAG_PAGETABLE

On some HW we want to avoid the host caching PTEs, since access from GPU
side can be incoherent. However here the special migrate object is
mapping PTEs which are written from the host and potentially cached. Use
XE_BO_FLAG_PAGETABLE to ensure that non-cached mapping is used, on
platforms where this matters.

Fixes: 7a060d786cc1 ("drm/xe/mtl: Map PPGTT as CPU:WC")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: <stable@vger.kernel.org> # v6.8+
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241126181259.159713-4-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_migrate.c