Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7774142rwp; Tue, 18 Jul 2023 23:19:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1tOIoVtadhIX+Iwmyn4zbMId6KjlXFCTDBLZGTDjzhbyjmgAhuIFlBiNI46fO1WwpJOzR X-Received: by 2002:a05:6402:332:b0:51d:9ec4:9616 with SMTP id q18-20020a056402033200b0051d9ec49616mr1550443edw.28.1689747554661; Tue, 18 Jul 2023 23:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689747554; cv=none; d=google.com; s=arc-20160816; b=uGmCrNeF7x5Lp3h4+HYHZNWYiaTDKOxAMT6UHxfgsoS/B7gELtf7uV5IA62FbA/xFL QW/onXHIw80VryjxcNd3m5c3CzANxqI0tg7R1592V+B8qN9rjGUqN49NDDUpjIaByncR 5KC3+XnLUdZnW0CpSSibn6o+/z9FjNjHirnitacFugMo9O0/eePJMK2LnXsfInigCC2J zSF9UUYvyH22cJ0qCEGhUQIWbFtfJV5TVc3t/xjAHJOvJ9cspvr9zTqzBiudhARWKAj4 xJ8jodA1ZrEJAQYi+qApoF7stu1cSkiMyvbVWUgwlLL82tUlh6DjD8WvlX+CarYhj65A CQ6w== 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=3pA0qY29knP2UYA59RFLiofQnByvfU9Mcp4+BcOFZKE=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=QtC4KUmUvEvua6ZVYv9S0VhJgof4Tgowg2UDhoaqmI8Yzl/MNn6NRmvZt1gW1Jyk2t 5s4ooSEW/5Gg4tqHEspjq9+sZM1+SPeK+6BH27n4DvuJhcAvaL46aNGK9XDlLiVoXeVC 0EVU5wsZxFnricrt2GGeTn9V0rr2NdDbAgTfEDJzSGEtdClRFH5TPOy1N+3BrenrdlPT uSS+seALrAnnOacFnifj+tHHkW1wtRy2gCtjUEX2Kj2kuv1v018duPdAIitdQA0XeYSh HaLwJlBmyEt/um9+3ANpwpraf7t7RPfRH++u5mRWIPFms7cNwKtSOZeX1l/kXs4Ercrb 33uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dVfCZVZR; 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 d11-20020aa7d5cb000000b0051d9db1a578si2551773eds.671.2023.07.18.23.18.50; Tue, 18 Jul 2023 23:19:14 -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=dVfCZVZR; 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 S230243AbjGSGN3 (ORCPT + 99 others); Wed, 19 Jul 2023 02:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230224AbjGSGNZ (ORCPT ); Wed, 19 Jul 2023 02:13:25 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC7061FD5; Tue, 18 Jul 2023 23:13:22 -0700 (PDT) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36J68ExT028262; Wed, 19 Jul 2023 06:13:14 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=3pA0qY29knP2UYA59RFLiofQnByvfU9Mcp4+BcOFZKE=; b=dVfCZVZRwn+Bb/TEwDPNcVMZEe03f2j8TkQhBPAMVM24sr6zI0Zqz4KGqomvFXpeVEZt 96nDx5cA5zLESouXHGKZA2W4eLtZs5kjK6KdHaZviYQJKMztuQuGR1RyP/niNj4QhNnQ /iIyoNaluoLaaTTMrP+TQudZO6JQQH+rtT0lLOAUd5MmojNdCXozsNhn3QqEuwxvGqFz 9Kav9fZEJC9bM9KkF9kA2XX/gLjipRsORccbeMUfpvNiNlSh9zvbRC56mT7RZ9+MT9Q6 K4JbQ9znYe40ufgY0uyV2H9ffW/HEMhDFEpYuVTPontMVOcRHMhHeqxJkaLzt1eHT7gz ew== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rx6ynkp8h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:13:14 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36J2IpiU031299; Wed, 19 Jul 2023 06:13:13 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv79jny4e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:13:13 +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 36J6DAEv28639744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jul 2023 06:13:10 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7660F2004B; Wed, 19 Jul 2023 06:13:10 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 510D920043; Wed, 19 Jul 2023 06:13:02 +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:13:00 +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 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology sysfs interface file Date: Wed, 19 Jul 2023 11:42:23 +0530 Message-Id: <20230719061231.631410-3-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: VAvuoI-t6skBSzUUU30VKN1AGJbF6zAv X-Proofpoint-ORIG-GUID: VAvuoI-t6skBSzUUU30VKN1AGJbF6zAv 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 clxscore=1015 spamscore=0 mlxlogscore=999 impostorscore=0 adultscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 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_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..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