Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35106676rwd; Mon, 10 Jul 2023 02:39:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRQWti/KI0InXBBoslFkweD5X4c/V+Ubu0ZEpOiCM62AVLF5LL3FYs5Jto9xJnhEQrPwdC X-Received: by 2002:a05:6a00:179f:b0:680:2b80:8479 with SMTP id s31-20020a056a00179f00b006802b808479mr15937439pfg.19.1688981947765; Mon, 10 Jul 2023 02:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688981947; cv=none; d=google.com; s=arc-20160816; b=q9GxakFMnOFT1e/bmUqBVMJ4vPh9kwv85frJWuSKPz983MiKX1WMeJcC4Rns38EGlz x4jJPZn96GvuSGLjMr+36Lpt8nHWTyTcdJ1nMZg8tdqkldfmChRpyKDLW83Yrjtj0NV5 SZQ1huONss1DwMJzftZxnJIbjQAGuCyd530INkaAi/KTRT71HGCLHWVM0UUcn5pbV86X KOrlz4fyoPfSQAS1kL3u/qGsIajYo+PieppX7RHk+sbwghZw9KV2I2tVlbXEDoNxBMbb Wm/t4a2iwURjv9hxNtQufNPUnQXTCV2yzwxYNp++EG+UOcA7s+VikrrYIV7i0eWx+aWY eNBw== 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=l7NdLhWtL0A656p6DcJCigyneZ9TUiwcuof9eIsDurY=; fh=htOV7vhoKJkntQiYYINUtvxytrK3usaYfMzVQ/OtDx8=; b=YyVsvztptnoOXqiDksn0ggdEvlRH9+eaNJ+YvugocUAxAAijvwWrnPqIjC7UbgAzmj WHzGoZ1HVrJ1Ieqlel+s3NIbOm3xiuMMjCyte43TGICPOrIzQuPP97RAe7EF1RPMhTG3 C9UCNOr4xo9L0qEhr98y5h/fJJ8mbB6mZNJZUNPibRuBbTQEU0QaoLjGIn0NFXZutXKb +IrlEm/o0cbk3sD2gic0TpSaWKHVo2QdoU+1FGbUPsY2s2EjY8fsauecv7pxLDKi4LeR d6ZUPNY94Kc9UBSDVAM1sKL49mIrin2RVFYgecc5EXsZT1onYcVIIbrg+lsz6V1WMspc vTmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FS5skVKc; 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 bt6-20020a056a00438600b0064d5e926241si8662071pfb.149.2023.07.10.02.38.56; Mon, 10 Jul 2023 02:39:07 -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=FS5skVKc; 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 S232069AbjGJJ2g (ORCPT + 99 others); Mon, 10 Jul 2023 05:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjGJJ2C (ORCPT ); Mon, 10 Jul 2023 05:28:02 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21CD49B; Mon, 10 Jul 2023 02:28:02 -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 36A9MoC8028075; Mon, 10 Jul 2023 09:27:57 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=l7NdLhWtL0A656p6DcJCigyneZ9TUiwcuof9eIsDurY=; b=FS5skVKc/jrEnvLBsPJJeykw9OEM5/ZapixWyFqh9xqv4Grw/QgX0dfDf1q8IYqF6pUw ZpmxO3u6V6hDfIVogbtYtPaFmauEffTU3zTuHhrpx+UB5UNrLft8vb36guojlBDlmhrp ISbqfy8cLpBk7GqmH966BY9XE5Z6o+YJxxcYp1W3S3XNU1+7hb5Q7Oys7kuupIozeQSi 7mm5CLY3SJVNaEznhSuEmiSbTedjnyl9e/J8sfA4WN8b9JUQFk49WN3iAIrCVo7Szdwk d/4/5sh4mWQh6/+xr3LZ85aCUa/maRZFJ5aXbRB0oYJWR972dhyzLvtrsqZAPESowOBj bg== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rrfa002ua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 09:27:56 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36A3h1ph012046; Mon, 10 Jul 2023 09:27:54 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3rpy2e1593-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jul 2023 09:27:54 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36A9RoJa31195844 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 09:27:50 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB92C20043; Mon, 10 Jul 2023 09:27:50 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE35920040; Mon, 10 Jul 2023 09:27:48 +0000 (GMT) Received: from li-e8dccbcc-2adc-11b2-a85c-bc1f33b9b810.ibm.com.com (unknown [9.43.85.154]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 10 Jul 2023 09:27:48 +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 Subject: [PATCH v2 06/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_virtual_processor sysfs interface file Date: Mon, 10 Jul 2023 14:57:13 +0530 Message-Id: <20230710092717.55317-7-kjain@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230710092717.55317-1-kjain@linux.ibm.com> References: <20230710092717.55317-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: aLSFZ-XSsMogCe1MUf52QhmuktZjqrMq X-Proofpoint-GUID: aLSFZ-XSsMogCe1MUf52QhmuktZjqrMq 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-10_07,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 spamscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307100082 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 "affinity_domain_via_virtual_processor" 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 aff52dc3b05c..3b63d66658fe 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci @@ -144,3 +144,35 @@ Description: admin read only more information. * "-EFBIG" : System information exceeds PAGE_SIZE. + +What: /sys/devices/hv_gpci/interface/affinity_domain_via_virtual_processor +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 + AFFINITY_DOMAIN_INFORMATION_BY_VIRTUAL_PROCESSOR(0xA0). + + * 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_AUTHORITY" and "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 getPerfCountInfo documentation for + more information. + + * "-EFBIG" : System information exceeds PAGE_SIZE. -- 2.31.1