Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4212964rwo; Tue, 25 Jul 2023 02:26:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZS3Olu3aXNP9Tn/IHBgKPTQ8bjdfGKGyA4xEFuwM1zoHqjditY9r91FP72xRwfcxoZijQ X-Received: by 2002:aa7:c592:0:b0:522:ee2:939e with SMTP id g18-20020aa7c592000000b005220ee2939emr8109541edq.2.1690277161693; Tue, 25 Jul 2023 02:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690277161; cv=none; d=google.com; s=arc-20160816; b=a0zZBEEZuOvFv39MYO+oxcrLrmezvflVKuDZlfgu1hiyRQpi7GknH11woVd1AkMrG+ wPX6vsEu0VkvHsqArl9jkjOc96irQnylkHuS4/hETMUkgHXFm7vMuzobKGZzOhMECP1V xWB++050L1OWhe+QJVSIaqaEYTLJQeWsHG1fBv++vbnGnMoj1+PbTt1au7ZQ2kt7y5Dd WyT+KJBGLr6gl5welEiOlfqlkkYQtqvr3nhP29hFSwTeEIlitfnxeHkOb5ovHovbcRyM P5Zf+Qu81BKuFmP9TJvZb3S3ZT78SQDHWdzkNW6BhG5C+GsMmLzfQs97+eUgNik8hTCn 94fw== 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:references :subject:cc:to:mime-version:user-agent:from:date:message-id; bh=zfzjuUcnCU9jcnuz0E7JhXPateNDCPU9ususiai89Ew=; fh=6EJa5+7uoh51ALisbPa0klnTbPAWetFof5uAZRHi2KQ=; b=JWHWbOkLwP3rZlx0Nzw4Cl39EbO+/pJhh95dQYlOOlvswTD21iI/B3+TrthlSKhVxL XmXRTBA9iC8Gx+ZlbEJKoDp1i2yOP0IKVIRJ4mqqM7ZYgF7ln+UBmXBLBuFadOE5z5nb jB0sBi0L/8f9b5kG9kySk0g5qnqyGyx+rVbAqtsqK7ce2RHg1DBm206OceaT+9LPgf4r XU4I2ZwWEdIOSdRTpIEYAzHsfHHBeWyidzIGMR719/8e7gDnMsYtHJK/pWPxY9Crvfa/ MdUbRwWqda+YgskCuXyfaWyinD+w28egRh3zzNYxFXOpQQ1RZ6F14aCZR9pf+hQxU5cK RApw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a05640203c900b0052255161ea1si460989edw.45.2023.07.25.02.25.37; Tue, 25 Jul 2023 02:26:01 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232071AbjGYI7T (ORCPT + 99 others); Tue, 25 Jul 2023 04:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbjGYI7R (ORCPT ); Tue, 25 Jul 2023 04:59:17 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4322A9C for ; Tue, 25 Jul 2023 01:59:14 -0700 (PDT) Received: from kwepemi500011.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R99sH2pD1zVjws; Tue, 25 Jul 2023 16:57:39 +0800 (CST) Received: from [10.67.103.39] (10.67.103.39) by kwepemi500011.china.huawei.com (7.221.188.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 16:59:11 +0800 Message-ID: <64BF8EDE.7090304@hisilicon.com> Date: Tue, 25 Jul 2023 16:59:10 +0800 From: Wei Xu User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Huisong Li , , , CC: , , , , , Subject: Re: [PATCH RESEND v3 2/2] doc: soc: hisilicon: Add Kunpeng HCCS driver documentation References: <20230424073020.4039-1-lihuisong@huawei.com> <20230725075706.48939-1-lihuisong@huawei.com> <20230725075706.48939-3-lihuisong@huawei.com> In-Reply-To: <20230725075706.48939-3-lihuisong@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.39] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500011.china.huawei.com (7.221.188.124) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 Hi Huisong, On 2023/7/25 15:57, Huisong Li wrote: > Document the sysfs attributes description provided by HCCS driver on > Kunpeng SoC. > > Signed-off-by: Huisong Li > --- > .../sysfs-devices-platform-kunpeng_hccs | 76 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 77 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs > > diff --git a/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs b/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs > new file mode 100644 > index 000000000000..83ebed801249 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs > @@ -0,0 +1,76 @@ > +What: /sys/devices/platform/HISI04Bx:00/chipX/all_linked > + /sys/devices/platform/HISI04Bx:00/chipX/linked_full_lane > + /sys/devices/platform/HISI04Bx:00/chipX/crc_err_cnt > +Date: May 2023 Please update the date to "November 2023" to match the 6.6 kernel. > +KernelVersion: 6.6 > +Contact: Huisong Li > +Description: > + The /sys/devices/platform/HISI04Bx:00/chipX/ directory > + contains read-only attributes exposing some summarization > + information of all HCCS ports under a specified chip. > + The X in 'chipX' indicates the Xth chip on platform. > + > + There are following attributes in this directory: > + ================= ==== ========================================= > + all_linked: (RO) if all enabled ports on this chip are > + linked (bool). > + linked_full_lane: (RO) if all linked ports on this chip are full > + lane (bool). > + crc_err_cnt: (RO) total CRC err count for all ports on this > + chip. > + ============= ==== ============================================= > + > +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/all_linked > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/linked_full_lane > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/crc_err_cnt > +Date: May 2023 Ditto. > +KernelVersion: 6.6 > +Contact: Huisong Li > +Description: > + The /sys/devices/platform/HISI04Bx:00/chipX/dieY/ directory > + contains read-only attributes exposing some summarization > + information of all HCCS ports under a specified die. > + The Y in 'dieY' indicates the hardware id of the die on chip who > + has chip id X. > + > + There are following attributes in this directory: > + ================= ==== ========================================= > + all_linked: (RO) if all enabled ports on this die are > + linked (bool). > + linked_full_lane: (RO) if all linked ports on this die are full > + lane (bool). > + crc_err_cnt: (RO) total CRC err count for all ports on this > + die. > + ============= ==== ============================================= > + > +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/type > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mode > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/enable > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/cur_lane_num > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mask > + /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/crc_err_cnt > +Date: May 2023 Ditto. Best Regards, Wei > +KernelVersion: 6.6 > +Contact: Huisong Li > +Description: > + The /sys/devices/platform/HISI04Bx/chipX/dieX/hccsN/ directory > + contains read-only attributes exposing information about > + a HCCS port. The N value in 'hccsN' indicates this port id. > + The X in 'chipX' indicates the ID of the chip to which the > + HCCS port belongs. For example, X ranges from to 'n - 1' if the > + chip number on platform is n. > + The Y in 'dieY' indicates the hardware id of the die to which > + the hccs port belongs. > + > + The HCCS port have the following attributes: > + ============= ==== ============================================= > + type: (RO) port type (string), e.g. HCCS-v1 -> H32 > + lane_mode: (RO) the lane mode of this port (string), e.g. x8 > + enable: (RO) indicate if this port is enabled (bool). > + cur_lane_num: (RO) current lane number of this port. > + lane_mask: (RO) current lane mask of this port, every bit > + indicates a lane. > + crc_err_cnt: (RO) CRC err count on this port. > + ============= ==== ============================================= > + Note: type, lane_mode and enable are fixed attributes on > + running platform. > diff --git a/MAINTAINERS b/MAINTAINERS > index 4e55ff992171..7a34bab232eb 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -9474,6 +9474,7 @@ F: drivers/crypto/hisilicon/zip/ > HISILICON KUNPENG SOC HCCS DRIVER > M: Huisong Li > S: Maintained > +F: Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs > F: drivers/soc/hisilicon/kunpeng_hccs.c > F: drivers/soc/hisilicon/kunpeng_hccs.h > >