[PATCH 09/10] soc: fujitsu: hwb: Add sysfs entry

misono.tomohiro at fujitsu.com misono.tomohiro at fujitsu.com
Tue Jan 12 05:40:36 EST 2021


> On Fri, Jan 8, 2021 at 11:52 AM Misono Tomohiro
> <misono.tomohiro at jp.fujitsu.com> 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.
> 

As you guess this is only for debugging purpose, so I will try debugfs.

Thanks for review,
Tomohiro


More information about the linux-arm-kernel mailing list