Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2166881rwb; Sat, 29 Jul 2023 00:57:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZ7sI/PWXSjWna6o5b2IRDBgEVK1jDtKtcd6jAMXmEYY6etg5oBGLDxr58MEUSzE49jCsa X-Received: by 2002:a17:90a:5784:b0:263:fc43:5f39 with SMTP id g4-20020a17090a578400b00263fc435f39mr3706078pji.13.1690617462952; Sat, 29 Jul 2023 00:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690617462; cv=none; d=google.com; s=arc-20160816; b=BxrB1VzGOpM8dAh4RIgw1mUb9TKUR08S3Np3+mguPKdHG8/M8TaPzAc0cWVcvr/CHy 9bA8GlydsE9TKw6d6Ly3tPPIRfdbkepBLnpoqiAizAxEydrJTwEDJgRTtbh1EzYbcg+j Ux7S5Ik2vIsyKIXvSnhhIaQqc/AD75x+bNb5oe8ZVLTArZWLVtdJiTpzD+OUWecNYx3X 4eG0wwLyVPlxTG96K4Y/McdGx1xIyjqfk76+NhRkEUrD8+2n87CYSYGxgyf+KdNWQrmm EykZqXaYWquH884hn61ywl8UA/n55Imm1Du7J4dj+jy4BdC2kT/KcCwRuG08De1kek0n m9yQ== 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=k9deFilQAYH3Se3ZM2RqMNcHtPdKhbHAAGRsaS1/7eE=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=WMlS+gBFOwUldM+h76KygFoscs4gSj/Rko65eEDH6XO5b6nFqDQJoD2ZmzDzYzclUt mUws/GfExqq7pa441ewJeQwvCJaR4NpMhbXVliWpezZTjPrW+s5s5cfp6KecU4PqEcjR 4GD9R/8EEiQ+E+LcCM2yyj1IEpWXjg4DcKc/rxXatPb+AQmc+0z+s6DM/epniOB8PsbF REfUQDobIjZ33dPMHwfbEI0qHiq9ddwVu25kyLBc/hxuxqpEeyzWFrhVuyTH7WIMRCEU 9+iTpLpEuENRbgKjtq5Gzv2/JmcDwQOawCQRMn9LbArBUKS5IEh3vwJsHGUzGZ9MUqbW anzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eQVnGsWh; 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 ev17-20020a17090aead100b00263c4af4d8csi5722581pjb.121.2023.07.29.00.57.31; Sat, 29 Jul 2023 00:57:42 -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=eQVnGsWh; 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 S229715AbjG2HgD (ORCPT + 99 others); Sat, 29 Jul 2023 03:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjG2Hf6 (ORCPT ); Sat, 29 Jul 2023 03:35:58 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC0004C05; Sat, 29 Jul 2023 00:35:49 -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 36T7Vd3A002899; Sat, 29 Jul 2023 07:35:23 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=k9deFilQAYH3Se3ZM2RqMNcHtPdKhbHAAGRsaS1/7eE=; b=eQVnGsWhIbGaP5cazCzArF7T9kG86XKjD6AJatjg20/77m8dsoslvDAzi5VVx0YAD1Ex K+eGWaD7j6EA2OkFUV0PFVhP+AfiV120zozZ8dx7Ov1E9CrUmLFh7Gmhc/fZyHJY//2Y ekRNz8WA6/dacb235RhtKeKu/a7sCH8YWd0v+HcZCR/NJzEsFlYXHKvEFD2gpTLKs1dR WvacMJ049eI/03xFOo9p9Bd+030wO5gw88pURAMO6CyjNRjDAyIbYl4iJrhSOyhQdwDp S+Ya4zbfdQUHB4S7s8zh9fQnO9oIQ2bJGTLI9rOppcq++pllCrRx4N1FTM0qabzotcL0 Qw== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s4xf085e4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 07:35:23 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36T6KKJe026189; Sat, 29 Jul 2023 07:35:22 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3s0sesw7kw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 07:35:22 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36T7ZJDG20841100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 29 Jul 2023 07:35:19 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E7C820040; Sat, 29 Jul 2023 07:35:19 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2A8B52004B; Sat, 29 Jul 2023 07:35:17 +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:16 +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 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file Date: Sat, 29 Jul 2023 13:04:47 +0530 Message-Id: <20230729073455.7918-3-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: -gylUQ9AY_CiY7yczIsi9AiQfjaQ4bqX X-Proofpoint-GUID: -gylUQ9AY_CiY7yczIsi9AiQfjaQ4bqX 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 "processor_bus_topology" 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 12e2bf92783f..ba3f9aa3d68e 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_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