Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3150573rdh; Thu, 28 Sep 2023 04:23:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHK1hILlzcnYWa+dy1gGPKmFMi0dEJlvnWnwwe+dU+vd1UUeEBbp4Z4MixK7PIoP2PUu+5I X-Received: by 2002:a05:6a21:4841:b0:161:76a4:4f6e with SMTP id au1-20020a056a21484100b0016176a44f6emr699454pzc.32.1695900199963; Thu, 28 Sep 2023 04:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900199; cv=none; d=google.com; s=arc-20160816; b=dYsQVf2VlbWXDIALBy1VUIvZlGpNfPiTrg32YoCcXSNuci90X2Hr4hnFaBiGP0PYlx 5l8YEjYqk4lhGGnPSUBxdpx4jJYstvbsi3/TBt6uwQZIM/frtfQ0sfTvHjudRAjTWqZW nyW7Gor2adD6kOd5S9z9ttt/LXVNWnxcFukMNGZGgE+PZao5N4X1V7bBZHX6fUOkulsW lfWVc5UxtNFVRCRY6ep3cXYKamH1lK7bNYH6D/gmWPUxfCJKxzEBZsSaQtjj8ZYM+3Pc N/N2tPTLscim8GbgqtFQ6x0LNYRGq66FHMWLBzhZW3OJQtbxHoiONmQzpjbvrnCfB0Dg v3MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fBegXaRnegBdDp71BxkCexmn/aZ0mOANMy8JgfxKYzI=; fh=pRtgzXP6Rso1AUSuokEUabX6FMaP+1oYwxB8KL/wA6A=; b=U2uXGmqZfLH6OY89Jt9sS1pXt019BwyPSB86srxAfOvgOeg8P/TCLst4e7ljF0Osl/ HJscsQ0hkdeghzxNeIovFJ3n1neG2GW81rzKHZ6/MeblITcLHD5s4YAZzRII6m4WLcbd evs9SVSXSyKh+W5UIFha27t3mGDCOD5B0XMBGPQToA5jlUweEkvKtg3RXnf1wy8ZYPmZ jltD/ccIE9qQpIESueh0Ykzsv5U1UGc6Etr79kHLx1uRZp2BM+ChSobCctOY5A4nQ145 3K/ux1cjerLCA7bYmtkZZqlXBfiaL3eZQ7Ur4g/iVxLpwNqdTAA5ju17I67TCtIFn/S3 JOlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id n3-20020a170903404300b001b8921fbd87si16548805pla.490.2023.09.28.04.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0F0D282514AD; Thu, 28 Sep 2023 04:17:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231822AbjI1LRf (ORCPT + 99 others); Thu, 28 Sep 2023 07:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbjI1LQu (ORCPT ); Thu, 28 Sep 2023 07:16:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9CA742B9C3; Thu, 28 Sep 2023 04:12:21 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2C9D51FB; Thu, 28 Sep 2023 04:12:34 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6BFE93F5A1; Thu, 28 Sep 2023 04:11:54 -0700 (PDT) Date: Thu, 28 Sep 2023 12:11:52 +0100 From: Sudeep Holla To: "lihuisong (C)" Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Andi Shyti , Jean Delvare , Guenter Roeck Subject: Re: [PATCH 1/3] ACPI: PCC: Add PCC shared memory region command and status bitfields Message-ID: <20230928111152.cctl3m5rwtopyg2g@bogus> References: <20230926-pcc_defines-v1-0-0f925a1658fd@arm.com> <20230926-pcc_defines-v1-1-0f925a1658fd@arm.com> <20230927135909.6rssuywmj4k3odex@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:17:55 -0700 (PDT) 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 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. 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. -- Regards, Sudeep [1] https://git.kernel.org/sudeep.holla/l/pcc_defines