Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37421779rwd; Tue, 11 Jul 2023 14:10:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbrx/o5j3unsQNgthDkWCNqUBzrdTldzfVbEtW4DgikMtSJOvqoWm2W2ILvQRTAw0lZdrt X-Received: by 2002:a05:6a00:3a2a:b0:675:8521:ddc7 with SMTP id fj42-20020a056a003a2a00b006758521ddc7mr19731634pfb.0.1689109828964; Tue, 11 Jul 2023 14:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689109828; cv=none; d=google.com; s=arc-20160816; b=IOnH6Z004aVHO/6U+FN7I3l/pNtJby/8xO2wwX2+vwFUllBy0KhbvVErRX35Kf7X60 Pn8zTUw0nEwBlQwO218ykN48a6hCNVZkQVnfImNbGNKvbu/OjJypbmdiE5Aw8ld3yYwl a77ZONbAoSBjDdR58MrHKtCysUvaluMp5EjRi9yKyHr7+NrT1bWmwCZzLqR6F5hGq3Ol bwgEe0ltKJIr1Idq89CVTdjEWvjLYTifYKSLKubUx2J4MWkXtUtlHQiEGnhH1wnxdd9o T26SHk4DbXBdthh+jVpS0K9YWUNRdeTp2J6NdPOsohUCpTH2VnfCbz1H58bcvtCkpdja yuuQ== 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=/emvWvYcr0PrfMBIZh/6opl6dgnt0C4Vtimd6uINPmo=; fh=xfLLRiC5t+J9W/Q655gaoPljGMtKwM5T9YtDl9N+/DQ=; b=QVdqU3TwMSjhNwkacl0eUG7bmJuRkr+ErNhsBkKyznlhqnzVff6wOZHkjeXRhX4RkZ GmPdrC0QmKW0pwPn1XRIUiIaOPmZ6OP7NJDubjKjCtH2fAr0Yg2dcAOIVo/W+lwRza58 SmqgteruyYbvOGJweN6+AzhLTK0+t5F2FakiX0b18PVzptXF6f6zMVG/GxerlMY79R1m 55A6YlYUB1m5Y4m0GY4kfpKMHRnMnxNhNKK5IYWqPViIoPZ4yNdw6DSFnx7qytkoyrYr Vfaog4Z3PLPlEd/pKJhgkE8Z2XKhqgPc/WU5mCVCEyevu9zcCE4c0FjsAItiSh9ig3zm 0aaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vhEIYW++; 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 r30-20020a63205e000000b005572d25a921si1953932pgm.419.2023.07.11.14.10.14; Tue, 11 Jul 2023 14:10:28 -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=vhEIYW++; 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 S230361AbjGKUxH (ORCPT + 99 others); Tue, 11 Jul 2023 16:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231177AbjGKUw6 (ORCPT ); Tue, 11 Jul 2023 16:52:58 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A4A10C2; Tue, 11 Jul 2023 13:52:57 -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=/emvWvYcr0PrfMBIZh/6opl6dgnt0C4Vtimd6uINPmo=; b=vhEIYW++/rGGI2u5ESqmPK9iEF 7dKcCjTGP3fOSwDNfGY76EeW9hXLyFT+uk5zWj+Xt3AbqE3fktc8Rew0bhuDzL8IGQpKTnVSV8Lx2 z4NUNZB9tQGlFZVG1L3luB2G3RBDVHT9T4zX7E571omlXT9e3WsnGJazIRjbXRZYQz2lfGfNpC5Nx ESIwsBj4puASpAZEFLQdE/Yopqk8Rwmghu8mtkcObVi3K961vkbOAcU6WyWufYsAcBEYxnmp1Ggnb +rpjMGSbRYyXI/ne3w+7Ts18BG4Mn/QpzzgkaDQdglgus1l/zzLx4/nYrCnDGJxIKqHaMiiTx5FrW ft74jMzw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qJKLs-00Fs8h-13; Tue, 11 Jul 2023 20:52:52 +0000 Message-ID: <4418618a-ac75-f824-ec6d-984421dd5c6b@infradead.org> Date: Tue, 11 Jul 2023 13:52:51 -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 02/10] docs: ABI: sysfs-bus-event_source-devices-hv_gpci: Document processor_bus_topology 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-3-kjain@linux.ibm.com> From: Randy Dunlap In-Reply-To: <20230710092717.55317-3-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 > "processor_bus_topology" 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 12e2bf92783f..2eeeab9a20fa 100644 > --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci > +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci > @@ -80,3 +80,35 @@ Contact: Linux on PowerPC Developer List > Description: read only > This sysfs file exposes the cpumask which is designated to make > HCALLs to retrieve hv-gpci pmu event counter data. > + > +What: /sys/devices/hv_gpci/interface/processor_bus_topology > +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_BUS_TOPOLOGY(0xD0). > + > + * 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