[PATCH 0/2] x86/pat: fix querying available caching modes

From: Juergen Gross
Date: Tue May 03 2022 - 09:22:16 EST


Fix some issues with querying caching modes being available for memory
mappings.

This is a replacement for the patch of Jan sent recently:

https://lists.xen.org/archives/html/xen-devel/2022-04/msg02392.html

Juergen Gross (2):
x86/pat: fix x86_has_pat_wp()
x86/pat: add functions to query specific cache mode availability

arch/x86/include/asm/memtype.h | 2 ++
arch/x86/include/asm/pci.h | 2 +-
arch/x86/mm/init.c | 24 ++++++++++++++++++++++--
drivers/gpu/drm/i915/gem/i915_gem_mman.c | 8 ++++----
4 files changed, 29 insertions(+), 7 deletions(-)

--
2.35.3