Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2166801rwb; Sat, 29 Jul 2023 00:57:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlF2M/ZZdzDvJvqHpOhyhSNiokkPDxFr0dfcwtSEiCzKePsBHcQyZ3GKcz5gBmXoCF6P1HQ6 X-Received: by 2002:a17:90a:fa05:b0:268:21c3:4fd8 with SMTP id cm5-20020a17090afa0500b0026821c34fd8mr5102741pjb.20.1690617454010; Sat, 29 Jul 2023 00:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690617453; cv=none; d=google.com; s=arc-20160816; b=BibCYNpXMYGCTW73j8rjboWXtV4CVgiFr90qvGVJuYcO4NyBevk81DvW4SrzFh4DLL 2VEp+zJAh6SmFD+OpQw+2RNd6Thp2JDSvHIV1hHIdpbDCMz+TkelTjtQ+JvKJhnjth/1 UaHAbqTW/l7DB0JZ3zca6wceQbYzYaAa8x4ouvuFzggRz/ng9va3NEVY5mjLs3AVTmpx VqjXrGU4OI1FkpyK6ejh/8DlYuKEYeg9R0wt48MSBPhXZ0y90o90WrzdySL90CYSWlwN Z+dtuncqbcr0+ii3kg3cnzP261ZYSyBlgJ9nIFvT5erDiHVcwSllW7/1VfUWDTaBHtth RTow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H81kA9Dz4ecJqR8OPoKtqlKnSdss/12WwxTPHU5xrPo=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=wf9ItfJxASNubf9DskS5EW4mfyWLqadxLm/r+BMLG6eITcEY/9ZngLjMr6oPqF0SM7 GfcWTHgwzi/jJ1S5hGTbPixe6yj8qlrNbIXe2Are14xDhqgVxVcVpUFAAod407EhJ+Ec OrJl3DcuJ5NdnsHQhurTC5mgK2e4Z/66x6Ps4nyGb8EBRlo0+ZL9mjNiF9pgKMzxX3i5 BpBXis5bu3NPqLHLc5GFFCVByD4e5G64ZYcR2b8jJJB6g47OhL+g7zxKf1Pzq9UDc1DJ HkPfG6RtOA1H6y9s57c8UzplP4fF0KR/RjN8qYThxA7LpovvJ3cA9+wsrMHQIc9FIk17 6V/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GZlH6qse; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a17090a764b00b00267deffa3bdsi4392171pjl.121.2023.07.29.00.57.22; Sat, 29 Jul 2023 00:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GZlH6qse; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbjG2Hfz (ORCPT + 99 others); Sat, 29 Jul 2023 03:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjG2Hfy (ORCPT ); Sat, 29 Jul 2023 03:35:54 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2532449DF; Sat, 29 Jul 2023 00:35:48 -0700 (PDT) Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36T7VeOm002961; Sat, 29 Jul 2023 07:35:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=H81kA9Dz4ecJqR8OPoKtqlKnSdss/12WwxTPHU5xrPo=; b=GZlH6qsekyYwRLOmKseVN5cFfKV7G5VM+cX8bTlWM4B1Uvx6eKgXOJ/p7sZ1eHq3Nhjv QMort92kqste7khD++zH2bbOpR7Af/IHzvMGLNh9nCxY0PUx2z9D5Gl1lM8+jpNI2Tki T0seEw4UovWJmVTjsYj3opsf3iS+ZgOUHPeSvHU7bymE9LmR+UkBU6livBNwrth4L0SA wsPae63xyruG5UN5iqCkAXXj1vFFz6oG+30zyhIqye7GMD2Bp8r9J0hAsdv4JZt31oPA 7eqjDKafd554WM3zir3S6UrUDeWFkZ70YT70kvEgWKGXEbcdEAVIbqrk+aGCoLukSp5+ Mw== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s4xf085tm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 07:35:40 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36T77Zit002059; Sat, 29 Jul 2023 07:35:39 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3s0tenvrcq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 07:35:38 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36T7ZZu435259012 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 29 Jul 2023 07:35:35 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AE50720043; Sat, 29 Jul 2023 07:35:35 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 563F720040; Sat, 29 Jul 2023 07:35:33 +0000 (GMT) Received: from li-e8dccbcc-2adc-11b2-a85c-bc1f33b9b810.ibm.com.com (unknown [9.171.60.192]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Sat, 29 Jul 2023 07:35:33 +0000 (GMT) From: Kajol Jain To: mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com, atrajeev@linux.vnet.ibm.com, disgoel@linux.ibm.com, kjain@linux.ibm.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, rdunlap@infradead.org Subject: [PATCH v4 08/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_domain sysfs interface file Date: Sat, 29 Jul 2023 13:04:53 +0530 Message-Id: <20230729073455.7918-9-kjain@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230729073455.7918-1-kjain@linux.ibm.com> References: <20230729073455.7918-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: oYC8XAidcKMt_1mqTMjNboRnJLYXoFeV X-Proofpoint-GUID: oYC8XAidcKMt_1mqTMjNboRnJLYXoFeV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-27_10,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 spamscore=0 impostorscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 phishscore=0 clxscore=1015 adultscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307290068 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add details of the new hv-gpci interface file called "affinity_domain_via_domain" in the ABI documentation. Reviewed-by: Athira Rajeev Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci index 5ee33218be83..399f0a2bd546 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci @@ -176,3 +176,35 @@ Description: admin read only more information. * "-EFBIG" : System information exceeds PAGE_SIZE. + +What: /sys/devices/hv_gpci/interface/affinity_domain_via_domain +Date: July 2023 +Contact: Linux on PowerPC Developer List +Description: admin read only + This sysfs file exposes the system topology information by making HCALL + H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value + AFFINITY_DOMAIN_INFORMATION_BY_DOMAIN(0xB0). + + * This sysfs file will be created only for power10 and above platforms. + + * User needs root privileges to read data from this sysfs file. + + * This sysfs file will be created, only when the HCALL returns "H_SUCCESS", + "H_AUTHORITY" or "H_PARAMETER" as the return type. + + HCALL with return error type "H_AUTHORITY" can be resolved during + runtime by setting "Enable Performance Information Collection" option. + + * The end user reading this sysfs file must decode the content as per + underlying platform/firmware. + + Possible error codes while reading this sysfs file: + + * "-EPERM" : Partition is not permitted to retrieve performance information, + required to set "Enable Performance Information Collection" option. + + * "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address + or because of some hardware error. Refer to getPerfCountInfo documentation for + more information. + + * "-EFBIG" : System information exceeds PAGE_SIZE. -- 2.39.3