Skip to content

RFC mm/x86/pat: Fix two possible issues

Peter Xu linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/x86/pat: Only untrack the pfn range if unmap regionmm/memory.c+2 -30 replies
2/2mm/x86/pat: Do proper PAT bit shift for large mappingsmm/huge_memory.c+2 -25 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/2] mm/x86/pat: Fix two possible issues

I'm recently looking at the possibility of mapping PCIe large bars to use huge mappings (just like thp or hugetlb). Then I noticed these only when reading the code.

I don't think I'm familiar enough with the whole PAT system, however I figured I should post them out to collect some comments, hencing marking this small series as RFC.

Please feel free to have a look at each of them; I've put more words in the commit message than here, as the two issues are not related. Any comments are welcomed.

Thanks,

Peter Xu (2):
mm/x86/pat: Only untrack the pfn range if unmap region mm/x86/pat: Do proper PAT bit shift for large mappings

 mm/huge_memory.c | 4 ++--
 mm/memory.c      | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)
Signature · 1 line
2.45.0