Skip to contentSkip to conversation

perf/x86/intel: Add more available bits for OFFCORE_RESPONSE of Intel Tremont

PATCH Superseded [email protected] 1 participant 2 messages Mar 8, 2020 – Mar 30, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf/x86/intel: Add more available bits for OFFCORE_RESPONSE of Intel Tremont

From: Kan Liang <[email protected]>

The mask in the extra_regs for Intel Tremont need to be extended to allow more defined bits.

"Outstanding Requests" (bit 63) is only available on MSR_OFFCORE_RSP0;

Fixes 6daeb8737f8a ("perf/x86/intel: Add Tremont core PMU support")
---
 arch/x86/events/intel/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/events/intel/core.c +2 -2
index 3be51aa06e67..ba08ad1f560b 100644
@@ -1892,8 +1892,8 @@ static __initconst const u64 tnt_hw_cache_extra_regs
 
 static struct extra_reg intel_tnt_extra_regs[] __read_mostly = {
 	/* must define OFFCORE_RSP_X first, see intel_fixup_er() */
-	INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0xffffff9fffull, RSP_0),
-	INTEL_UEVENT_EXTRA_REG(0x02b7, MSR_OFFCORE_RSP_1, 0xffffff9fffull, RSP_1),
+	INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0x800ff0ffffff9fffull, RSP_0),
+	INTEL_UEVENT_EXTRA_REG(0x02b7, MSR_OFFCORE_RSP_1, 0xff0ffffff9fffull, RSP_1),
 	EVENT_EXTRA_END
 };
 
Signature · 1 line
2.21.1
author
#1 lore raw

Hi Peter,

Could you please take a look and apply the patch?

Thanks,
Kan

Quoted 31 lines · On 3/8/2020 8:55 AM, [email protected] wrote:

From: Kan Liang <[email protected]>

The mask in the extra_regs for Intel Tremont need to be extended to allow more defined bits.

"Outstanding Requests" (bit 63) is only available on MSR_OFFCORE_RSP0;

Fixes 6daeb8737f8a ("perf/x86/intel: Add Tremont core PMU support")
---
  arch/x86/events/intel/core.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/events/intel/core.c +2 -2
index 3be51aa06e67..ba08ad1f560b 100644
@@ -1892,8 +1892,8 @@ static __initconst const u64 tnt_hw_cache_extra_regs
 
  static struct extra_reg intel_tnt_extra_regs[] __read_mostly = {
  	/* must define OFFCORE_RSP_X first, see intel_fixup_er() */
-	INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0xffffff9fffull, RSP_0),
-	INTEL_UEVENT_EXTRA_REG(0x02b7, MSR_OFFCORE_RSP_1, 0xffffff9fffull, RSP_1),
+	INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0x800ff0ffffff9fffull, RSP_0),
+	INTEL_UEVENT_EXTRA_REG(0x02b7, MSR_OFFCORE_RSP_1, 0xff0ffffff9fffull, RSP_1),
  	EVENT_EXTRA_END
  };