Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1692916
| From | Will Deacon <will.deacon@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver |
| Date | 2017-07-20 15:10 +0200 |
| Message-ID | <u5jnl-7Tm-33@gated-at.bofh.it> (permalink) |
| References | <u4v7c-7Sa-7@gated-at.bofh.it> <u4vgR-7Vc-1@gated-at.bofh.it> <u4Tjc-6v5-9@gated-at.bofh.it> <u5jdF-7zI-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jul 20, 2017 at 08:54:36PM +0800, Zhangshaokun wrote: > On 2017/7/19 17:17, Jonathan Cameron wrote: > >> +Super CPU cluster (SCCL) and is made up of 6 CCLs. Each SCCL has two HHAs > >> +(0 - 1) and four DDRCs (0 - 3), respectively. > >> + > >> +HiSilicon SoC uncore PMU driver > >> +--------------------------------------- > >> +Each device PMU has separate registers for event counting, control and > >> +interrupt, and the PMU driver shall register perf PMU drivers like L3C, > >> +HHA and DDRC etc. The available events and configuration options shall > >> +be described in the sysfs, see /sys/devices/hisi_*. > > Is there not a subsystem directory that would make more sense to > > refer to than the full device list? > > > > For uncore devices, it is more reasonable to list in /sys/devices/***. The usual place for these things is /sys/bus/event_source/devices/<pmu name>. The events are described as files under the events directory (one file per event, which describes the encoding) and you can describe other things such as formatting and/or capabilities under other directories too. Take a look at some other PMU drivers to get an idea of how it works. Will
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver Jonathan Cameron <Jonathan.Cameron@huawei.com> - 2017-07-19 11:20 +0200
Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver Zhangshaokun <zhangshaokun@hisilicon.com> - 2017-07-20 15:00 +0200
Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver Will Deacon <will.deacon@arm.com> - 2017-07-20 15:10 +0200
Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver Will Deacon <will.deacon@arm.com> - 2017-07-20 15:20 +0200
csiph-web