Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7788399rwp; Tue, 18 Jul 2023 23:37:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGeAc0NbwW+1JV1qnFKI1zwTsSc+nVrq3pSGK7rHX2faU25tA0hdpEj1JWEyBiJIADoJPIJ X-Received: by 2002:a17:906:56:b0:997:6729:5f4b with SMTP id 22-20020a170906005600b0099767295f4bmr1385663ejg.11.1689748645257; Tue, 18 Jul 2023 23:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689748645; cv=none; d=google.com; s=arc-20160816; b=zG1+hdXY5uQrm39VqcTXpKmzV4PkH3rDhHOKamaKQ+EaGOAdHM2Cagax23NysacTpB 7JNjVV6FYzd1Kuhi83y9d6kav9YO1H2KkY9GQFDulgijFvkXhtn3H/SY4MZxWhQB45AV Y+RapI96WQSZLrWDGeMvgP4F1wjFt/vJ8Y2W7r1pWhvL0CBNwCIFgucNVlw37NAlyQZQ VLSe2vXMeoavbWZHL/xaU3JaZB7ftW0t2WOQfu8tq6PdYkOhKwqx0B7JVq0/V4rMyiwK FNDg4FiNjEvivRTo9CsA1z23v+aR9FIn1ibH/8yd/Gn5BSAO0W2tUwAdOhYMyuuoRrSa Weew== 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=hpJEIKUs0KwKHq+cTyTN6+R6+MBErC1FDyBfgZfJfco=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=g+ezZRZBUnUUFS0FJH2Qi/16uJcGAlGVMIVVbIA6fuT2524IZYQQUNlF9EmcUHzY5B pNJP4Tli9rW4UYybwn2vdihKxB4FIGzo/PVgKarDX2QEd/FjknkN5rsqMpC5s7F3oVNP TNK1CbDPhlBcpuepZcdb6UlyVtjW6MqekLq8nJQorThvWly6Y6gCFcMYIbpGSDSJFlqf OAQyfCa57pn0LUl8w+hRIn5zfXq37eJ+Pu/Q9Ov3lHoNDDkJfrCV9O4ETjG2qcqNlRcb ULXUP2tNA5+roMiXpWwBflhbiEpzBH1x8ih4QYqe9p2xwV5Yk7l4hExmOwTNR16/1cWl 6Ukw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=S9dZwXhr; 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 lc17-20020a170906dff100b00992d2a0cd97si2500505ejc.932.2023.07.18.23.37.00; Tue, 18 Jul 2023 23:37:25 -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=S9dZwXhr; 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 S230500AbjGSGPE (ORCPT + 99 others); Wed, 19 Jul 2023 02:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjGSGOx (ORCPT ); Wed, 19 Jul 2023 02:14:53 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2FA32128; Tue, 18 Jul 2023 23:14:32 -0700 (PDT) Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36J5M0cV019225; Wed, 19 Jul 2023 06:14:25 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=hpJEIKUs0KwKHq+cTyTN6+R6+MBErC1FDyBfgZfJfco=; b=S9dZwXhrvrnsvoSHnnZRdgWDMd9S/aeJox0ZktvtDuIO3huDOlAgV3Z6e9AcNhiDtXpH 7t6Zhuy7zOZMovCG4ZP3Ke2b0XmLtk9jO4uaQV+sekGNfaWVQToR/PAs1+tP1bEksi8Y oS+Y0kKsozsO+I06dX9AQGU/lGsO+Kt8TSr2V0ki3OpKZnhqz0sy7gXIsmSVh1xa7pJH gm10Zbo3ZEWwELvd5uI9oLLPupc8NllY83LhS7lJmkG2fFrT5Eyg2OofQZ1gmmzMRlJW kCTvRyzfb2PSoVpS8402OEPX9zwADMsRa4gMk/WXOhLBs54CVzxptaBOAKE8f1MPQFmQ +g== 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 3rx9mcs7y3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:14:25 +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 36J4H5Tm029352; Wed, 19 Jul 2023 06:14:23 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv6smg9j4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:14:23 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36J6EKlN7406256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jul 2023 06:14:20 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6D8C92004B; Wed, 19 Jul 2023 06:14:20 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9181C20040; Wed, 19 Jul 2023 06:14:10 +0000 (GMT) Received: from li-e8dccbcc-2adc-11b2-a85c-bc1f33b9b810.ibm.com.com (unknown [9.43.119.126]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 19 Jul 2023 06:14:09 +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 v3 10/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_partition sysfs interface file Date: Wed, 19 Jul 2023 11:42:31 +0530 Message-Id: <20230719061231.631410-11-kjain@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230719061231.631410-1-kjain@linux.ibm.com> References: <20230719061231.631410-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: nep_aizEKrpMi4x3RlfDYrOqv8ABm25j X-Proofpoint-ORIG-GUID: nep_aizEKrpMi4x3RlfDYrOqv8ABm25j 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-19_02,2023-07-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 adultscore=0 mlxscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307190056 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,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_partition" in the ABI documentation. 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 399f0a2bd546..40f7cd240591 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci @@ -208,3 +208,35 @@ Description: admin read only more information. * "-EFBIG" : System information exceeds PAGE_SIZE. + +What: /sys/devices/hv_gpci/interface/affinity_domain_via_partition +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_PARTITION(0xB1). + + * 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