Re: [PATCH] arm64: perf: Fix 64-bit event counter read truncation

2021-03-10 Thread Will Deacon
On Tue, 9 Mar 2021 17:44:12 -0700, Rob Herring wrote: > Commit 0fdf1bb75953 ("arm64: perf: Avoid PMXEV* indirection") changed > armv8pmu_read_evcntr() to return a u32 instead of u64. The result is > silent truncation of the event counter when using 64-bit counters. Given > the offending commit

Re: [PATCH] arm64: perf: Fix 64-bit event counter read truncation

2021-03-10 Thread Alexandru Elisei
Hi Rob, On 3/10/21 12:44 AM, Rob Herring wrote: > Commit 0fdf1bb75953 ("arm64: perf: Avoid PMXEV* indirection") changed > armv8pmu_read_evcntr() to return a u32 instead of u64. The result is > silent truncation of the event counter when using 64-bit counters. Given > the offending commit appears

Re: [PATCH] arm64: perf: Fix 64-bit event counter read truncation

2021-03-10 Thread Mark Rutland
On Tue, Mar 09, 2021 at 05:44:12PM -0700, Rob Herring wrote: > Commit 0fdf1bb75953 ("arm64: perf: Avoid PMXEV* indirection") changed > armv8pmu_read_evcntr() to return a u32 instead of u64. The result is > silent truncation of the event counter when using 64-bit counters. Given > the offending

[PATCH] arm64: perf: Fix 64-bit event counter read truncation

2021-03-09 Thread Rob Herring
Commit 0fdf1bb75953 ("arm64: perf: Avoid PMXEV* indirection") changed armv8pmu_read_evcntr() to return a u32 instead of u64. The result is silent truncation of the event counter when using 64-bit counters. Given the offending commit appears to have passed thru several folks, it seems likely this