Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7790314rwp; Tue, 18 Jul 2023 23:39:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/YtF8QeA3nCFl0TIWIXPupz4URGWZnh5sF91oS0vL6q1HZvDA9j2Yw480dzf0U1Wrgz04 X-Received: by 2002:a05:6358:27a3:b0:135:b4c:a4b4 with SMTP id l35-20020a05635827a300b001350b4ca4b4mr2162506rwb.14.1689748794115; Tue, 18 Jul 2023 23:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689748794; cv=none; d=google.com; s=arc-20160816; b=UL2FowSUEt8Fq0UAK9XLCwOoHt5RecA8aSVlUCEcp/QweWtpeGX37+RaezqirJQunE VcbRH8L+feVf/ACifZP6w47th08I9hN5lZPING+s5cdQZTPdqli7KK+IXy07D6mfjToQ rvUn/8NlVpF6CzO3gvJRNu6DUzkTSTLKsLOymOiiuaPFfaB6o0mM+izKCX06S0QogdWn G6IKoSXXqnWpsTeWOBytV15z/KQVsb7e1jE3grX+zEVUysrKpSZuPakPCUtCM9eok322 H2S58DCZUCVxoaC2TlanbJPrF/kb70M1b/1lsbC2oCyVFY+HDgtPuM1hke9A5nCjxq4e 3yYQ== 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=I4RimYPDjEWMxAKr1WbPmGOyI9qKbGseoTfXwpulJgI=; fh=lluApPZKvgBfehyE3YkEDiG1ZnF0SxL3enV3I5H2lAw=; b=J0Cm6zINox+12PKqRcR0dEemRl1nbngXB3kaE0kdDdwLNviyaNatufhTFLBnGSrRBN XBD/5zt97dUuMQAi1hpa+vzEkgnevMfgh75BqzwVhsJsLv7C6aY3UO4Wrb4y8wfwylV1 7uO7phDQ3/Z4+5pcNXRmWd8f73FoN9xcVN9uPE77Sz4hQRuWoaZ3g8KFk4Mkk3WsTXZs MFnp5xiMP4YgPPT/0C6OSmEGm6H9zRpqYPc8J75JrKbKOwNoFHzJkExENZFSGIfV6UJS Rl8eog9IrOyuA06L3homnlcFK5lAypiD4x70vw/28pdR8fvjoAtJm5dPKwxxMT4dZi2G CWpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ADZreu6T; 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 m3-20020a634c43000000b0055b618c77f6si2889774pgl.180.2023.07.18.23.39.42; Tue, 18 Jul 2023 23:39:54 -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=ADZreu6T; 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 S230404AbjGSGOj (ORCPT + 99 others); Wed, 19 Jul 2023 02:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbjGSGOc (ORCPT ); Wed, 19 Jul 2023 02:14:32 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE56F269A; Tue, 18 Jul 2023 23:14:13 -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 36J5crfP006714; Wed, 19 Jul 2023 06:14:05 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=I4RimYPDjEWMxAKr1WbPmGOyI9qKbGseoTfXwpulJgI=; b=ADZreu6T2VCm8wUBinyaRhp51M0uadAqubI7uyrUAVhjFGHwQWy2FZZDq0jp7s03+djL 1VQVg4HpS9TgF13BT21+Ik/d/MlzJOci3jlJpLw4Z5IkA2CaIVFoWM0quzXamsvCUsGc CV2HH1cKuzap9+T15S4TQNtGcGH/RjzQBqHkXYXB1o9rvbEd6BukQNUd7XyhUR+Of3rm k6xqtJfbaPIfVuCnqlKGh7y8+O0E5V4QfmRgpPIotJkaLd2HViB1hMnYvksALgbI0yWU EJEa3P80Kh7LBQHJfoTtR3e+Fw89NcRnQ89fob4mH5mCXFbGGYydjRQ9eIjRRmzVApt5 Sw== 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 3rx86f2g59-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:14:05 +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 36J42f08016914; Wed, 19 Jul 2023 06:14:04 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3rv5srs7a2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 06:14:04 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36J6E1dM14549536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jul 2023 06:14:01 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3EA7F2004D; Wed, 19 Jul 2023 06:14:01 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C40A620040; Wed, 19 Jul 2023 06:13:53 +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:52 +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 08/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_domain sysfs interface file Date: Wed, 19 Jul 2023 11:42:29 +0530 Message-Id: <20230719061231.631410-9-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: _uEGVglmDDubNeeHY2-7Lv2YtO9Z1go- X-Proofpoint-ORIG-GUID: _uEGVglmDDubNeeHY2-7Lv2YtO9Z1go- 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 impostorscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 clxscore=1015 adultscore=0 spamscore=0 lowpriorityscore=0 phishscore=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 "affinity_domain_via_domain" 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 5ee33218be83..399f0a2bd546 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci @@ -176,3 +176,35 @@ Description: admin read only more information. * "-EFBIG" : System information exceeds PAGE_SIZE. + +What: /sys/devices/hv_gpci/interface/affinity_domain_via_domain +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_DOMAIN(0xB0). + + * 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