Linux Power Management development
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@kernel.org>
To: "lihuisong (C)" <lihuisong@huawei.com>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sudeep Holla <sudeep.holla@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Jassi Brar <jassisinghbrar@gmail.com>,
	Guenter Roeck <linux@roeck-us.net>,
	linux-hwmon@vger.kernel.org, Andi Shyti <andi.shyti@kernel.org>,
	linux-i2c@vger.kernel.org,
	MyungJoo Ham <myungjoo.ham@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Chanwoo Choi <cw00.choi@samsung.com>,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH 0/6] ACPI/PCC: Preserve platform-populated PCC signatures
Date: Tue, 30 Jun 2026 11:49:45 +0100	[thread overview]
Message-ID: <20260630-loyal-gray-polecat-a68c0d@sudeepholla> (raw)
In-Reply-To: <10fb88e6-02f8-46b8-9665-db94a4035c5d@huawei.com>

On Tue, Jun 30, 2026 at 05:25:20PM +0800, lihuisong (C) wrote:
> Hi Sudeep,
> 
> On 6/28/2026 12:37 AM, Sudeep Holla wrote:
> > ACPI PCC shared memory layouts reserve the first dword for the PCC
> > signature. ACPI specification defines the signature as 0x50434300 ORed
> > with the PCC subspace ID, and ACPI 6.6 clarify that the signature is
> > populated by the platform and verified by OSPM.
> > 
> > This series centralizes PCC shared memory signature validation in the PCC
> > mailbox controller and stops PCC users from rewriting the signature before
> > each command. Clients that previously copied complete local PCC headers
> > now update only the mutable command/status/flags/length/payload fields.
> I am concerned that this may affect the functionality of drivers on some
> existed platforms.

One other option I was thinking is to not issue error but just log the error
message and let the client driver add that additional check if required.

> This largely depends on the implementation of the platform firmware.
> 

Sure. However I always expected it to be taken care by the platform, v6.6
just adds that clarification explicitly. It was never clear that the sender
or the OSPM needs to write that signature, so I disagree that it is platform
firmware dependent entirely. The clarification wouldn't have got added if
there was any disagreement on that fact.

> I think it's good for the signature to be filled in by the command initiator
> and then verified by the recipient, as this is how this field can serve its
> purpose.
> Otherwise, I really don't see what use it has.

Please get the spec updated accordingly, we can just change in the kernel
based on what we think is the best way to use it. It needs to be clearly
specified, otherwise it may cause issue for non-Linux OSVs.

-- 
Regards,
Sudeep

  reply	other threads:[~2026-06-30 10:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-27 16:37 [PATCH 0/6] ACPI/PCC: Preserve platform-populated PCC signatures Sudeep Holla
2026-06-27 16:37 ` [PATCH 4/6] devfreq: hisi_uncore: Preserve PCC shared memory signature Sudeep Holla
2026-06-30  9:25 ` [PATCH 0/6] ACPI/PCC: Preserve platform-populated PCC signatures lihuisong (C)
2026-06-30 10:49   ` Sudeep Holla [this message]
2026-07-01  7:38     ` lihuisong (C)
2026-07-02 10:21       ` Sudeep Holla
2026-07-06  9:02         ` lihuisong (C)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260630-loyal-gray-polecat-a68c0d@sudeepholla \
    --to=sudeep.holla@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=kyungmin.park@samsung.com \
    --cc=lihuisong@huawei.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=myungjoo.ham@samsung.com \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox