Re: [PATCH 09/10] soc: fujitsu: hwb: Add sysfs entry
From: Arnd Bergmann <arnd@kernel.org>
Date: 2021-01-08 13:29:52
On Fri, Jan 8, 2021 at 11:52 AM Misono Tomohiro [off-list ref] wrote:
This adds sysfs entry per CMG to show running barrier driver status
for debugging user application. The following entries will be created:
/sys/class/misc/fujitsu_hwb
|- hwinfo ... number of CMG/BB/BW/pe_per_cmg on running system
|- CMG0
|- core_map ... cpuid belonging to this CMG
|- used_bb_bmap ... bitmap of currently allocated BB
|- used_bw_bmap ... bitmap of currently allocated BW
|- init_sync_bb0 ... current value of INIT_SYNC register 0
|- init_sync_bb1 ... current value of INIT_SYNC register 1
...
|- CMG1
...
If this is meant as a stable interface, it should be documented in
Documentation/ABI/
However, if it's purely for debugging and may not get maintained
forever, you might want to use debugfs instead.
Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel