162306a36Sopenharmony_ciWhat:           /sys/bus/event_source/devices/hv_gpci/format
262306a36Sopenharmony_ciDate:           September 2020
362306a36Sopenharmony_ciContact:        Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
462306a36Sopenharmony_ciDescription:    Read-only. Attribute group to describe the magic bits
562306a36Sopenharmony_ci                that go into perf_event_attr.config for a particular pmu.
662306a36Sopenharmony_ci                (See ABI/testing/sysfs-bus-event_source-devices-format).
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci                Each attribute under this group defines a bit range of the
962306a36Sopenharmony_ci                perf_event_attr.config. All supported attributes are listed
1062306a36Sopenharmony_ci                below::
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci				counter_info_version  = "config:16-23"
1362306a36Sopenharmony_ci				length  = "config:24-31"
1462306a36Sopenharmony_ci				partition_id  = "config:32-63"
1562306a36Sopenharmony_ci				request = "config:0-31"
1662306a36Sopenharmony_ci				sibling_part_id = "config:32-63"
1762306a36Sopenharmony_ci				hw_chip_id = "config:32-63"
1862306a36Sopenharmony_ci				offset = "config:32-63"
1962306a36Sopenharmony_ci				phys_processor_idx = "config:32-63"
2062306a36Sopenharmony_ci				secondary_index = "config:0-15"
2162306a36Sopenharmony_ci				starting_index = "config:32-63"
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci                For example::
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci		  processor_core_utilization_instructions_completed = "request=0x94,
2662306a36Sopenharmony_ci					phys_processor_idx=?,counter_info_version=0x8,
2762306a36Sopenharmony_ci					length=8,offset=0x18"
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci		In this event, '?' after phys_processor_idx specifies this value
3062306a36Sopenharmony_ci		this value will be provided by user while running this event.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_gpci/interface/collect_privileged
3362306a36Sopenharmony_ciDate:		February 2014
3462306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
3562306a36Sopenharmony_ciDescription:
3662306a36Sopenharmony_ci		'0' if the hypervisor is configured to forbid access to event
3762306a36Sopenharmony_ci		counters being accumulated by other guests and to physical
3862306a36Sopenharmony_ci		domain event counters.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci		'1' if that access is allowed.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_gpci/interface/ga
4362306a36Sopenharmony_ciDate:		February 2014
4462306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
4562306a36Sopenharmony_ciDescription:
4662306a36Sopenharmony_ci		0 or 1. Indicates whether we have access to "GA" events (listed
4762306a36Sopenharmony_ci		in arch/powerpc/perf/hv-gpci.h).
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_gpci/interface/expanded
5062306a36Sopenharmony_ciDate:		February 2014
5162306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
5262306a36Sopenharmony_ciDescription:
5362306a36Sopenharmony_ci		0 or 1. Indicates whether we have access to "EXPANDED" events (listed
5462306a36Sopenharmony_ci		in arch/powerpc/perf/hv-gpci.h).
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_gpci/interface/lab
5762306a36Sopenharmony_ciDate:		February 2014
5862306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
5962306a36Sopenharmony_ciDescription:
6062306a36Sopenharmony_ci		0 or 1. Indicates whether we have access to "LAB" events (listed
6162306a36Sopenharmony_ci		in arch/powerpc/perf/hv-gpci.h).
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_gpci/interface/version
6462306a36Sopenharmony_ciDate:		February 2014
6562306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
6662306a36Sopenharmony_ciDescription:
6762306a36Sopenharmony_ci		A number indicating the version of the gpci interface that the
6862306a36Sopenharmony_ci		hypervisor reports supporting.
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_gpci/interface/kernel_version
7162306a36Sopenharmony_ciDate:		February 2014
7262306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
7362306a36Sopenharmony_ciDescription:
7462306a36Sopenharmony_ci		A number indicating the latest version of the gpci interface
7562306a36Sopenharmony_ci		that the kernel is aware of.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciWhat:		/sys/devices/hv_gpci/cpumask
7862306a36Sopenharmony_ciDate:		October 2020
7962306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
8062306a36Sopenharmony_ciDescription:	read only
8162306a36Sopenharmony_ci		This sysfs file exposes the cpumask which is designated to make
8262306a36Sopenharmony_ci		HCALLs to retrieve hv-gpci pmu event counter data.
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ciWhat:		/sys/devices/hv_gpci/interface/processor_bus_topology
8562306a36Sopenharmony_ciDate:		July 2023
8662306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
8762306a36Sopenharmony_ciDescription:	admin read only
8862306a36Sopenharmony_ci		This sysfs file exposes the system topology information by making HCALL
8962306a36Sopenharmony_ci		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
9062306a36Sopenharmony_ci		PROCESSOR_BUS_TOPOLOGY(0xD0).
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci		* This sysfs file will be created only for power10 and above platforms.
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ci		* User needs root privileges to read data from this sysfs file.
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
9762306a36Sopenharmony_ci		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ci		  HCALL with return error type "H_AUTHORITY" can be resolved during
10062306a36Sopenharmony_ci		  runtime by setting "Enable Performance Information Collection" option.
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ci		* The end user reading this sysfs file must decode the content as per
10362306a36Sopenharmony_ci		  underlying platform/firmware.
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci		Possible error codes while reading this sysfs file:
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ci		* "-EPERM" : Partition is not permitted to retrieve performance information,
10862306a36Sopenharmony_ci			    required to set "Enable Performance Information Collection" option.
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
11162306a36Sopenharmony_ci			   or because of some hardware error. Refer to getPerfCountInfo documentation for
11262306a36Sopenharmony_ci			   more information.
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ci		* "-EFBIG" : System information exceeds PAGE_SIZE.
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ciWhat:		/sys/devices/hv_gpci/interface/processor_config
11762306a36Sopenharmony_ciDate:		July 2023
11862306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
11962306a36Sopenharmony_ciDescription:	admin read only
12062306a36Sopenharmony_ci		This sysfs file exposes the system topology information by making HCALL
12162306a36Sopenharmony_ci		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
12262306a36Sopenharmony_ci		PROCESSOR_CONFIG(0x90).
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ci		* This sysfs file will be created only for power10 and above platforms.
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ci		* User needs root privileges to read data from this sysfs file.
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
12962306a36Sopenharmony_ci		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ci		  HCALL with return error type "H_AUTHORITY" can be resolved during
13262306a36Sopenharmony_ci		  runtime by setting "Enable Performance Information Collection" option.
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ci		* The end user reading this sysfs file must decode the content as per
13562306a36Sopenharmony_ci		  underlying platform/firmware.
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_ci		Possible error codes while reading this sysfs file:
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ci		* "-EPERM" : Partition is not permitted to retrieve performance information,
14062306a36Sopenharmony_ci			    required to set "Enable Performance Information Collection" option.
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ci		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
14362306a36Sopenharmony_ci			   or because of some hardware error. Refer to getPerfCountInfo documentation for
14462306a36Sopenharmony_ci			   more information.
14562306a36Sopenharmony_ci
14662306a36Sopenharmony_ci		* "-EFBIG" : System information exceeds PAGE_SIZE.
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ciWhat:		/sys/devices/hv_gpci/interface/affinity_domain_via_virtual_processor
14962306a36Sopenharmony_ciDate:		July 2023
15062306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
15162306a36Sopenharmony_ciDescription:	admin read only
15262306a36Sopenharmony_ci		This sysfs file exposes the system topology information by making HCALL
15362306a36Sopenharmony_ci		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
15462306a36Sopenharmony_ci		AFFINITY_DOMAIN_INFORMATION_BY_VIRTUAL_PROCESSOR(0xA0).
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_ci		* This sysfs file will be created only for power10 and above platforms.
15762306a36Sopenharmony_ci
15862306a36Sopenharmony_ci		* User needs root privileges to read data from this sysfs file.
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ci		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
16162306a36Sopenharmony_ci		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ci		  HCALL with return error type "H_AUTHORITY" can be resolved during
16462306a36Sopenharmony_ci		  runtime by setting "Enable Performance Information Collection" option.
16562306a36Sopenharmony_ci
16662306a36Sopenharmony_ci		* The end user reading this sysfs file must decode the content as per
16762306a36Sopenharmony_ci		  underlying platform/firmware.
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ci		Possible error codes while reading this sysfs file:
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ci		* "-EPERM" : Partition is not permitted to retrieve performance information,
17262306a36Sopenharmony_ci			    required to set "Enable Performance Information Collection" option.
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
17562306a36Sopenharmony_ci			   or because of some hardware error. Refer to getPerfCountInfo documentation for
17662306a36Sopenharmony_ci			   more information.
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ci		* "-EFBIG" : System information exceeds PAGE_SIZE.
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ciWhat:		/sys/devices/hv_gpci/interface/affinity_domain_via_domain
18162306a36Sopenharmony_ciDate:		July 2023
18262306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
18362306a36Sopenharmony_ciDescription:	admin read only
18462306a36Sopenharmony_ci		This sysfs file exposes the system topology information by making HCALL
18562306a36Sopenharmony_ci		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
18662306a36Sopenharmony_ci		AFFINITY_DOMAIN_INFORMATION_BY_DOMAIN(0xB0).
18762306a36Sopenharmony_ci
18862306a36Sopenharmony_ci		* This sysfs file will be created only for power10 and above platforms.
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ci		* User needs root privileges to read data from this sysfs file.
19162306a36Sopenharmony_ci
19262306a36Sopenharmony_ci		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
19362306a36Sopenharmony_ci		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
19462306a36Sopenharmony_ci
19562306a36Sopenharmony_ci		  HCALL with return error type "H_AUTHORITY" can be resolved during
19662306a36Sopenharmony_ci		  runtime by setting "Enable Performance Information Collection" option.
19762306a36Sopenharmony_ci
19862306a36Sopenharmony_ci		* The end user reading this sysfs file must decode the content as per
19962306a36Sopenharmony_ci		  underlying platform/firmware.
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ci		Possible error codes while reading this sysfs file:
20262306a36Sopenharmony_ci
20362306a36Sopenharmony_ci		* "-EPERM" : Partition is not permitted to retrieve performance information,
20462306a36Sopenharmony_ci			    required to set "Enable Performance Information Collection" option.
20562306a36Sopenharmony_ci
20662306a36Sopenharmony_ci		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
20762306a36Sopenharmony_ci			   or because of some hardware error. Refer to getPerfCountInfo documentation for
20862306a36Sopenharmony_ci			   more information.
20962306a36Sopenharmony_ci
21062306a36Sopenharmony_ci		* "-EFBIG" : System information exceeds PAGE_SIZE.
21162306a36Sopenharmony_ci
21262306a36Sopenharmony_ciWhat:		/sys/devices/hv_gpci/interface/affinity_domain_via_partition
21362306a36Sopenharmony_ciDate:		July 2023
21462306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
21562306a36Sopenharmony_ciDescription:	admin read only
21662306a36Sopenharmony_ci		This sysfs file exposes the system topology information by making HCALL
21762306a36Sopenharmony_ci		H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
21862306a36Sopenharmony_ci		AFFINITY_DOMAIN_INFORMATION_BY_PARTITION(0xB1).
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ci		* This sysfs file will be created only for power10 and above platforms.
22162306a36Sopenharmony_ci
22262306a36Sopenharmony_ci		* User needs root privileges to read data from this sysfs file.
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_ci		* This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
22562306a36Sopenharmony_ci		  "H_AUTHORITY" or "H_PARAMETER" as the return type.
22662306a36Sopenharmony_ci
22762306a36Sopenharmony_ci		  HCALL with return error type "H_AUTHORITY" can be resolved during
22862306a36Sopenharmony_ci		  runtime by setting "Enable Performance Information Collection" option.
22962306a36Sopenharmony_ci
23062306a36Sopenharmony_ci		* The end user reading this sysfs file must decode the content as per
23162306a36Sopenharmony_ci		  underlying platform/firmware.
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ci		Possible error codes while reading this sysfs file:
23462306a36Sopenharmony_ci
23562306a36Sopenharmony_ci		* "-EPERM" : Partition is not permitted to retrieve performance information,
23662306a36Sopenharmony_ci			    required to set "Enable Performance Information Collection" option.
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ci		* "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
23962306a36Sopenharmony_ci			   or because of some hardware error. Refer to getPerfCountInfo documentation for
24062306a36Sopenharmony_ci			   more information.
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ci		* "-EFBIG" : System information exceeds PAGE_SIZE.
243