x86-mm-pat-remove-strict_prot-parameter-from-reserve_pfn_range.patch removed from -mm tree
The quilt patch titled
Subject: x86/mm/pat: remove strict_prot parameter from reserve_pfn_range()
has been removed from the -mm tree. Its filename was
x86-mm-pat-remove-strict_prot-parameter-from-reserve_pfn_range.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: x86/mm/pat: remove strict_prot parameter from reserve_pfn_range()
Date: Mon, 12 May 2025 14:34:20 +0200
Always set to 0, so let's remove it.
Signed-off-by David Hildenbrand <[email protected]>
Reviewed-by Lorenzo Stoakes <[email protected]>
Reviewed-by Liam R. Howlett <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Borislav Betkov <[email protected]>
Cc Dave Airlie <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Jann Horn <[email protected]>
Cc Jonas Lahtinen <[email protected]>
Cc "Masami Hiramatsu (Google)" <[email protected]>
Cc Mathieu Desnoyers <[email protected]>
Cc Peter Xu <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Thomas Gleinxer <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/x86/mm/pat/memtype.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
arch/x86/mm/pat/memtype.c renamed from arch/x86/mm/pat/memtype.c~x86-mm-pat-remove-strict_prot-parameter-from-reserve_pfn_range +3 -9
@@ -858,8 +858,7 @@ int memtype_kernel_map_sync(u64 base, un* Reserved non RAM regions only and after successful memtype_reserve, * this func also keeps identity mapping (if any) in sync with this new prot. */ -static int reserve_pfn_range (u64 paddr,unsigned long size,pgprot_t *vma_prot, -int strict_prot) +static int reserve_pfn_range (u64 paddr,unsigned long size,pgprot_t *vma_prot) {int is_ram =0 ;int ret;
@@ -895,8 +894,7 @@ static int reserve_pfn_range(u64 paddr,return ret;if (pcm != want_pcm) { -if (strict_prot || - !is_new_memtype_allowed (paddr, size, want_pcm, pcm)) { +if (!is_new_memtype_allowed (paddr, size, want_pcm, pcm)) {memtype_free (paddr, paddr + size); pr_err("x86/PAT: %s:%d map pfn expected mapping type %s for [mem %#010Lx-%#010Lx], got %s\n", current->comm, current->pid,
@@ -906,10 +904,6 @@ static int reserve_pfn_range(u64 paddr, cattr_name(pcm));return -EINVAL ; } -/* -* We allow returning different type than the one requested in -* non strict case. -*/ pgprot_set_cachemode (vma_prot, pcm); }
@@ -959,7 +953,7 @@ int pfnmap_track(unsigned long pfn, unsi {const resource_size_t paddr = (resource_size_t )pfn <<PAGE_SHIFT ; -return reserve_pfn_range (paddr, size, prot,0 ); +return reserve_pfn_range (paddr, size, prot); }void pfnmap_untrack (unsigned long pfn,unsigned long size)
_
Patches currently in -mm which might be from [email protected] are