From: Shaokun Zhang <zhangshaokun@hisilicon.com>
To: John Garry <john.garry@huawei.com>,
<linux-arm-kernel@lists.infradead.org>
Cc: Mark Rutland <mark.rutland@arm.com>, Qi Liu <liuqi115@huawei.com>,
Will Deacon <will@kernel.org>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH 4/8] drivers/perf: hisi: Add new functions for HHA PMU
Date: Wed, 27 Jan 2021 16:02:23 +0800 [thread overview]
Message-ID: <59376a32-cbac-a1f6-39cc-d976f1a2cc17@hisilicon.com> (raw)
In-Reply-To: <236563c9-1588-3102-2e3b-9417b79261f8@huawei.com>
Hi John,
在 2021/1/26 20:10, John Garry 写道:
> On 31/12/2020 06:19, Shaokun Zhang wrote:
>> On HiSilicon Hip09 platform, some new functions are also supported on
>> HHA PMU, it can filter gathered statistics by the Master ID and mask
>> from the SoC if the user wants to do deep-going profiling.
>> Tracetag support is also added with L3C PMU in the SoC system.
>>
>> $# perf stat -a -e hisi_sccl3_hha0/config=0x02,tracetag_en=0x1/ sleep 5
>>
>> $# perf stat -a -e hisi_sccl3_hha0/config=0x02,srcid_cmd=0x1/ sleep 5
>> Much more introduction is added in documentation:
>
>
>
>> Documentation/admin-guide/perf/hisi-pmu.rst
>
> I think that it would make sense to add that prior to the driver change, like how we do with dt
> bindings, but not so important
I will consider this.
>
>>
>> Cc: Mark Rutland<mark.rutland@arm.com>
>> Cc: Will Deacon<will@kernel.org>
>> Cc: John Garry<john.garry@huawei.com>
>> Cc: Jonathan Cameron<Jonathan.Cameron@huawei.com>
>> Co-developed-by: Qi Liu<liuqi115@huawei.com>
>> Signed-off-by: Qi Liu<liuqi115@huawei.com>
>> Signed-off-by: Shaokun Zhang<zhangshaokun@hisilicon.com>
>
> Reviewed-by: John Garry <john.garry@huawei.com>
>
> I suppose the change in hisi_hha_pmu_init_data() is ok (not shown).
>
>> ---
>> drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 203 +++++++++++++++++++++++++--
>> 1 file changed, 188 insertions(+), 15 deletions(-)
>>
>> diff --git a/drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
>> b/drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
>> index 2f55e5864d39..5e1c4b61ffce 100644
>> --- a/drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
>> +++ b/drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
>> @@ -25,19 +25,136 @@
>> #define HHA_VERSION 0x1cf0
>> #define HHA_PERF_CTRL 0x1E00
>> #define HHA_EVENT_CTRL 0x1E04
>> +#define HHA_SRCID_CTRL 0x1E08
>> +#define HHA_DATSRC_CTRL 0x1BF0
>> #define HHA_EVENT_TYPE0 0x1E80
>> /*
>> - * Each counter is 48-bits and [48:63] are reserved
>> - * which are Read-As-Zero and Writes-Ignored.
>> + * If the HW version only supports a 48-bit counter, then
>> + * bits [63:48] are reserved, which are Read-As-Zero and
>> + * Writes-Ignored.
>> */
>> #define HHA_CNT0_LOWER 0x1F00
>> -/* HHA has 16-counters */
>> +/* HHA PMU v1 has 16-counter and v2 only has 8-counter */
>
> nit: "has 16 counters and v2 has only 8 counters */
Ok,
Thanks,
Shaokun
> .
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-01-27 8:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-31 6:19 [PATCH 0/8] Add support for HiSilicon Hip09 uncore PMU driver Shaokun Zhang
2020-12-31 6:19 ` [PATCH 1/8] drivers/perf: hisi: Refactor code for more uncore PMUs Shaokun Zhang
2020-12-31 6:19 ` [PATCH 2/8] drivers/perf: hisi: Add PMU version for uncore PMU drivers Shaokun Zhang
2021-01-26 11:46 ` John Garry
2021-01-27 7:56 ` Shaokun Zhang
2020-12-31 6:19 ` [PATCH 3/8] drivers/perf: hisi: Add new functions for L3C PMU Shaokun Zhang
2021-01-26 12:05 ` John Garry
2020-12-31 6:19 ` [PATCH 4/8] drivers/perf: hisi: Add new functions for HHA PMU Shaokun Zhang
2021-01-26 12:10 ` John Garry
2021-01-27 8:02 ` Shaokun Zhang [this message]
2020-12-31 6:19 ` [PATCH 5/8] drivers/perf: hisi: Update DDRC PMU for programable counter Shaokun Zhang
2021-01-26 12:33 ` John Garry
2021-01-26 15:56 ` John Garry
2021-01-27 8:16 ` Shaokun Zhang
2020-12-31 6:19 ` [PATCH 6/8] drivers/perf: hisi: Add support for HiSilicon SLLC PMU driver Shaokun Zhang
2021-01-26 12:30 ` John Garry
2021-01-27 8:26 ` Shaokun Zhang
2020-12-31 6:19 ` [PATCH 7/8] drivers/perf: hisi: Add support for HiSilicon PA " Shaokun Zhang
2021-01-26 12:45 ` John Garry
2021-01-27 8:41 ` Shaokun Zhang
2020-12-31 6:19 ` [PATCH 8/8] docs: perf: Add new description on HiSilicon uncore PMU v2 Shaokun Zhang
2021-01-22 6:03 ` [PATCH 0/8] Add support for HiSilicon Hip09 uncore PMU driver Shaokun Zhang
2021-02-02 18:48 ` Will Deacon
2021-02-03 1:46 ` Shaokun Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59376a32-cbac-a1f6-39cc-d976f1a2cc17@hisilicon.com \
--to=zhangshaokun@hisilicon.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=john.garry@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=liuqi115@huawei.com \
--cc=mark.rutland@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox