From patchwork Fri Jul 28 03:03:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huisong Li X-Patchwork-Id: 13331114 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B54EC001E0 for ; Fri, 28 Jul 2023 03:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Uyo5ieSyB9iDyygXHxrDRAhwzkrmhitf8FtSel0eL+c=; b=rZEWYgKdYcvB+u d1iU/Me5YOmGmK64B8uQFgjFAuzK6dTP05p7jH6zY6A30VAhTLdPuZM8U82llQqwuM2WX33pY4hai 6Ujs/xg6MVxBU4a0Wu6tFGwB/9/Oofa1YW+GvmXjAJncQicpyLA7koo9h8/Ytw3/TXk9dsZsivFeg Z++Trd+/g3J6fFU9OsduYeJc6ELVKH6O16jdResHVuZ2aEVWDQKW4xUmt8z7+jcMefX+Q/Gv/atM6 rD/IV+UTi0QU4u6AUXvlQeVNwqbmlumd7iaPM+9t9t6ppiN1I79YVVCQmFNPWwwBp5Dq27ckH1DMv Io/egbouqtq1R6y2y5bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPDni-001QdF-3C; Fri, 28 Jul 2023 03:05:58 +0000 Received: from szxga08-in.huawei.com ([45.249.212.255]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPDnY-001QaW-2S for linux-arm-kernel@lists.infradead.org; Fri, 28 Jul 2023 03:05:50 +0000 Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RBstl0cKzz1GDFX; Fri, 28 Jul 2023 11:04:47 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 28 Jul 2023 11:05:41 +0800 From: Huisong Li To: , , , , CC: , , , , , , Subject: [PATCH v4 2/2] doc: soc: hisilicon: Add Kunpeng HCCS driver documentation Date: Fri, 28 Jul 2023 11:03:02 +0800 Message-ID: <20230728030302.23356-3-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230728030302.23356-1-lihuisong@huawei.com> References: <20230424073020.4039-1-lihuisong@huawei.com> <20230728030302.23356-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_200549_159409_D1D3A61C X-CRM114-Status: GOOD ( 15.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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..70b2618f1869 --- /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: November 2023 +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: November 2023 +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: November 2023 +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 c9e302c3ff48..764b20b1d19a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9491,6 +9491,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