perf/x86/uncore: Add missing filter constraint for SKX CHA event
Subsystems (2)
PATCH 1/1 perf/x86/uncore: Add missing filter constraint for SKX CHA event
From: Stephane Eranian <[email protected]>
Adding a filter constraint for Intel Skylake CHA event UNC_CHA_UPI_CREDITS_ACQUIRED (0x38).
The event supports core-id/thread-id and link filtering.
--- arch/x86/events/intel/uncore_snbep.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/events/intel/uncore_snbep.c +1 -0
@@ -3355,6 +3355,7 @@ static struct extra_reg skx_uncore_cha_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x9134 ,0xffff ,0x4 ),SNBEP_CBO_EVENT_EXTRA_REG (0x35 ,0xff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x36 ,0xff ,0x8 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x38 ,0xff ,0x3 ), EVENT_EXTRA_END };
Signature · 1 line
2.7.4
Peter Zijlstra
maintainerQuoted 5 lines · Kan Liang
From: Stephane Eranian <[email protected]>
Adding a filter constraint for Intel Skylake CHA event
UNC_CHA_UPI_CREDITS_ACQUIRED(0x38).
The event supports core-id/thread-id and link filtering.
Could you also comment on the other CHA patch?
Quoted 11 lines · Peter Zijlstra
Quoted 5 lines · Kan Liang
From: Stephane Eranian <[email protected]>
Adding a filter constraint for Intel Skylake CHA event
UNC_CHA_UPI_CREDITS_ACQUIRED(0x38).
The event supports core-id/thread-id and link filtering.Could you also comment on the other CHA patch?
Now, there is a recommended way in uncore document to query the number of CHAs by reading bits 27:0 in the CAPID6 register located at Device 30, Function 3, Offset 0x9C. I have implemented a patch and sent it to Gary. It should fix his issue.
Thanks,
Kan
tip-bot for Stephane Eranian
merge bot[tip:perf/urgent] perf/x86/intel/uncore: Add missing filter constraint for SKX CHA event
In reply to Kan Liangperf/x86/intel/uncore: Add missing filter constraint for SKX CHA event
Commit-ID: e340895c9ed0b44548f08bbaaee4afc7bfacd354 Gitweb: https://git.kernel.org/tip/e340895c9ed0b44548f08bbaaee4afc7bfacd354 Author: Stephane Eranian <[email protected]> AuthorDate: Mon, 12 Mar 2018 08:41:34 -0700 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 20 Mar 2018 08:53:32 +0100
perf/x86/intel/uncore: Add missing filter constraint for SKX CHA event
Adding a filter constraint for Intel Skylake CHA event UNC_CHA_UPI_CREDITS_ACQUIRED (0x38).
The event supports core-id/thread-id and link filtering.
--- arch/x86/events/intel/uncore_snbep.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/events/intel/uncore_snbep.c +1 -0
@@ -3343,6 +3343,7 @@ static struct extra_reg skx_uncore_cha_extra_regs[] = {SNBEP_CBO_EVENT_EXTRA_REG (0x9134 ,0xffff ,0x4 ),SNBEP_CBO_EVENT_EXTRA_REG (0x35 ,0xff ,0x8 ),SNBEP_CBO_EVENT_EXTRA_REG (0x36 ,0xff ,0x8 ), +SNBEP_CBO_EVENT_EXTRA_REG (0x38 ,0xff ,0x3 ), EVENT_EXTRA_END };