Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3731440rwb; Mon, 7 Aug 2023 19:59:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMuK3PTZOSyH2ItTW9EWp8odqzShEcCoscDbUiDI3TtGFMl3BWFopzE2e7f4D6RvWM/1wT X-Received: by 2002:a19:6703:0:b0:4fe:db6:cb3a with SMTP id b3-20020a196703000000b004fe0db6cb3amr6375789lfc.22.1691463575683; Mon, 07 Aug 2023 19:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691463575; cv=none; d=google.com; s=arc-20160816; b=e6qJGEptkwrXm2ag1N1DOyjlHwFvu89ZqI+JLLBO+IJpSvArD/lGWITxdgiE6CtGJH uAkVSEY+6fTh8xsuCg1s3Ou5QZ5TA2XCc3Y8QaTz5UaFhfXAx7j61MGe1AemTHEQLYD4 UpNzq3rjrHGY6Tucxmm7/7MV5ONpVNzL53FNdpWYYRel9O78zb9jc78wOWCdGDafV9lO QjSpihuNXhznCv1cPpvakIl2FQpptyun3L6E3o1Y2b8CP/L85HGHeMEzsuFFHa82Afch LifzSA0akMwuSaUZ8GBWdY0pbij05siwWOYV/uv+6DjA15zVxJEZ2OMmYoAt/KHnxTUc Nbdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xzpQUMTGI2oGmMm3D10TKs8kw7aWz8ne9ybU8HquYkQ=; fh=8HEHyvuf/4XYSPbYmlyUomvpLq6nW/DMY35cCPHO96c=; b=U49Etq0LdobaJ43koLYwlu5IW3mSGXbjal0NLMpKcGE6RS6BXLTW6+LQkOK0CoLvvp Zrr7uEDt+gNqiA/NZCKtfncptFpdhqsXKD933pVUeFSsx2GzSXZIV9ZEKMcbY0s+MvRX vkYqU4rMYwWi71fnncqUq4DlwL9lnW6btX7Cui6PH08+I7GzuHYv3HhIXDBdlzBdBX6i z653skm9Q5orM63ts2Gx0KaPSDlCDE4N5W2fv8S4F9eGRqMBn8nRqMYSiidSuAg83Ddc IdJ6veR/UUskasiJhU5ruNgUFPq4+/9TKuxwZ7sCX/uBCtLLyT93jrgX9ZOc3NauvHwc /njw== 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=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a05640206c500b0051e0d77a0fasi5865755edy.647.2023.08.07.19.59.10; Mon, 07 Aug 2023 19:59:35 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230259AbjHHCja (ORCPT + 99 others); Mon, 7 Aug 2023 22:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjHHCj3 (ORCPT ); Mon, 7 Aug 2023 22:39:29 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B0A1E5A for ; Mon, 7 Aug 2023 19:39:28 -0700 (PDT) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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 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 -- 2.33.0