From patchwork Tue Aug 8 02:36:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huisong Li X-Patchwork-Id: 13345604 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 C742AEB64DD for ; Tue, 8 Aug 2023 02:40:04 +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=Lh7VDyvKrKwsgdVvpE4GhB+IYf+/HsNuXIqTkDEIE0s=; b=3hZaL5he30wvRQ xPgLA23KnDNH7EcL+V5rlfQU3E7mBT1FR2kDYKCL919qhQV8WVpoJ1jtP62mb0zFPU13gSwJn8qDQ HMhgir1t5unOINBo/faHNXt4iV6/t7FE5sdGambgofq6e9oIT2Z0bpOnrFUVxhlRM0wnAPn923vgv K841okolVCvlm39pc2jDjBNDAdRHLC6GLKsDOyETKDK++nVGGynht/a4fYHK3W9hgkAo9wN5i5xMN vfMOsalOHCRYLjlrPaf6+lLVxiz2n6wJdR9rZWJH6VqoV3MZGd1iGt2ZZtciMZfq37sPxR2oE71Sc Dw+SOawUp066Ty+7no7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTCdJ-001Z8A-0O; Tue, 08 Aug 2023 02:39:41 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTCdF-001Z57-2g for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 02:39:39 +0000 Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RKckQ4VFBztS2s; Tue, 8 Aug 2023 10:35:58 +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; Tue, 8 Aug 2023 10:39:25 +0800 From: Huisong Li To: , , , , , CC: , , , , , , Subject: [PATCH v7 0/3] soc: hisilicon: Support HCCS driver on Kunpeng SoC Date: Tue, 8 Aug 2023 10:36:37 +0800 Message-ID: <20230808023640.25263-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230424073020.4039-1-lihuisong@huawei.com> References: <20230424073020.4039-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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-20230807_193938_051199_B8435373 X-CRM114-Status: GOOD ( 15.00 ) 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 This series add HCCS driver to query the health status and port information of HCCS on Kunpeng SoC as well as document all sysfs entries provided by this driver. --- v7: - split patch 1/2 to make it easier to review. - fix a wrong command code in hccs_get_die_all_link_status(). - remove unused code and fix a log description in error branch. v6: - fix the new entry in MAINTAINERS file to keep alphabetical order v5: - fix document format to eliminate warning of making htmldocs. v4: - remove useless header and reorder linux header. - use __ATTR_RO to replace __ATTR for port attributes. - add MODULE_DEVICE_TABLE to autoload the driver. - update the date to "November 2023". - fix some comments about HCCS description. v3: - replace "using_status" with "enable" attribute. - fix some comments in codes. v2: - Document all sysfs entries provided by driver. - drop 'pcc_type' and 'intr_mode' in struct hccs_dev. - using _CRS with PCC GAS to get channel ID instead of _DSD. - replace readw_relaxed_poll_timeout with readw_poll_timeout. - use sysfs_emit() instead of sprintf(). - drop ACPI_PTR in hccs_driver. - drop useless log during the probe phase. Huisong Li (3): soc: hisilicon: Support HCCS driver on Kunpeng SoC soc: hisilicon: add sysfs entry to query information of HCCS doc: soc: hisilicon: Add Kunpeng HCCS driver documentation .../sysfs-devices-platform-kunpeng_hccs | 81 ++ MAINTAINERS | 7 + drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/hisilicon/Kconfig | 20 + drivers/soc/hisilicon/Makefile | 2 + drivers/soc/hisilicon/kunpeng_hccs.c | 1275 +++++++++++++++++ drivers/soc/hisilicon/kunpeng_hccs.h | 191 +++ 8 files changed, 1578 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs create mode 100644 drivers/soc/hisilicon/Kconfig create mode 100644 drivers/soc/hisilicon/Makefile create mode 100644 drivers/soc/hisilicon/kunpeng_hccs.c create mode 100644 drivers/soc/hisilicon/kunpeng_hccs.h