Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7778490rwp; Tue, 18 Jul 2023 23:25:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkL1LoRNH98X9aV9qWyI7WTEpt+AxxHTg4vVp9Txz0HG2QqTh/uw14YqYgnt/bqNaDQmeu X-Received: by 2002:aa7:d143:0:b0:520:f5dd:3335 with SMTP id r3-20020aa7d143000000b00520f5dd3335mr1639327edo.41.1689747915547; Tue, 18 Jul 2023 23:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689747915; cv=none; d=google.com; s=arc-20160816; b=YVY/bxjvlZbAfOHIcW0MAkksZHxUlU31tpAcSVA64/4uLka4Fwd0zixyWaYxQXgv23 7VYBsis98htaOoiDKss2ODeWtdzm+l+e2one0Db/aEIl5+B35SIKVqBKLdtFfd4razbe 2gYlyhvkGOhQKyqASE8HfG6WNZKiACYEp+3k1TD5qa06c9zwltcqjNCkTw/XblyOWLlK 5mFEl/2lS3uaNWnRsjkwqO1snkSN0/UOdQ9EpRK+n0UQxnDnCoy5wzYG2SMV0BMA1GnF oKOnnUbUGmrh15hSARbKDmupYYfjC8TD0WjQw8+ZRblpCnfCCYIyjV8y4gljbNTM3sj0 gQtQ== 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=/F04tkyzlUN/cI364EUqGAxDU0vdlaoivBC9Fcr5+hk=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=a60HP/yRyyyshXV8F/mlukcIORR9FHUQwogu425mkKq0KkYl44n0lH9n0MkD6DNXWY Bfoi/gQkGnNH5UHYhd5qZ1xiUfsSUsI48+zN8wmGRwEcKUS2qhI4yb/0KAbbN9IOEjvN Se/UfrC8z+9qRR9RMQPJXdJ8DCHbsvcWt3UbHD1tqWFsbYw9bagOiRN8LXCSyaH1QiNk bwADl1Jpi+TE6TQK1+tMoc3F2sC5Ept0He7x5BPcltQQLzBNj14m+ji0uagKWYc9+zkD Q6NjZpO6L3tIxx+4n9v/RQaRsWg6OYREG/U8hvmh1b372MEiEW0IGbOrGvQQMcK4ZM3D LJaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=M9J3W9ek; 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 n24-20020aa7c698000000b0051df8f154d4si2643573edq.6.2023.07.18.23.24.51; Tue, 18 Jul 2023 23:25:15 -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=M9J3W9ek; 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 S230358AbjGSGN4 (ORCPT + 99 others); Wed, 19 Jul 2023 02:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230394AbjGSGNv (ORCPT ); Wed, 19 Jul 2023 02:13:51 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD9B2109; Tue, 18 Jul 2023 23:13:40 -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 36J68OEs017093; Wed, 19 Jul 2023 06:13:34 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=/F04tkyzlUN/cI364EUqGAxDU0vdlaoivBC9Fcr5+hk=; b=M9J3W9ekuxHDqA1MSDf1AvYwgY2RmkLGAZtpJZ/IvVSI2dkYwpSdWlPB21pgXSARrvob WtD8tuT0fc+pHPceQVOklGfn0w0MUnMKDfDxT5dsv2wFwLW9WhQktXBOPRSx2xRjyrMB DdGTsA42GDJmzCrE2bkODKtt/hRP4iU2gqmio9c6O/Jz4kKnkh+n2gVSIPlq6gTuqGOl F+KKqwKpQ9vbdfXD7aFILicNU6ByISK+n3u7XyJJCIJyDWxL3hzGssVSvt6oA3X8wk5J OlCSZNLI8XxgSXqEEA9U4GVuv4phBBku+k+/iqZgjwh3FlYozOvNRliQBGvwaYOW5/9G Dw== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rx8w7syn2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:13:34 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36J4Ejrd029129; Wed, 19 Jul 2023 06:13:32 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv6smg9f3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:13:32 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36J6DTiC42336884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jul 2023 06:13:29 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 71F1120040; Wed, 19 Jul 2023 06:13:29 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D29020043; Wed, 19 Jul 2023 06:13:20 +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:18 +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 04/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_config sysfs interface file Date: Wed, 19 Jul 2023 11:42:25 +0530 Message-Id: <20230719061231.631410-5-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: ONhxjtR_mvBaaq3F1RhSKBSrLtiCoDb2 X-Proofpoint-ORIG-GUID: ONhxjtR_mvBaaq3F1RhSKBSrLtiCoDb2 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 mlxscore=0 bulkscore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 spamscore=0 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 lowpriorityscore=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_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 Add details of the new hv-gpci interface file called "processor_config" 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 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