Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37440594rwd; Tue, 11 Jul 2023 14:28:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAAIbpycjgLpjfSVA1y4y8hihuY0TzBgsH6c3+A0+FkDwsK8rDxWADR0Jqh6AGna+ECAcg X-Received: by 2002:a17:906:64d8:b0:987:f332:5329 with SMTP id p24-20020a17090664d800b00987f3325329mr15024430ejn.1.1689110937919; Tue, 11 Jul 2023 14:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689110937; cv=none; d=google.com; s=arc-20160816; b=UhVN6NAAOXJK++MaXkK+6PHpB8IL/tDnbl5QNnXzGO1BZtxdtHDuvwJhVthE2cFxBh 1JCi/j0/IfkA33PrDSZwHBY/+m1bq1SAvUUKoYozLvzTNiA3GhSALy7fIYKc6p97lS1A LURAKFzj/dmQIJtWSHVMw3wnosbUkAQ3tDiYXsmyItOKj6Ec6p1x14PB/wsJZ2A6apvd 4rAk7+7AxH59Shhv2+XCzBd0eBntLu8/8x5gjsX+ehWZKwkaw7adKhQfHAHEnOamTdH0 eba9VlRN88BjeViE3+ePDVIQlzkYXFbIaCnzwDOoWFUb+/I2VxooD6oTizgGWm5Ad4HV 1S9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=orypT0PcLMcwunRr7HJCTZt2dNcjGKOQN6brONjfzCg=; fh=xfLLRiC5t+J9W/Q655gaoPljGMtKwM5T9YtDl9N+/DQ=; b=m/nWjf5q+jym9tgv9NaLuG3VEiIMZoGKb/a5ZBJi9nFe2jwYoOc3qLxts7roWD/gh0 8IiSt81N1xZ9ELGZWRPqksnrGa616WU7JErrCxIZQFX1l9cG/iVGKm1NeFnZGa1UvLG3 jUBuC5oJ77BzP/A+QHkeUgoIE6pVqp+qPfveO3P9IrY+f8/Pe3MzTvxAMINIiGJ27G07 Wp4Gy/nDrS58op/zWLHm8Ix+bhvn5xQFzVkeJAZzb1RKbuW5UZJ9Pd4ai6CMvJ57Xscs vIZOxdKdTMTnlnzrxVU4v01KMYnjpcr/Zr6IEqhsbQKbcxfsqDrU62Hx8NwpzTTqfrI5 bSTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="PH/POPXe"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170906848500b00993a68a3af9si3087323ejx.535.2023.07.11.14.28.33; Tue, 11 Jul 2023 14:28:57 -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=@infradead.org header.s=bombadil.20210309 header.b="PH/POPXe"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231241AbjGKU4T (ORCPT + 99 others); Tue, 11 Jul 2023 16:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbjGKU4S (ORCPT ); Tue, 11 Jul 2023 16:56:18 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F032410DD; Tue, 11 Jul 2023 13:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=orypT0PcLMcwunRr7HJCTZt2dNcjGKOQN6brONjfzCg=; b=PH/POPXe6NnDn2Nge+dfFAM9Li s0rRpQu09mpPbgWcpJWSDm5X6DIvk/uiqcb3ZWQwSbN6WP5huFBN72CGNChs3s8TfyrXxNMmKFAXd i03CK/J79nfBdk+Wy8tJ807VEoFE5fI0V5QdsLM29AIEWnoc8eDr+ZRyWFURbHyTHwHI63jZbhP+i bO2um614jE5ddwZiED7Wp0wqqK5GodGjt9F1DhnFw9qINeSieP7/I80HQbNlkIILSnJHM6EfU1OmE B7JLvfJEXNBhxKuL08z26kG24DdqnSAY7PVJMGL1nEAjRtLGZzqjRcHRDzCLHPPYCRxqtDHuvRtdE VRexneBg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qJKP9-00FsQb-2Z; Tue, 11 Jul 2023 20:56:15 +0000 Message-ID: <38d8820d-4ca0-0bf1-b707-94b850b08241@infradead.org> Date: Tue, 11 Jul 2023 13:56:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 06/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document affinity_domain_via_virtual_processor sysfs interface file Content-Language: en-US To: Kajol Jain , mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com, atrajeev@linux.vnet.ibm.com, disgoel@linux.ibm.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230710092717.55317-1-kjain@linux.ibm.com> <20230710092717.55317-7-kjain@linux.ibm.com> From: Randy Dunlap In-Reply-To: <20230710092717.55317-7-kjain@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi-- On 7/10/23 02:27, Kajol Jain wrote: > 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_SUCCESS > + "H_AUTHORITY" and "H_PARAMETER" as the return type. s/and/or/ > + > + HCALL with return error type "H_AUTHORITY", can be resolved during Drop the comma: ^ > + 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 Refer to > + more information. > + > + * "-EFBIG" : System information exceeds PAGE_SIZE. -- ~Randy