[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250813050706.1564229-1-yanquanmin1@huawei.com>
Date: Wed, 13 Aug 2025 13:06:50 +0800
From: Quanmin Yan <yanquanmin1@...wei.com>
To: <sj@...nel.org>
CC: <akpm@...ux-foundation.org>, <damon@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
<yanquanmin1@...wei.com>, <wangkefeng.wang@...wei.com>, <zuoze1@...wei.com>
Subject: [RFC PATCH -next 00/16] 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.
Implements DAMON compatibility for ARM32 with LPAE enabled.
Patches 01/16 through 10/16 are from the mailing list[1], add a new core
layer parameter called 'addr_unit'. Operations set layer can translate a
core layer address to the real address by multiplying the parameter value
to the core layer address.
Patches 11/16 through 14/16 extend and complement patches 01~10, addressing
various issues introduced by the addr_unit implementation.
Patches 15/16 and 16/16 complete native DAMON support for 32-bit systems.
[1] https://lore.kernel.org/all/20250416042551.158131-1-sj@kernel.org/
Quanmin Yan (6):
mm/damon: add addr_unit for DAMON_RECLAIM and LRU_SORT
mm/damon: add damon_ctx->min_region and damon_target->min_region
mm/damon/sysfs: ensure valid addr_unit setting in
damon_sysfs_apply_inputs()
mm/damon/core: convert sz to byte units when updating state
mm/damon: the byte statistics data type in damos_stat uses unsigned
long long
mm/damon/core: handle quota->esz overflow issues
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 | 24 +++--
mm/damon/core.c | 80 +++++++++++-----
mm/damon/lru_sort.c | 16 +++-
mm/damon/modules-common.c | 5 +-
mm/damon/modules-common.h | 6 +-
mm/damon/paddr.c | 95 ++++++++++++-------
mm/damon/reclaim.c | 16 +++-
mm/damon/stat.c | 2 +-
mm/damon/sysfs-schemes.c | 12 +--
mm/damon/sysfs.c | 27 ++++++
13 files changed, 226 insertions(+), 91 deletions(-)
--
2.34.1
Powered by blists - more mailing lists