Re: [PATCH] perf/x86/uncore: Add missing filter constraint for SKX CHA event

From: Liang, Kan
Date: Mon Mar 12 2018 - 21:49:41 EST




On 3/12/2018 12:39 PM, Peter Zijlstra wrote:
On Mon, Mar 12, 2018 at 08:41:34AM -0700, Kan Liang wrote:
From: Stephane Eranian <eranian@xxxxxxxxxx>

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?

https://lkml.kernel.org/r/CS1PR84MB01182561B15688095C4DBF30F6D80@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



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