]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
samples/damon: support automatic node address detection
authorYunjeong Mun <yunjeong.mun@sk.com>
Mon, 7 Jul 2025 23:59:18 +0000 (08:59 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:47 +0000 (18:59 -0700)
commit749cc6533b662166fb387486e408e581a87b2a34
tree9ecf4e693e54eb23689b42de9507a45135261571
parent793020545cea0c9e2a79de6ad5c9746ec4f5bd7e
samples/damon: support automatic node address detection

This patch adds a new knob `detect_node_addresses`, which determines
whether the physical address range is set manually using the existing
knobs or automatically by the mtier module.  When `detect_node_addresses`
set to 'Y', mtier automatically converts node0 and node1 to their physical
addresses.  If set to 'N', it uses the existing 'node#_start_addr' and
'node#_end_addr' to define regions as before.

Link: https://lkml.kernel.org/r/20250707235919.513-1-yunjeong.mun@sk.com
Signed-off-by: Yunjeong Mun <yunjeong.mun@sk.com>
Suggested-by: Honggyu Kim <honggyu.kim@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/damon/mtier.c