mm/damon: support ARM32 with LPAE
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest11 patches 2 repliesIn review
- v1 RFC10 patches 0 repliesSuperseded
Changes in v3 from the cover letter
(https://lore.kernel.org/[email protected])
- Fix 64bit division linking errors on certain 32bit arch configs.
- Re-posted by SJ.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | mm/damon/core: add damon_ctx->addr_unitinclude/ mm/ | +5 | 0 replies | |
| 2/11 | mm/damon/paddr: support addr_unit for access monitoringmm/ | +21 | 0 replies | |
| 3/11 | mm/damon/paddr: support addr_unit for DAMOS_PAGEOUTmm/ | +23 | 0 replies | |
| 4/11 | mm/damon/paddr: support addr_unit for DAMOS_LRU_[DE]PRIOmm/ | +17 | 0 replies | |
| 5/11 | mm/damon/paddr: support addr_unit for MIGRATE_{HOT,COLD}mm/ | +8 | 0 replies | |
| 6/11 | mm/damon/paddr: support addr_unit for DAMOS_STATmm/ | +7 | 0 replies | |
| 7/11 | mm/damon/sysfs: implement addr_unit file under context dirmm/ | +33 | 0 replies | |
| 8/11 | Docs/mm/damon/design: document 'address unit' parameterDocumentation/ | +13 | 0 replies | |
| 9/11 | Docs/admin-guide/mm/damon/usage: document addr_unit fileDocumentation/ Documentation/ | +9 | 0 replies | |
| 10/11 | Docs/ABI/damon: document addr_unit fileDocumentation/ | +7 | 0 replies | |
| 11/11 | mm/damon: add damon_ctx->min_sz_regioninclude/ mm/ mm/ +3 more | +61 | 2 replies |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | SeongJae Park |
|---|---|
| 1/11 | R-b |
| 2/11 | R-b |
| 3/11 | R-b |
| 4/11 | R-b |
| 5/11 | R-b |
| 6/11 | R-b |
| 7/11 | R-b |
| 8/11 | R-b |
| 9/11 | R-b |
| 10/11 | R-b |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/11] mm/damon: support ARM32 with LPAE
Previously, DAMON's physical address space monitoring only supported memory ranges below 4GB on LPAE-enabled systems. This was due to the use of 'unsigned long' in 'struct damon_addr_range', which is 32-bit on ARM32 even with LPAE enabled[1].
To add DAMON support for ARM32 with LPAE enabled, a new core layer parameter called 'addr_unit' was introduced[2]. Operations set layer can translate a core layer address to the real address by multiplying the parameter value to the core layer address. Support of the parameter is up to each operations layer implementation, though. For example, operations set implementations for virtual address space can simply ignore the parameter. Add the support on paddr, which is the DAMON operations set implementation for the physical address space, as we have a clear use case for that.
[1]https://lore.kernel.org/all/[email protected]/ [2]https://lore.kernel.org/all/[email protected]/
Changes from v2
(https://lore.kernel.org/[email protected])
- Fix 64bit division linking errors on certain 32bit arch configs.
- Re-posted by SJ.
Changes from v1
(https://lore.kernel.org/all/[email protected]/)
- Set dst->min_sz_region as src->min_sz_region in damon_commit_ctx().
- Fixed the incorrect 'min_region' in the commit message.
Changes from RFC v2
(https://lore.kernel.org/all/[email protected]/)
- Rename 'min_region' to 'min_sz_region'.
- Separate the overflow prevention in damos_set_effective_quota() from this series.
- Drop RFC tag.
Changes from RFC v1
(https://lore.kernel.org/all/[email protected]/)
- Set DAMOS_PAGEOUT, DAMOS_LRU_[DE]PRIO, DAMOS_MIGRATE_{HOT,COLD} and DAMOS_STAT stat in core address unit.
- Pass ctx->min_region value to replace the original synchronization.
- Drop the DAMOS stats type changes, keep them as 'unsigned long' type.
- Separate add addr_unit support for DAMON_RECLAIM and LRU_SORT from this patch series.
Quanmin Yan (1):
mm/damon: add damon_ctx->min_sz_region
SeongJae Park (10):
mm/damon/core: add damon_ctx->addr_unit mm/damon/paddr: support addr_unit for access monitoring mm/damon/paddr: support addr_unit for DAMOS_PAGEOUT mm/damon/paddr: support addr_unit for DAMOS_LRU_[DE]PRIO mm/damon/paddr: support addr_unit for MIGRATE_{HOT,COLD} mm/damon/paddr: support addr_unit for DAMOS_STAT mm/damon/sysfs: implement addr_unit file under context dir Docs/mm/damon/design: document 'address unit' parameter Docs/admin-guide/mm/damon/usage: document addr_unit file Docs/ABI/damon: document addr_unit file
.../ABI/testing/sysfs-kernel-mm-damon | 7 ++ Documentation/admin-guide/mm/damon/usage.rst | 11 +- Documentation/mm/damon/design.rst | 16 ++- include/linux/damon.h | 7 +- mm/damon/core.c | 70 ++++++----- mm/damon/paddr.c | 119 +++++++++++------- mm/damon/sysfs.c | 41 +++++- mm/damon/tests/core-kunit.h | 21 ++-- mm/damon/tests/vaddr-kunit.h | 2 +- mm/damon/vaddr.c | 2 +- 10 files changed, 204 insertions(+), 92 deletions(-)
base-commit: 398a6e2cbd43b92d9a5fa6b4020be72c2441babd
Signature · 1 line
2.39.5