Skip to content

PAT x86: PAT support for x86

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11PAT x86: Make acpi/other drivers map memory instead of assuming identity maparch/x86/kernel/acpi/boot.c arch/x86/kernel/mpparse_32.c arch/x86/kernel/mpparse_64.c +9 more+108 -510 replies
2/11PAT x86: Map only usable memory in x86_64 identity map and kernel textarch/x86/kernel/e820_64.c arch/x86/mm/init_64.c arch/x86/mm/ioremap_64.c +2 more+276 -1726 replies
3/11PAT x86: Map only usable memory in i386 identity maparch/x86/kernel/e820_32.c arch/x86/mm/init_32.c arch/x86/mm/pageattr_32.c +1 more+182 -211 reply
4/11PAT x86: Basic PAT implementationarch/x86/kernel/cpu/mtrr/generic.c arch/x86/mm/Makefile_32 arch/x86/mm/Makefile_64 +10 more+169 -210 replies
5/11PAT x86: drm driver changes for PATdrivers/char/drm/drm_proc.c drivers/char/drm/drm_vm.c drivers/video/gbefb.c +2 more+8 -130 replies
6/11PAT x86: Refactoring i386 cpaarch/x86/mm/pageattr_32.c+14 -102 replies
7/11PAT x86: pat-conflict resolution using linear listarch/x86/mm/ioremap_32.c arch/x86/mm/ioremap_64.c arch/x86/mm/pat.c +1 more+209 -412 replies
8/11PAT x86: pci mmap conlfict patcharch/x86/pci/i386.c+44 -00 replies
9/11PAT x86: Add ioremap_wc supportarch/x86/mm/Makefile_32 arch/x86/mm/Makefile_64 arch/x86/mm/ioremap.c +4 more+49 -43 replies
10/11PAT x86: Handle /dev/mem mappingsarch/x86/mm/ioremap.c arch/x86/mm/pat.c drivers/char/mem.c +2 more+168 -370 replies
11/11PAT x86: Expose uc and wc interfaces in /sysfs vor pci_mmap_resourcedrivers/pci/pci-sysfs.c include/linux/pci.h+61 -222 replies

Reviews trailers per patch

None of the 11 patches has a Reviewed-by or Acked-by.

PatchJustin Piszcz
1/11
2/11T-b
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 00/11] PAT x86: PAT support for x86

This series is heavily derived from the PAT patchset by Eric Biederman and Andi Kleen.
http://www.firstfloor.org/pub/ak/x86_64/pat/

This patchset is a followup of "PAT support for X86_64"
http://www.ussg.iu.edu/hypermail/linux/kernel/0712.1/2268.html

Things changed from the above (Dec 13 2007) version:
* PAT mappings now used are - (0,WB) (1,WT) (2,WC) (3,UC).
* Covers both i386 and x86_64.
* Resolve the /sysfs issue by exporting wc and uc interfaces.
* Piggyback PAT initialization on existing MTRR initialization as they have same setup rules.
* Avoid early table allocation problem for x86_64 by doing the reserved region pruning later in the boot. Handle both memory identity mapping and kernel test mapping.
* Handle fork() and /dev/mem mapping and unmapping cases.

Patchset is against Ingo's x86 branch from 2 days ago. Will need some merging effort with Andi's CPA changes and few other changes like pgtable.h unification.

Not mapping reserved region in identity map is a sort of big change that can potentially have side-effects on drivers (especially on x86_64), that assume entire address range is mapped in identity map and use __va to access reserved regions instead of ioremap/early_ioremap. We have changed few such common cases, but there can be more in /drivers land.