All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shaokun Zhang <zhangshaokun@hisilicon.com>
To: Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 1/3] arm64: perf: Add support caps in sysfs
Date: Mon, 20 Jul 2020 21:11:04 +0800	[thread overview]
Message-ID: <24c1dc38-1e33-d047-01a9-89c5db1f4d6c@hisilicon.com> (raw)
In-Reply-To: <20200720105410.GD11516@willie-the-truck>

Hi Will,

在 2020/7/20 18:54, Will Deacon 写道:
> On Mon, Jul 20, 2020 at 11:50:19AM +0100, Mark Rutland wrote:
>> On Mon, Jul 20, 2020 at 11:15:19AM +0100, Will Deacon wrote:
>>> On Thu, Jun 18, 2020 at 09:35:42PM +0800, Shaokun Zhang wrote:
>>
>>>> +static umode_t
>>>> +armv8pmu_caps_attr_is_visible(struct kobject *kobj, struct attribute *attr,
>>>> +			      int unused)
>>>> +{
>>>> +	int pmuver = armv8pmu_get_pmu_version();
>>>> +
>>>> +	if (pmuver >= ID_AA64DFR0_PMUVER_8_4)
>>>> +		return attr->mode;
>>>
>>> Is this sufficient? I'm a bit confused by the text in the Arm ARM that says:
>>>
>>>   | If ARMv8.4-PMU is implemented:
>>>   | * If STALL_SLOT is not implemented, it is IMPLEMENTATION DEFINED whether
>>>   |   the PMMIR System registers are implemented.
>>>   | * If STALL_SLOT is implemented, then the PMMIR System registers are
>>>   |   implemented.
>>>
>>> whereas the register description for PMMIR_EL1 says:
>>>
>>>   | This register is present only when ARMv8.4-PMU is implemented.
>>
>> I think this is trying to say that when ARMv8.4-PMU is not implemented,
>> PMMIR definitely isn't implemented (i.e. the the presence of PMMIR_EL1
>> implies the presence of ARMv8.4-PMU).
>>
>>> Mark -- please could you clarify whether or not we need to check STALL_SLOT
>>> as well as the PMUVer?
>>
>> Given the explciit wording that it's IMP DEF, I suspect that we need to
>> check both.
>>
>> I'll go chase this up.
> 
> Thanks. In the meantime, Shaokun, can you send updated versions of the first
> two patches, please? We'll play it safe and check STALL_SLOT as well pending

Ok, I will submit them soon addressed your other comments together.

Thanks,
Shaokun

> Mark's findings.
> 
> Will
> 
> .
> 


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2020-07-20 13:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-18 13:35 [PATCH v3 1/3] arm64: perf: Add support caps in sysfs Shaokun Zhang
2020-06-18 13:35 ` [PATCH v3 2/3] arm64: perf: Expose some new events via sysfs Shaokun Zhang
2020-07-20 10:16   ` Will Deacon
2020-06-18 13:35 ` [PATCH v3 3/3] arm64: perf: Correct the event index in sysfs Shaokun Zhang
2020-07-20 10:20   ` Will Deacon
2020-07-07 13:33 ` [PATCH v3 1/3] arm64: perf: Add support caps " Shaokun Zhang
2020-07-20 10:15 ` Will Deacon
2020-07-20 10:50   ` Mark Rutland
2020-07-20 10:54     ` Will Deacon
2020-07-20 13:11       ` Shaokun Zhang [this message]
2020-07-21  8:05       ` 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=24c1dc38-1e33-d047-01a9-89c5db1f4d6c@hisilicon.com \
    --to=zhangshaokun@hisilicon.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.