Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3158544rdh; Thu, 28 Sep 2023 04:39:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvPaW27r5eipfde6+bgUPqaULZxXvQGo+x6pUnAA9oUG/1TU3J6ZFZUTVP0Q8RajzZH/nC X-Received: by 2002:a9d:6a50:0:b0:6bc:b80c:bd53 with SMTP id h16-20020a9d6a50000000b006bcb80cbd53mr852232otn.38.1695901140485; Thu, 28 Sep 2023 04:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695901140; cv=none; d=google.com; s=arc-20160816; b=jT+PW+wDMuzlgk+pQfyhE9y/J6NNRUBT8f6VOzDfIkKRXQfAHxQ5RkHv9wKxu4CUF8 OYHRnoDpaNjC2GpLHNqNXoKYeztJiXNTUbOy2mTu6XJ8ZBGnxHGU3OogGu/KxxYN+lRY ZRf/PGrmaOtC4ink4J5MVSd568htTEzrhhd51Lc+1tIO79go5Nkbv0DkgwS4696zdrk3 IB9KdwTMEQw872cIeVdwR2vVjPbqk4wH6i+yLMN8qEIpzoOd95OFAFEy5EVfcApYqDmX +SAm4xpEN2Z2LhWmIBfmsGKyI0QHzVo2S1iIdIFY96LEH4T+kVJBga9/3XxY6ZUUSMWH O/Zg== 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:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=hb3d05iv894lNcOkn1iNXWGJpsfAQV58CSMTuGixCIk=; fh=OGPR5Ur9zobvdl5gBla/lpm6mMRukRXYyt/6fn3woGg=; b=n1EOc9GKb1e2GKCx2fBTZVW4IWJqq494mIkItyq9vPeURXNjFylPNLZJrokiGL2dnk lklBYgd/REadFPIt/7RBh3K+BVyZtvDPbsqLEjBjtW6R5mVGhqtEtUreGdTJIvkNYdt9 SA20FumFtBYJyofEnxxiB19b1Dlc1IL2lQPbtRBbsM/J5gAvVI6kp3/KfipuyQz9kMP9 KXY2FOd9LvQ+ZxnUNuayg7+2meCPGz7WYho7NmeGZDoGwOj/3whzJHx6figQqmISCHbQ x0IuDGnt0KuIGeyBDw+jFIko0XS+36159SNE9E5e3KDIJG5+4k8+Pl0IC2RZIMkub88S hj0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id r14-20020a63440e000000b0056fbf85c743si17918250pga.790.2023.09.28.04.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9457081F4736; Thu, 28 Sep 2023 04:29:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231954AbjI1L2y (ORCPT + 99 others); Thu, 28 Sep 2023 07:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbjI1L2t (ORCPT ); Thu, 28 Sep 2023 07:28:49 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C4829C; Thu, 28 Sep 2023 04:28:47 -0700 (PDT) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RxB3y215mzVl7K; Thu, 28 Sep 2023 19:25:34 +0800 (CST) Received: from [10.67.121.59] (10.67.121.59) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 28 Sep 2023 19:28:44 +0800 Message-ID: <51c2ebb4-5635-34ba-b5aa-cdfa5326dba8@huawei.com> Date: Thu, 28 Sep 2023 19:28:43 +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 1/3] ACPI: PCC: Add PCC shared memory region command and status bitfields To: Sudeep Holla CC: , , , , "Rafael J. Wysocki" , Andi Shyti , Jean Delvare , Guenter Roeck References: <20230926-pcc_defines-v1-0-0f925a1658fd@arm.com> <20230926-pcc_defines-v1-1-0f925a1658fd@arm.com> <20230927135909.6rssuywmj4k3odex@bogus> <20230928111152.cctl3m5rwtopyg2g@bogus> From: "lihuisong (C)" In-Reply-To: <20230928111152.cctl3m5rwtopyg2g@bogus> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.59] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm000004.china.huawei.com (7.193.23.18) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:29:13 -0700 (PDT) 在 2023/9/28 19:11, Sudeep Holla 写道: > On Thu, Sep 28, 2023 at 11:49:25AM +0800, lihuisong (C) wrote: >> 在 2023/9/27 21:59, Sudeep Holla 写道: >>> On Wed, Sep 27, 2023 at 10:07:15AM +0800, lihuisong (C) wrote: > [...] > >>>>> +/* Generic Communications Channel Shared Memory Region */ >>>>> +#define PCC_SIGNATURE 0x50424300 >>>> Why is this signature 0x50424300? >>> It is as per the specification. >>> >>>> In ACPI spec, this signature is all 0x50434303. >>> No, not exactly. It is just an example. >>> The PCC signature - The signature of a subspace is computed by a bitwise-or >>> of the value 0x50434300 with the subspace ID. For example, subspace 3 has >>> signature 0x50434303 >> Sorry for my mistake. I know this. >> I mean, why doesn't the following macro follow spec and define this >> signature as 0x504*3*430. >> "#define PCC_SIGNATURE **0x504*2*4300*"* >> Because it seems that all version of ACPI spec is 0x5043430. > Sorry my mistake. Stupidly the existing drivers have it wrong and I just > copied them without paying much attention. I will fix it up. It must be > 0x50434300 instead of 0x50424300. If you have no other comments, can you They are very similar.???? > please ack v2 patch 4/4 changing soc kunpeng_hccs driver. I will fixup > the PCC_SIGNATURE and send it as part of my PR to Rafael. ok > > Refer [1] for the change in PCC_SIGNATURE, sorry for missing the point. I > was confident that the existing code is correct :), but I am wrong. >