diff options
author | Huisong Li <lihuisong@huawei.com> | 2023-08-01 14:38:26 +0800 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-09-11 10:31:17 +0100 |
commit | 60c40b06fa68694dd08a1a0038ea8b9de3f3b1ca (patch) | |
tree | adc080b25859ab65545b5c8a047a724bd475590b /include/acpi/pcc.h | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) | |
download | lwn-60c40b06fa68694dd08a1a0038ea8b9de3f3b1ca.tar.gz lwn-60c40b06fa68694dd08a1a0038ea8b9de3f3b1ca.zip |
mailbox: pcc: Add support for platform notification handling
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>
Diffstat (limited to 'include/acpi/pcc.h')
0 files changed, 0 insertions, 0 deletions