]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mailbox: pcc: Check before sending MCTP PCC response ACK
authorAdam Young <admiyo@os.amperecomputing.com>
Wed, 20 Nov 2024 19:02:14 +0000 (14:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:04:03 +0000 (20:04 +0100)
commitd6855f0604435202c9183b9838be1200b66cccfa
treec53d7f78bf0e014aa685702e8a91d85905c10503
parent67f21fdd35a90cf9db8be7f3ae8703a191e95b6e
mailbox: pcc: Check before sending MCTP PCC response ACK

[ Upstream commit 7f9e19f207be0c534d517d65e01417ba968cdd34 ]

Type 4 PCC channels have an option to send back a response
to the platform when they are done processing the request.
The flag to indicate whether or not to respond is inside
the message body, and thus is not available to the pcc
mailbox.

If the flag is not set, still set command completion
bit after processing message.

In order to read the flag, this patch maps the shared
buffer to virtual memory. To avoid duplication of mapping
the shared buffer is then made available to be used by
the driver that uses the mailbox.

Signed-off-by: Adam Young <admiyo@os.amperecomputing.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/pcc.c
include/acpi/pcc.h