Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35107650rwd; Mon, 10 Jul 2023 02:40:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFi1tpW9mXPPKUILW7FagvEPURlWJqpqwIiEHt5+Oy+lpJwFkQCmVYlqk4+YLt1JUNqzDlM X-Received: by 2002:a05:6a20:8e14:b0:11d:1b15:4d28 with SMTP id y20-20020a056a208e1400b0011d1b154d28mr18590771pzj.4.1688982016378; Mon, 10 Jul 2023 02:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688982016; cv=none; d=google.com; s=arc-20160816; b=fbtGI0riJxnjnS9uFz39oIGzOfmG4PWoy1iuYwyjdhFLCIMcK34nhr3PEg5X3AGZd1 12pUGOFceGcKyGr5+kWEZwtLH669RooYLRc7cg3yw/3uPHwLymSLhmICPs9J5foOSqy1 QURiKOWciwA1jO+edCHNBrvz8oW/Cru4C5hw7jy4QrPdDftP+82mlTJMKu4LH8CsiIH1 Z+rLfDz/+ZlhG4uOit93VJKuFamzhoCorsHx1E+6R4HzCumMnZUIlGRKIl09xikazXW1 dE0zhZd/kqMtMN0fIiFbOQceQzHctbBTrqpuq1EW+LJnCWc7zj5U48Lz0Zse7m5jXmbF skpA== 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=zRwhLMTg4MgUwr0D8lza5+hx3qjVUUmnfzQyHLsRaoQ=; fh=htOV7vhoKJkntQiYYINUtvxytrK3usaYfMzVQ/OtDx8=; b=R72Vb2sg1YO9jmAt3MhhcpnX/7Ic8WOizfDguU/YZ5ce4x/ZKnW2RDoQgcW3l2J0oR kAK6k5gOdqGq4VInhnOBYH06Sukiwo1J7nLH27b+NoG1v/8h5BaIUMU4uxDjcEhjo0PA AhQ0FApKB2nXIfet4o/pr4XnAMXUeM9ehgySpoF/KULbA/rmKAv/wpwTHJlJHYeoQSy3 p9f6AVfhUaHOJZTnrpfhBzukMdZG5i09C8xhe94Z/F4OrhvhaXkGMchJUmTJQ//265E+ 0c8Xs54z8tFTDMHeGnRPbZcXKuiU99xgBAJAt4RfjP+a0kK5A5UnGSFMaX7AtGLmSutd yljg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=WBQohRVO; 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 o26-20020a634e5a000000b0055b1327cd9asi4269365pgl.175.2023.07.10.02.40.04; Mon, 10 Jul 2023 02:40:16 -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=WBQohRVO; 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 S231827AbjGJJ2Y (ORCPT + 99 others); Mon, 10 Jul 2023 05:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232146AbjGJJ1x (ORCPT ); Mon, 10 Jul 2023 05:27:53 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AF98128; Mon, 10 Jul 2023 02:27:52 -0700 (PDT) Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36A9HsSS017908; Mon, 10 Jul 2023 09:27:47 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=zRwhLMTg4MgUwr0D8lza5+hx3qjVUUmnfzQyHLsRaoQ=; b=WBQohRVO3hs0ncxo+ihWKYqZOXpBia8UT/QGpJU+kLWD1a3XYcXQOmyNvEPnQ4QAqMaa n3FFDiWGb7+mKbmE6isPC9ZJ6dMh8pNhYOZnI5F+FEyCzg67NGA03SE2mcWqffzpz1y8 WxfC+j7us8fRfX/MS0lxYwE+LEU36ENOsCBMVRPPgO9ZVGrMFctF2pDtdgwlD5xaYtjs ZtRn3GjyoDmnrDSc2OJbNJIoVrt2TqQrYYNPF1y3L/YRAehAhK+Zx6up9SHduANZdRXr 9ONMz4maiuZAj8X4GmF1QJ3utE0pzNrQxvzxSksgZ5ZSV4k+S0XfCxddJeK//nSkZT1g 0A== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rrf7p07ed-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 09:27:47 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36A4NDfh026284; Mon, 10 Jul 2023 09:27:45 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3rpye5954a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 09:27:45 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36A9Rek442664606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 09:27:41 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D0BEC2004D; Mon, 10 Jul 2023 09:27:40 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7351420040; Mon, 10 Jul 2023 09:27:38 +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:38 +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 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file Date: Mon, 10 Jul 2023 14:57:09 +0530 Message-Id: <20230710092717.55317-3-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: Y0pe_EF5j_WEDc-pMGW6Z7DWZQv1ZSb8 X-Proofpoint-ORIG-GUID: Y0pe_EF5j_WEDc-pMGW6Z7DWZQv1ZSb8 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 malwarescore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 adultscore=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_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 "processor_bus_topology" 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 12e2bf92783f..2eeeab9a20fa 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci @@ -80,3 +80,35 @@ Contact: Linux on PowerPC Developer List Description: read only This sysfs file exposes the cpumask which is designated to make HCALLs to retrieve hv-gpci pmu event counter data. + +What: /sys/devices/hv_gpci/interface/processor_bus_topology +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 + PROCESSOR_BUS_TOPOLOGY(0xD0). + + * 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