Skip to content

Commit 610c238

Browse files
Ravi BangoriaPeter Zijlstra
authored andcommitted
perf/x86/amd: Add IBS OP_DATA2 DataSrc bit definitions
IBS_OP_DATA2 DataSrc provides detail about location of the data being accessed from by load ops. Define macros for legacy and extended DataSrc values. Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20220928095805.596-3-ravi.bangoria@amd.com
1 parent ee3e88d commit 610c238

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

arch/x86/include/asm/amd-ibs.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@
66

77
#include <asm/msr-index.h>
88

9+
/* IBS_OP_DATA2 DataSrc */
10+
#define IBS_DATA_SRC_LOC_CACHE 2
11+
#define IBS_DATA_SRC_DRAM 3
12+
#define IBS_DATA_SRC_REM_CACHE 4
13+
#define IBS_DATA_SRC_IO 7
14+
15+
/* IBS_OP_DATA2 DataSrc Extension */
16+
#define IBS_DATA_SRC_EXT_LOC_CACHE 1
17+
#define IBS_DATA_SRC_EXT_NEAR_CCX_CACHE 2
18+
#define IBS_DATA_SRC_EXT_DRAM 3
19+
#define IBS_DATA_SRC_EXT_FAR_CCX_CACHE 5
20+
#define IBS_DATA_SRC_EXT_PMEM 6
21+
#define IBS_DATA_SRC_EXT_IO 7
22+
#define IBS_DATA_SRC_EXT_EXT_MEM 8
23+
#define IBS_DATA_SRC_EXT_PEER_AGENT_MEM 12
24+
925
/*
1026
* IBS Hardware MSRs
1127
*/

0 commit comments

Comments
 (0)