]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mailbox: pcc: Add support for platform notification handling
authorHuisong Li <lihuisong@huawei.com>
Tue, 1 Aug 2023 06:38:26 +0000 (14:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:12:42 +0000 (06:12 +0900)
commit030cc950ddee7d7e7d436740f040d55a5e2e507e
tree854b7ee94938b6f8bdf4587920228a6715cc80f7
parentcff5c84114edcfe30dd83a25006cd8b426a64458
mailbox: pcc: Add support for platform notification handling

[ Upstream commit 60c40b06fa68694dd08a1a0038ea8b9de3f3b1ca ]

Currently, PCC driver doesn't support the processing of platform
notification for type 4 PCC subspaces.

According to ACPI specification, if platform sends a notification
to OSPM, it must clear the command complete bit and trigger platform
interrupt. OSPM needs to check whether the command complete bit is
cleared, clear platform interrupt, process command, and then set the
command complete and ring doorbell to the Platform.

Let us stash the value of the pcc type and use the same while processing
the interrupt of the channel. We also need to set the command complete
bit and ring doorbell in the interrupt handler for the type 4 channel to
complete the communication flow after processing the notification from
the Platform.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/20230801063827.25336-2-lihuisong@huawei.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Stable-dep-of: ff0e4d4c97c9 ("mailbox: pcc: don't zero error register")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/pcc.c