Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2200766rwb; Sat, 29 Jul 2023 01:50:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEiXrxLLVEUqqzalYOpH2q49o4lz/4IMYSBfjyJ+7fX9DAHbOM9+Pui/XtlnCWbyAEPa0oQ X-Received: by 2002:a17:906:3294:b0:991:b834:af83 with SMTP id 20-20020a170906329400b00991b834af83mr1588751ejw.59.1690620630114; Sat, 29 Jul 2023 01:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690620630; cv=none; d=google.com; s=arc-20160816; b=K+UPRpOolfhTv2/SHb+pNF348EsRq9DSh3Zu8m00D92wRAyyZlkr9vj2QNDruGEVDn l2dR+YZxf3IH/TOCbVr6Ksx2/6t/ne+RH9/86ppDPHjCTvmHiutoPqr9sdBN8NEnW6Tk pyzQi2/kWvYBrRPZfOMjZiQcFu8t8YAf3s0hlVUurtnYdqvQu5n99MeQWhntOy154dM8 SKQqLaUvyE3ub1dG8x1DiMoR78/XMeNiuUwWI4e4o4hdDWH1dlJe7NTRKkqlJTP8/0Jr Bf5kwmiTm2cCsxhbsndkSt6spVuhK4hsPQiLkxzY7Kdk86VEMKw7JWheXGlwQEbnK0yG 80Cg== 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=2PW13i7yY+YDLk2/jWYH+35YjgAbTB9Y8L6X3671Is8=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=TAVLynYZ4+uyzqrPjOZN2XPPpVlZ2HpDvbMhvbNL6fHNhChoAd5tmpdIfFpDLXxWRg cjHSfRuh2Q3OiLoO62EtpaJN3jWb7rKmpinusXlMslqhKoZZrb4iu7AhVvMOa8idt6P+ GT+v6hFDf7UTBKsbI3D9zhaEGF6xh8h74yz0xeYg2IzC88doW0c8YW/fAe/NiV5oaIMp Jw8TbqH3Z36FUxzADm8P8uWYiyBGx+Ry5eG+TzgDDd0nTnGO2Gl15ZPmRxCpwswboFaA Y9u0KwCOx1oF6k3NsPkriYeMhyW65jwT1oiSoAxuqDj5/Uhmsne8XYLO8YI9mmzsCR+q KY2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="FiaGT/r7"; 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 cd17-20020a170906b35100b00983f499fbd7si4050469ejb.836.2023.07.29.01.50.05; Sat, 29 Jul 2023 01:50:30 -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="FiaGT/r7"; 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 S230180AbjG2H4q (ORCPT + 99 others); Sat, 29 Jul 2023 03:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjG2H4p (ORCPT ); Sat, 29 Jul 2023 03:56:45 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE0BAF3; Sat, 29 Jul 2023 00:56:44 -0700 (PDT) Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36T7ggnu022803; Sat, 29 Jul 2023 07:56:32 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=2PW13i7yY+YDLk2/jWYH+35YjgAbTB9Y8L6X3671Is8=; b=FiaGT/r7/CPoMo+xuffY7O+T/Gj0iYWXv/aos2illab+X8H2X34Au/C8DiMez381AUxz ypmFplBviBmd2rkXWF8NlMCQvflfKLT65Mbfl2n1DqxjH1+XaRQP8VQ9xxgzPofYdqTb aw1LuSgI7BiI3AR2xrqVW+WOTmXZurrZBRBGcAyaIl2Xxa9G2pNJgaqgbChAkE6TuMd5 M7/7f0sc41oQd9pzhrM589mGhzHekv/kDxu6V54QUiIZrC1K5gvYZxOh+ol+rjaUeiwx 0qu+xNIAfXiq8vNE73gsR7MhSeRw+50gObFezpVqLZ73jGcStpfMWnpsc4vzeYWoMKiy aA== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s4x6mgffa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 07:56:32 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36T5m1hm002278; Sat, 29 Jul 2023 07:35:27 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3s0unkcbth-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 07:35:27 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36T7ZPrx33555176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 29 Jul 2023 07:35:25 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E7AD020043; Sat, 29 Jul 2023 07:35:24 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 935AE2004B; Sat, 29 Jul 2023 07:35:22 +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:22 +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 04/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_config sysfs interface file Date: Sat, 29 Jul 2023 13:04:49 +0530 Message-Id: <20230729073455.7918-5-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: s8BUCDQstrD3CiV3l2YlbQ5RIp6xf54c X-Proofpoint-GUID: s8BUCDQstrD3CiV3l2YlbQ5RIp6xf54c 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 phishscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 adultscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 malwarescore=0 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_config" 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 ba3f9aa3d68e..9e81de18142f 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci @@ -112,3 +112,35 @@ Description: admin read only more information. * "-EFBIG" : System information exceeds PAGE_SIZE. + +What: /sys/devices/hv_gpci/interface/processor_config +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_CONFIG(0x90). + + * 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