From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 076F6C77B7A for ; Wed, 24 May 2023 09:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbjEXJhd (ORCPT ); Wed, 24 May 2023 05:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjEXJhD (ORCPT ); Wed, 24 May 2023 05:37:03 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91DF2A1 for ; Wed, 24 May 2023 02:37:01 -0700 (PDT) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QR5Z61K5gz18LhL; Wed, 24 May 2023 17:32:30 +0800 (CST) Received: from [10.67.103.231] (10.67.103.231) 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.23; Wed, 24 May 2023 17:36:58 +0800 Message-ID: Date: Wed, 24 May 2023 17:36:58 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v2 1/2] soc: hisilicon: Support HCCS driver on Kunpeng SoC To: Sudeep Holla CC: , , , , , , , , , , References: <20230424073020.4039-1-lihuisong@huawei.com> <20230522072211.8894-1-lihuisong@huawei.com> <20230522072211.8894-2-lihuisong@huawei.com> <20230523093922.f2y4wrz3vkzi7kmw@bogus> <928a893b-6596-8d40-ce0e-80059a363d11@huawei.com> <20230523134135.jkkhcwfihflp775m@bogus> From: "lihuisong (C)" In-Reply-To: <20230523134135.jkkhcwfihflp775m@bogus> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.231] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2023/5/23 21:41, Sudeep Holla 写道: > On Tue, May 23, 2023 at 07:57:42PM +0800, lihuisong (C) wrote: >> 在 2023/5/23 17:39, Sudeep Holla 写道: >>> On Mon, May 22, 2023 at 03:22:10PM +0800, Huisong Li wrote: >>>> The Huawei Cache-Coherent System (HCCS) is a bus protocol standard >>>> for ensuring cache coherent on HiSilicon SoC. The performance of >>>> the application may be affected if some hccs ports are in non-full >>>> lane status, have a large number of CRC errors and so on. >>>> >>>> This driver provides the query interface of the health status and >>>> port information of HCCS on Kunpeng SoC. >>>> >>>> Signed-off-by: Huisong Li >>>> --- >>>> MAINTAINERS | 6 + >>>> drivers/soc/Kconfig | 1 + >>>> drivers/soc/Makefile | 1 + >>>> drivers/soc/hisilicon/Kconfig | 19 + >>>> drivers/soc/hisilicon/Makefile | 2 + >>>> drivers/soc/hisilicon/kunpeng_hccs.c | 1287 ++++++++++++++++++++++++++ >>>> drivers/soc/hisilicon/kunpeng_hccs.h | 196 ++++ >>>> 7 files changed, 1512 insertions(+) >>>> 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 >>>> >>>> diff --git a/MAINTAINERS b/MAINTAINERS >>>> index eddbc48c61e9..fe0e796e8445 100644 >>>> --- a/MAINTAINERS >>>> +++ b/MAINTAINERS >>>> @@ -9399,6 +9399,12 @@ S: Maintained >>>> W: http://www.hisilicon.com >>>> F: drivers/spi/spi-hisi-sfc-v3xx.c >>>> +HISILICON KUNPENG SOC HCCS DRIVER >>> s/HCCS/HCCS INFO or QUERY/ ? >> From the current features, what you suggest is suitable. >> But this driver will support to the setting feature. > Ah OK, I wasn't aware of that, in that case it is fine to keep it as is > and add comment about future feature expansions so that the name makes It's not suitable to add it in advance. > more sense them. I assumed it is more a query interface. Yes, most of them are query interfaces. > > I also assume the settings with just control performance and is fully > safe and stability of the system is taken care. Yes, it will has an impact on performance and power consumption, but not functionality. > > [...] > >>>> + >>>> +/* PCC defines */ >>>> +#define HCCS_PCC_SIGNATURE_MASK 0x50434300 >>>> +#define HCCS_PCC_STATUS_CMD_COMPLETE BIT(0) >>> I am not really sure if we keep duplicating this. I will try to cook up >>> a patch consolidating these. >> Yes, these info is better placed in a global header. >> Do I need to do this in this series? >> Or do not modify it, and then process all related code in your patch. > Fair enough, we can do that later. I don't want to block this for that reason. ok, thanks. will send v3 ASAP. >