]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pat: define coh_mode 2way
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Thu, 5 Mar 2026 12:19:05 +0000 (17:49 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Mon, 23 Mar 2026 09:53:24 +0000 (15:23 +0530)
commit411389d29eab5325e2b250b1cd2ddb567abb7bbb
tree2eaf7a79cba0274da7b6844d63997cc9376ac263
parent4e7ebff69aed345f65f590a17b3119c0cb5eadde
drm/xe/pat: define coh_mode 2way

Defining 2way (two-way coherency) is critical for
Xe3p_LPG (Nova Lake P) platforms to support L2 flush
optimization safely.

This mode allows the driver to skip certain manual cache
flushes (L2 flush optimization) without risking memory
corruption because the hardware ensures the most recent
data is visible to both entities.

Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260305121902.1892593-8-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/xe_pat.c
drivers/gpu/drm/xe/xe_pat.h
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_madvise.c