Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35108652rwd; Mon, 10 Jul 2023 02:41:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFPwwfi/TcIgg2DsE9pHY8QyselXnZrkRQSc19scRBKlT9ldqzFBQw/smXfz+f9rAkXtRRM X-Received: by 2002:a05:6a20:88:b0:12f:7a6a:7f96 with SMTP id 8-20020a056a20008800b0012f7a6a7f96mr8190079pzg.17.1688982081072; Mon, 10 Jul 2023 02:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688982081; cv=none; d=google.com; s=arc-20160816; b=j9BSPyFH0lRFc9hHQHIzpsw32Yz9cfkaQKLqOp+dIwM9C0wI8IJIr1m74dKpTkrF7I /tn9DqVVMxn/jjjQfmDBmRPupmXj1xpW2Z2bxUuJhYHI4ZrUJ1Y+AEBRZ7xekyS2L8I9 i7F3GI3oAF1LLGUqibCDz2VQKpNM8wzt5Lwj/RAdWwZuSxNwjb2+/9PW9T5wejUjLxxp R27mpfcjShSSGrgEyJ5agL9ga4ZFln0P3ba9iXoFE1xAVzj39frGBaxvEWKOcEJw2za7 5AWS1MSx1tLsHVo9cn5RAX2smSUWo7iEKra4hZuA2c3Sn4nD4+jfPTdgD/aHf3bGoZs8 OMIw== 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=i5x9hN7ANbiNLDt7+OOrTkB2vSMbC0zBUseJtYa7g4Y=; fh=htOV7vhoKJkntQiYYINUtvxytrK3usaYfMzVQ/OtDx8=; b=tBVJwUWr+LR26gA1CEXo68v+X/SGR9mQBk0U7I1ldj/kKGS+71fOuutDmQMbh5c8M3 Kcvinzv2Fe9khkfKuDuZT1kDoCB54kUmajy0mSkr+J7A8hbyYcLl8ZwHw4DKpJlQs2/L kg0XStiDv4CRemNbBdACWuFnlvvvrq8XpBnryr3eNtiA/GTP+h3qxjw8OdgdpW7jDMaS Lw7WPmQwwU6JGJjqeoiK/PPeLfw2a0gsCTrYbSKMTkxT/1+ZMDCUIQ8Ne0xzayOJkSje Zu0imxkrBcU7Q2SYQ3Ct/yODFZi74FuwM23Rzm9xANH4Fcgg3GEjyfVfrTPmiVcTL7/l v8UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=osQyxuiy; 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 o11-20020a170902778b00b001b89b802e2dsi8346057pll.26.2023.07.10.02.41.09; Mon, 10 Jul 2023 02:41:21 -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=osQyxuiy; 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 S230215AbjGJJ2r (ORCPT + 99 others); Mon, 10 Jul 2023 05:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjGJJ2N (ORCPT ); Mon, 10 Jul 2023 05:28:13 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8069B; Mon, 10 Jul 2023 02:28:12 -0700 (PDT) Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36A9Ge90022472; Mon, 10 Jul 2023 09:28:06 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=i5x9hN7ANbiNLDt7+OOrTkB2vSMbC0zBUseJtYa7g4Y=; b=osQyxuiyykVZ8Bajv8fgu3Fl8GIGma1Hf1GvVQJV6sqIUOiwmUKm6b1I7rdEdGcaJJZt FCCJOEB5Jt4pajHDd9mAL1mRnA2FptPsRU13Dv0lWQ7040DZ2D9A4Wp+gluDFhYS4T7d W/09mK++zjfCiy331PO1+Tqj9JgERgTMFw+YyBAz47PU5ZNWlOj8ZHyrkDlL/118gE79 txk1Ru9k4lt7Q7PCMlHa5aJ7tncfC4LvOD8NnQtv4D+XhO8r5mPnqkBYU1c1go8UFi2J NPrFJb0y3UsY9M4S87mTAXdOCbADsCuRMoi3NAd90sQ3wIPI31cGCOz7+UUtB0vE+Xus gQ== Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rrf7dg7vx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 09:28:06 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36A6Imod008473; Mon, 10 Jul 2023 09:28:04 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3rpye5gux1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 09:28:04 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36A9S0dP21824188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 09:28:01 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C920E20040; Mon, 10 Jul 2023 09:28:00 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B0C0D2004B; Mon, 10 Jul 2023 09:27:58 +0000 (GMT) Received: from li-e8dccbcc-2adc-11b2-a85c-bc1f33b9b810.ibm.com.com (unknown [9.43.85.154]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 10 Jul 2023 09:27:58 +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 Subject: [PATCH v2 10/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_partition sysfs interface file Date: Mon, 10 Jul 2023 14:57:17 +0530 Message-Id: <20230710092717.55317-11-kjain@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230710092717.55317-1-kjain@linux.ibm.com> References: <20230710092717.55317-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: -gS1h5aMeMCCl7aJaaobzrPNW8_yadzj X-Proofpoint-ORIG-GUID: -gS1h5aMeMCCl7aJaaobzrPNW8_yadzj 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-10_07,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 phishscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307100082 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 d8e65b93d1f7..b03b2bd4b081 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_SUCESS", + "H_AUTHORITY" and "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 getPerfCountInfo documentation for + more information. + + * "-EFBIG" : System information exceeds PAGE_SIZE. -- 2.31.1