Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2109017rwp; Fri, 14 Jul 2023 00:25:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlE156ZFuRpTC2VIVRitT2NGjC9wmKeVT3jiEHSyGJVUU5q1U5Lg0OFVN7KYvAOxIO4jADSQ X-Received: by 2002:a17:906:530b:b0:988:a578:4d65 with SMTP id h11-20020a170906530b00b00988a5784d65mr3004367ejo.32.1689319555940; Fri, 14 Jul 2023 00:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689319555; cv=none; d=google.com; s=arc-20160816; b=dYqnGpZpqvqYKnoivbLqXp+omqzSMVBXkJBtOwBKMmfBcS/W4ZKjWb/ltLBMWRC3MD VlRAiV+17E+hbgx3ZdlmAytimLbbzXMM0yZ2KoH3tUfvHiGldxvyX41vQ0Dn6SLW6LwM UsrgChzrIYaR3A+Ud8jgVj7nUI+35urkPqgWvp7w3LY1RRglrkDHVihYn6XWqWb47hzL PVWO49Q7vJLA6kLOKxlx/NHB13KELH05a0pUS9+uddFLuOw59DlAeKeivPINwBRzX2g/ FUQWCVwiozWHq/Pcrfegx0eiWP9TZwszxMjebvAY6suUZYlnkCFlYxoFmxOnkjFh35eU 3vRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VSZ2cLwX/EHXnaRmoVY3Q/CXPd3lzNMShf9VQsHYbZM=; fh=2P/VDjZfCGe6bxpTBEAdNk69SIDWmLhVyFeCbGD8VGQ=; b=0fkK1tPH9tjLANTHgjjCr6RP6eQlNNr0pUJ8pk8rMAcCLLLHNvDp2mQfVGM5Si0OCb 5mEMHOkQg155q4RgZqx724hfS2KcaLx+jtZ+T4S3uL0Xr079TvNrNI56VdYcmWSF67Q0 vR+NtKDzZctB3vIHFYB9VkedGlNzmJZRdWrrqej82tNtASEwAHp5K19or61Lt7bWYVIE 3LjZkyp2IQ0HneJRKIxHGtUfBPLM9niaZYOTVXSoFK4Htgcb078JUvb8U26TslrdOMR8 6tcTV2SYDSltR5nlpP8RdxyKIpcq2lyrJuqgHIWvAxnjo0nAVzjzvz58LAvDHwRA7wUn 837Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=F9jCkLDw; 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 p15-20020a170906a00f00b00992d26308c0si8656378ejy.538.2023.07.14.00.25.31; Fri, 14 Jul 2023 00:25:55 -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=F9jCkLDw; 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 S231614AbjGNHC0 (ORCPT + 99 others); Fri, 14 Jul 2023 03:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjGNHCZ (ORCPT ); Fri, 14 Jul 2023 03:02:25 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9070171D; Fri, 14 Jul 2023 00:02:24 -0700 (PDT) Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36E6k8mC003711; Fri, 14 Jul 2023 07:02:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=VSZ2cLwX/EHXnaRmoVY3Q/CXPd3lzNMShf9VQsHYbZM=; b=F9jCkLDwZECEsSzd4c6/nNh7238079QEjvVzPfQGvKY7NYKkJe6sHLh2yBuemM8yVbD5 1OgIqxdFL3buUzxlRvmqAbO5SAOrv9Q6lHVT4FhLaNmgJdyoIVad8ymQCBkcGBaraZIE Q0YcddfEwR5OqccLNuwbPYgPmwmbfIKTTizg93pai56lKG8IoKTjbb3yooEm4WEniI4M XBAZdlPseoF3Sp/8JwOuiitNDZdKv83I2wE6rJ/rRKU2iYoTDiv7sTuZcsJGuXiYeatm bQC+7ESQqP2t1deFANp+x+mIRZeaPpqznkreVjBF5ocvnHzJHt9Sni2UMfZd3Up1DooA qQ== 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 3ru1cjrbgq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 07:02:09 +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 36E4xAPA007392; Fri, 14 Jul 2023 07:02:09 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3rtpvs1420-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 07:02:09 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36E726BT20578820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Jul 2023 07:02:06 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 00AD52004E; Fri, 14 Jul 2023 07:02:06 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3CE12004B; Fri, 14 Jul 2023 07:02:03 +0000 (GMT) Received: from [9.43.21.134] (unknown [9.43.21.134]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 14 Jul 2023 07:02:03 +0000 (GMT) Message-ID: Date: Fri, 14 Jul 2023 12:32:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file To: Randy Dunlap , mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com, atrajeev@linux.vnet.ibm.com, disgoel@linux.ibm.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230710092717.55317-1-kjain@linux.ibm.com> <20230710092717.55317-3-kjain@linux.ibm.com> <4418618a-ac75-f824-ec6d-984421dd5c6b@infradead.org> Content-Language: en-US From: kajoljain In-Reply-To: <4418618a-ac75-f824-ec6d-984421dd5c6b@infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: -6e-aaptf8lQBw9POaytQSMl9XXfYxQy X-Proofpoint-ORIG-GUID: -6e-aaptf8lQBw9POaytQSMl9XXfYxQy 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-14_03,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 spamscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140059 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,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 Thanks Randy for the review comments, I will do these updates for all documentation patches in my next version of patchset. Thanks, Kajol Jain On 7/12/23 02:22, Randy Dunlap wrote: > Hi-- > > On 7/10/23 02:27, Kajol Jain wrote: >> 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_SUCCESS > >> + "H_AUTHORITY" and "H_PARAMETER" as the return type. > > s/and/or/ > >> + >> + HCALL with return error type "H_AUTHORITY", can be resolved during > > Drop the comma ^ > >> + 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 > > Refer to > >> + more information. >> + >> + * "-EFBIG" : System information exceeds PAGE_SIZE. >