xref: /linux/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1435387ddSKajol JainWhat:           /sys/bus/event_source/devices/hv_gpci/format
2435387ddSKajol JainDate:           September 2020
3435387ddSKajol JainContact:        Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
4435387ddSKajol JainDescription:    Read-only. Attribute group to describe the magic bits
5435387ddSKajol Jain                that go into perf_event_attr.config for a particular pmu.
6435387ddSKajol Jain                (See ABI/testing/sysfs-bus-event_source-devices-format).
7435387ddSKajol Jain
8435387ddSKajol Jain                Each attribute under this group defines a bit range of the
9435387ddSKajol Jain                perf_event_attr.config. All supported attributes are listed
1054a19b4dSMauro Carvalho Chehab                below::
11435387ddSKajol Jain
12435387ddSKajol Jain				counter_info_version  = "config:16-23"
13435387ddSKajol Jain				length  = "config:24-31"
14435387ddSKajol Jain				partition_id  = "config:32-63"
15435387ddSKajol Jain				request = "config:0-31"
16435387ddSKajol Jain				sibling_part_id = "config:32-63"
17435387ddSKajol Jain				hw_chip_id = "config:32-63"
18435387ddSKajol Jain				offset = "config:32-63"
19435387ddSKajol Jain				phys_processor_idx = "config:32-63"
20435387ddSKajol Jain				secondary_index = "config:0-15"
21435387ddSKajol Jain				starting_index = "config:32-63"
22435387ddSKajol Jain
2354a19b4dSMauro Carvalho Chehab                For example::
24435387ddSKajol Jain
25435387ddSKajol Jain		  processor_core_utilization_instructions_completed = "request=0x94,
26435387ddSKajol Jain					phys_processor_idx=?,counter_info_version=0x8,
27435387ddSKajol Jain					length=8,offset=0x18"
28435387ddSKajol Jain
29435387ddSKajol Jain		In this event, '?' after phys_processor_idx specifies this value
30435387ddSKajol Jain		this value will be provided by user while running this event.
31435387ddSKajol Jain
32ad0a02b8SCody P SchaferWhat:		/sys/bus/event_source/devices/hv_gpci/interface/collect_privileged
33ad0a02b8SCody P SchaferDate:		February 2014
34dfdac393Ssukadev@linux.vnet.ibm.comContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
35ad0a02b8SCody P SchaferDescription:
36ad0a02b8SCody P Schafer		'0' if the hypervisor is configured to forbid access to event
37ad0a02b8SCody P Schafer		counters being accumulated by other guests and to physical
38ad0a02b8SCody P Schafer		domain event counters.
3954a19b4dSMauro Carvalho Chehab
40ad0a02b8SCody P Schafer		'1' if that access is allowed.
41ad0a02b8SCody P Schafer
42ad0a02b8SCody P SchaferWhat:		/sys/bus/event_source/devices/hv_gpci/interface/ga
43ad0a02b8SCody P SchaferDate:		February 2014
44dfdac393Ssukadev@linux.vnet.ibm.comContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
45ad0a02b8SCody P SchaferDescription:
46ad0a02b8SCody P Schafer		0 or 1. Indicates whether we have access to "GA" events (listed
47ad0a02b8SCody P Schafer		in arch/powerpc/perf/hv-gpci.h).
48ad0a02b8SCody P Schafer
49ad0a02b8SCody P SchaferWhat:		/sys/bus/event_source/devices/hv_gpci/interface/expanded
50ad0a02b8SCody P SchaferDate:		February 2014
51dfdac393Ssukadev@linux.vnet.ibm.comContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
52ad0a02b8SCody P SchaferDescription:
53ad0a02b8SCody P Schafer		0 or 1. Indicates whether we have access to "EXPANDED" events (listed
54ad0a02b8SCody P Schafer		in arch/powerpc/perf/hv-gpci.h).
55ad0a02b8SCody P Schafer
56ad0a02b8SCody P SchaferWhat:		/sys/bus/event_source/devices/hv_gpci/interface/lab
57ad0a02b8SCody P SchaferDate:		February 2014
58dfdac393Ssukadev@linux.vnet.ibm.comContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
59ad0a02b8SCody P SchaferDescription:
60ad0a02b8SCody P Schafer		0 or 1. Indicates whether we have access to "LAB" events (listed
61ad0a02b8SCody P Schafer		in arch/powerpc/perf/hv-gpci.h).
62ad0a02b8SCody P Schafer
63ad0a02b8SCody P SchaferWhat:		/sys/bus/event_source/devices/hv_gpci/interface/version
64ad0a02b8SCody P SchaferDate:		February 2014
65dfdac393Ssukadev@linux.vnet.ibm.comContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
66ad0a02b8SCody P SchaferDescription:
67ad0a02b8SCody P Schafer		A number indicating the version of the gpci interface that the
68ad0a02b8SCody P Schafer		hypervisor reports supporting.
69ad0a02b8SCody P Schafer
70ad0a02b8SCody P SchaferWhat:		/sys/bus/event_source/devices/hv_gpci/interface/kernel_version
71ad0a02b8SCody P SchaferDate:		February 2014
72dfdac393Ssukadev@linux.vnet.ibm.comContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
73ad0a02b8SCody P SchaferDescription:
74ad0a02b8SCody P Schafer		A number indicating the latest version of the gpci interface
75ad0a02b8SCody P Schafer		that the kernel is aware of.
7609b791d9SKajol Jain
7709b791d9SKajol JainWhat:		/sys/devices/hv_gpci/cpumask
7809b791d9SKajol JainDate:		October 2020
7909b791d9SKajol JainContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
8009b791d9SKajol JainDescription:	read only
8109b791d9SKajol Jain		This sysfs file exposes the cpumask which is designated to make
8209b791d9SKajol Jain		HCALLs to retrieve hv-gpci pmu event counter data.
839caf9e2bSKajol Jain
849caf9e2bSKajol JainWhat:		/sys/devices/hv_gpci/interface/processor_bus_topology
859caf9e2bSKajol JainDate:		July 2023
869caf9e2bSKajol JainContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
879caf9e2bSKajol JainDescription:	admin read only
889caf9e2bSKajol Jain		This sysfs file exposes the system topology information by making HCALL
899caf9e2bSKajol Jain		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
909caf9e2bSKajol Jain		PROCESSOR_BUS_TOPOLOGY(0xD0).
919caf9e2bSKajol Jain
929caf9e2bSKajol Jain		* This sysfs file will be created only for power10 and above platforms.
939caf9e2bSKajol Jain
949caf9e2bSKajol Jain		* User needs root privileges to read data from this sysfs file.
959caf9e2bSKajol Jain
969caf9e2bSKajol Jain		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
979caf9e2bSKajol Jain		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
989caf9e2bSKajol Jain
999caf9e2bSKajol Jain		  HCALL with return error type "H_AUTHORITY" can be resolved during
1009caf9e2bSKajol Jain		  runtime by setting "Enable Performance Information Collection" option.
1019caf9e2bSKajol Jain
1029caf9e2bSKajol Jain		* The end user reading this sysfs file must decode the content as per
1039caf9e2bSKajol Jain		  underlying platform/firmware.
1049caf9e2bSKajol Jain
1059caf9e2bSKajol Jain		Possible error codes while reading this sysfs file:
1069caf9e2bSKajol Jain
1079caf9e2bSKajol Jain		* "-EPERM" : Partition is not permitted to retrieve performance information,
1089caf9e2bSKajol Jain			    required to set "Enable Performance Information Collection" option.
1099caf9e2bSKajol Jain
1109caf9e2bSKajol Jain		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
1119caf9e2bSKajol Jain			   or because of some hardware error. Refer to getPerfCountInfo documentation for
1129caf9e2bSKajol Jain			   more information.
1139caf9e2bSKajol Jain
1149caf9e2bSKajol Jain		* "-EFBIG" : System information exceeds PAGE_SIZE.
1153255171dSKajol Jain
1163255171dSKajol JainWhat:		/sys/devices/hv_gpci/interface/processor_config
1173255171dSKajol JainDate:		July 2023
1183255171dSKajol JainContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
1193255171dSKajol JainDescription:	admin read only
1203255171dSKajol Jain		This sysfs file exposes the system topology information by making HCALL
1213255171dSKajol Jain		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
1223255171dSKajol Jain		PROCESSOR_CONFIG(0x90).
1233255171dSKajol Jain
1243255171dSKajol Jain		* This sysfs file will be created only for power10 and above platforms.
1253255171dSKajol Jain
1263255171dSKajol Jain		* User needs root privileges to read data from this sysfs file.
1273255171dSKajol Jain
1283255171dSKajol Jain		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
1293255171dSKajol Jain		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
1303255171dSKajol Jain
1313255171dSKajol Jain		  HCALL with return error type "H_AUTHORITY" can be resolved during
1323255171dSKajol Jain		  runtime by setting "Enable Performance Information Collection" option.
1333255171dSKajol Jain
1343255171dSKajol Jain		* The end user reading this sysfs file must decode the content as per
1353255171dSKajol Jain		  underlying platform/firmware.
1363255171dSKajol Jain
1373255171dSKajol Jain		Possible error codes while reading this sysfs file:
1383255171dSKajol Jain
1393255171dSKajol Jain		* "-EPERM" : Partition is not permitted to retrieve performance information,
1403255171dSKajol Jain			    required to set "Enable Performance Information Collection" option.
1413255171dSKajol Jain
1423255171dSKajol Jain		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
1433255171dSKajol Jain			   or because of some hardware error. Refer to getPerfCountInfo documentation for
1443255171dSKajol Jain			   more information.
1453255171dSKajol Jain
1463255171dSKajol Jain		* "-EFBIG" : System information exceeds PAGE_SIZE.
147cc89ff34SKajol Jain
148cc89ff34SKajol JainWhat:		/sys/devices/hv_gpci/interface/affinity_domain_via_virtual_processor
149cc89ff34SKajol JainDate:		July 2023
150cc89ff34SKajol JainContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
151cc89ff34SKajol JainDescription:	admin read only
152cc89ff34SKajol Jain		This sysfs file exposes the system topology information by making HCALL
153cc89ff34SKajol Jain		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
154cc89ff34SKajol Jain		AFFINITY_DOMAIN_INFORMATION_BY_VIRTUAL_PROCESSOR(0xA0).
155cc89ff34SKajol Jain
156cc89ff34SKajol Jain		* This sysfs file will be created only for power10 and above platforms.
157cc89ff34SKajol Jain
158cc89ff34SKajol Jain		* User needs root privileges to read data from this sysfs file.
159cc89ff34SKajol Jain
160cc89ff34SKajol Jain		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
161cc89ff34SKajol Jain		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
162cc89ff34SKajol Jain
163cc89ff34SKajol Jain		  HCALL with return error type "H_AUTHORITY" can be resolved during
164cc89ff34SKajol Jain		  runtime by setting "Enable Performance Information Collection" option.
165cc89ff34SKajol Jain
166cc89ff34SKajol Jain		* The end user reading this sysfs file must decode the content as per
167cc89ff34SKajol Jain		  underlying platform/firmware.
168cc89ff34SKajol Jain
169cc89ff34SKajol Jain		Possible error codes while reading this sysfs file:
170cc89ff34SKajol Jain
171cc89ff34SKajol Jain		* "-EPERM" : Partition is not permitted to retrieve performance information,
172cc89ff34SKajol Jain			    required to set "Enable Performance Information Collection" option.
173cc89ff34SKajol Jain
174cc89ff34SKajol Jain		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
175cc89ff34SKajol Jain			   or because of some hardware error. Refer to getPerfCountInfo documentation for
176cc89ff34SKajol Jain			   more information.
177cc89ff34SKajol Jain
178cc89ff34SKajol Jain		* "-EFBIG" : System information exceeds PAGE_SIZE.
179ab7e9912SKajol Jain
180ab7e9912SKajol JainWhat:		/sys/devices/hv_gpci/interface/affinity_domain_via_domain
181ab7e9912SKajol JainDate:		July 2023
182ab7e9912SKajol JainContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
183ab7e9912SKajol JainDescription:	admin read only
184ab7e9912SKajol Jain		This sysfs file exposes the system topology information by making HCALL
185ab7e9912SKajol Jain		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
186ab7e9912SKajol Jain		AFFINITY_DOMAIN_INFORMATION_BY_DOMAIN(0xB0).
187ab7e9912SKajol Jain
188ab7e9912SKajol Jain		* This sysfs file will be created only for power10 and above platforms.
189ab7e9912SKajol Jain
190ab7e9912SKajol Jain		* User needs root privileges to read data from this sysfs file.
191ab7e9912SKajol Jain
192ab7e9912SKajol Jain		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
193ab7e9912SKajol Jain		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
194ab7e9912SKajol Jain
195ab7e9912SKajol Jain		  HCALL with return error type "H_AUTHORITY" can be resolved during
196ab7e9912SKajol Jain		  runtime by setting "Enable Performance Information Collection" option.
197ab7e9912SKajol Jain
198ab7e9912SKajol Jain		* The end user reading this sysfs file must decode the content as per
199ab7e9912SKajol Jain		  underlying platform/firmware.
200ab7e9912SKajol Jain
201ab7e9912SKajol Jain		Possible error codes while reading this sysfs file:
202ab7e9912SKajol Jain
203ab7e9912SKajol Jain		* "-EPERM" : Partition is not permitted to retrieve performance information,
204ab7e9912SKajol Jain			    required to set "Enable Performance Information Collection" option.
205ab7e9912SKajol Jain
206ab7e9912SKajol Jain		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
207ab7e9912SKajol Jain			   or because of some hardware error. Refer to getPerfCountInfo documentation for
208ab7e9912SKajol Jain			   more information.
209ab7e9912SKajol Jain
210ab7e9912SKajol Jain		* "-EFBIG" : System information exceeds PAGE_SIZE.
211*8df99066SKajol Jain
212*8df99066SKajol JainWhat:		/sys/devices/hv_gpci/interface/affinity_domain_via_partition
213*8df99066SKajol JainDate:		July 2023
214*8df99066SKajol JainContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
215*8df99066SKajol JainDescription:	admin read only
216*8df99066SKajol Jain		This sysfs file exposes the system topology information by making HCALL
217*8df99066SKajol Jain		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
218*8df99066SKajol Jain		AFFINITY_DOMAIN_INFORMATION_BY_PARTITION(0xB1).
219*8df99066SKajol Jain
220*8df99066SKajol Jain		* This sysfs file will be created only for power10 and above platforms.
221*8df99066SKajol Jain
222*8df99066SKajol Jain		* User needs root privileges to read data from this sysfs file.
223*8df99066SKajol Jain
224*8df99066SKajol Jain		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
225*8df99066SKajol Jain		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
226*8df99066SKajol Jain
227*8df99066SKajol Jain		  HCALL with return error type "H_AUTHORITY" can be resolved during
228*8df99066SKajol Jain		  runtime by setting "Enable Performance Information Collection" option.
229*8df99066SKajol Jain
230*8df99066SKajol Jain		* The end user reading this sysfs file must decode the content as per
231*8df99066SKajol Jain		  underlying platform/firmware.
232*8df99066SKajol Jain
233*8df99066SKajol Jain		Possible error codes while reading this sysfs file:
234*8df99066SKajol Jain
235*8df99066SKajol Jain		* "-EPERM" : Partition is not permitted to retrieve performance information,
236*8df99066SKajol Jain			    required to set "Enable Performance Information Collection" option.
237*8df99066SKajol Jain
238*8df99066SKajol Jain		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
239*8df99066SKajol Jain			   or because of some hardware error. Refer to getPerfCountInfo documentation for
240*8df99066SKajol Jain			   more information.
241*8df99066SKajol Jain
242*8df99066SKajol Jain		* "-EFBIG" : System information exceeds PAGE_SIZE.
243