Skip to content

Commit da08f11

Browse files
committed
add GNR support
Co-authored-by: Alexander Antonov <alexander.antonov@linux.intel.com> Co-authored-by: Gang Deng <gang.deng@intel.com> Co-authored-by: White Hu <white.hu@intel.com> Co-authored-by: Pavithran Pandiyan <pavithran.pandiyan@intel.com> Co-authored-by: Roman Dementiev <roman.dementiev@intel.com> Change-Id: I4aabb179568ec5652e1814f58cc98a554430407f
1 parent 1cbf558 commit da08f11

File tree

8 files changed

+303
-6
lines changed

8 files changed

+303
-6
lines changed
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
{
2+
"core" : {
3+
"programmable" : {
4+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
5+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
6+
"User": {"Config": 0, "Position": 16, "Width": 1, "DefaultValue": 1},
7+
"OS": {"Config": 0, "Position": 17, "Width": 1, "DefaultValue": 1},
8+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1},
9+
"PinControl": {"Config": 0, "Position": 19, "Width": 1, "DefaultValue": 0},
10+
"APICInt": {"Config": 0, "Position": 20, "Width": 1, "DefaultValue": 0},
11+
"Enable": {"Config": 0, "Position": 22, "Width": 1, "DefaultValue": 1},
12+
"Invert": {"Config": 0, "Position": 23, "Width": 1},
13+
"CounterMask": {"Config": 0, "Position": 24, "Width": 8},
14+
"InTX": {"Config": 0, "Position": 32, "Width": 1, "DefaultValue": 0},
15+
"InTXCheckpointed": {"Config": 0, "Position": 33, "Width": 1, "DefaultValue": 0},
16+
"MSRIndex": {
17+
"0x1a6" : {"Config": 1, "Position": 0, "Width": 64},
18+
"0x1a7" : {"Config": 2, "Position": 0, "Width": 64},
19+
"0x3f6" : {"Config": 3, "Position": 0, "Width": 64},
20+
"0x3f7" : {"Config": 4, "Position": 0, "Width": 64}
21+
}
22+
},
23+
"fixed0" : {
24+
"OS": {"Config": 0, "Position": 0, "Width": 1, "DefaultValue": 1},
25+
"User": {"Config": 0, "Position": 1, "Width": 1, "DefaultValue": 1},
26+
"EnablePMI": {"Config": 0, "Position": 3, "Width": 1, "DefaultValue": 0},
27+
"EventCode": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
28+
"UMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
29+
"EdgeDetect": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
30+
"Invert": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
31+
"CounterMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"}
32+
},
33+
"fixed1" : {
34+
"OS": {"Config": 0, "Position": 4, "Width": 1, "DefaultValue": 1},
35+
"User": {"Config": 0, "Position": 5, "Width": 1, "DefaultValue": 1},
36+
"EnablePMI": {"Config": 0, "Position": 7, "Width": 1, "DefaultValue": 0},
37+
"EventCode": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
38+
"UMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
39+
"EdgeDetect": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
40+
"Invert": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
41+
"CounterMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"}
42+
},
43+
"fixed2" : {
44+
"OS": {"Config": 0, "Position": 8, "Width": 1, "DefaultValue": 1},
45+
"User": {"Config": 0, "Position": 9, "Width": 1, "DefaultValue": 1},
46+
"EnablePMI": {"Config": 0, "Position": 11, "Width": 1, "DefaultValue": 0},
47+
"EventCode": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
48+
"UMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
49+
"EdgeDetect": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
50+
"Invert": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
51+
"CounterMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"}
52+
},
53+
"fixed3" : {
54+
"OS": {"Config": 0, "Position": 12, "Width": 1, "DefaultValue": 1},
55+
"User": {"Config": 0, "Position": 13, "Width": 1, "DefaultValue": 1},
56+
"EnablePMI": {"Config": 0, "Position": 15, "Width": 1, "DefaultValue": 0},
57+
"EventCode": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
58+
"UMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
59+
"EdgeDetect": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
60+
"Invert": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
61+
"CounterMask": {"Config": 0, "Position": -1, "__comment": "position=-1 means field ignored"},
62+
"PerfMetrics": {"Config": 2, "Position": 0, "Width": 1, "DefaultValue": 0, "__comment": "fake field to tell the collector to also print the L1 top-down metrics, not just raw slots count"}
63+
}
64+
},
65+
"cha" : {
66+
"programmable" : {
67+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
68+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
69+
"TIDEnable": {"Config": 0, "Position": 16, "Width": 1, "DefaultValue": 0},
70+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
71+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0},
72+
"UMaskExt": {"Config": 0, "Position": 32, "Width": 26},
73+
"TID": {"Config": 1, "Position": 0, "Width": 10, "DefaultValue": 0}
74+
}
75+
},
76+
"imc" : {
77+
"programmable" : {
78+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
79+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
80+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
81+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0}
82+
}
83+
},
84+
"xpi" : {
85+
"__comment" : "this is for UPI LL and QPI LL uncore PMUs",
86+
"programmable" : {
87+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
88+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
89+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
90+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0},
91+
"UMaskExt": {"Config": 0, "Position": 32, "Width": 24}
92+
}
93+
},
94+
"m2m" : {
95+
"programmable" : {
96+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
97+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
98+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
99+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0},
100+
"UMaskExt": {"Config": 0, "Position": 32, "Width": 8}
101+
}
102+
},
103+
"m3upi" : {
104+
"programmable" : {
105+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
106+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
107+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
108+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0}
109+
}
110+
},
111+
"mdf" : {
112+
"programmable" : {
113+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
114+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
115+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
116+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0}
117+
}
118+
},
119+
"irp" : {
120+
"programmable" : {
121+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
122+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
123+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
124+
"Threshold": {"Config": 0, "Position": 24, "Width": 8, "DefaultValue": 0}
125+
}
126+
},
127+
"pcu" : {
128+
"programmable" : {
129+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
130+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
131+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0}
132+
}
133+
},
134+
"pciex8" : {
135+
"programmable" : {
136+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
137+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
138+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0}
139+
}
140+
},
141+
"pciex16" : {
142+
"programmable" : {
143+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
144+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
145+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0}
146+
}
147+
},
148+
"iio" : {
149+
"programmable" : {
150+
"EventCode": {"Config": 0, "Position": 0, "Width": 8},
151+
"UMask": {"Config": 0, "Position": 8, "Width": 8},
152+
"EdgeDetect": {"Config": 0, "Position": 18, "Width": 1, "DefaultValue": 0},
153+
"Threshold": {"Config": 0, "Position": 24, "Width": 12, "DefaultValue": 0},
154+
"PortMask": {"Config": 0, "Position": 36, "Width": 12},
155+
"FCMask": {"Config": 0, "Position": 48, "Width": 3}
156+
}
157+
}
158+
}

0 commit comments

Comments
 (0)