Add support for page alloc w/ custom cache attributes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mmu: add option to map lowmem with page mappingsarch/ arch/ | +72 | 0 replies | |
| 2/4 | mm: add page allocator for customizing cache attributesarch/ arch/ arch/ +5 more | +243 | 0 replies | |
| 3/4 | mm: add memory type for inner-writebackarch/ arch/ arch/ +2 more | +8 | 1 reply | |
| 3/4 | mm: add memory type for inner-writeback | +0 | 0 replies | |
| 4/4 | dma-mapping: add support for inner-writeback pagesarch/ arch/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Add support for page alloc w/ custom cache attributes
This series is an attempt to address the recent discussion regarding dual-mapping of kernel pages with different cache attributes that was spawned by the VCM patch series (and other IOMMU / SMMU patches), to allow memory allocations for the SMMU to use any kernel-managed page.
This adds 2 new APIs (enabled with the ARM_ATTRIB_ALLOCATOR config) to allocate and free pages with caller-specified cache attributes. When this config is enabled, the kernel's lowmem mapping is mapped using PTEs rather than sections, so that the cache attributes for the kernel's mapping can be updated when the page is allocated to match the caller's request (and returned to pgprot_kernel when freed).
Additionally, this patch stack adds an additional memory type (inner- writeback, outer-non-cacheable) that we (NVIDIA) have found to be extremely beneficial in optimizing the drawing that Android's window system (among others) uses.
I'm sending this out for comments on the overall direction. The APIs are similar to functions that we implemented in the Tegra system MMU driver.
- Gary