[PATCH 0/3] mailbox: pcc: Improve completion handling and validation
Sudeep Holla <[email protected]>
| Newsgroups | org.kernel.vger.linux-acpi,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jassi, This series addresses three issues in the PCC mailbox controller which are on the list for a while and discussed/reviewed. Please pick them for v7.3 or let me know if you prefer pull request. First, notify clients through their receive callback when a command completes through polling, matching the interrupt-driven completion path. Second, centralize PCC shared memory signature checking in the mailbox controller. Invalid signatures are reported without rejecting otherwise working firmware, while mappings too small to contain a signature remain fatal. Finally, fix a race where a fast platform can signal command completion before the channel is marked in use, causing a shared interrupt to be ignored and the command to time out. Publish the channel state before ringing the doorbell and use READ_ONCE()/WRITE_ONCE() for the lockless flag accesses. Regards, Sudeep Huisong Li (1): mailbox: pcc: Fix command timeout due to missed interrupt Sudeep Holla (2): mailbox: pcc: Notify clients on polled completion mailbox: pcc: Check shared memory signature on request drivers/mailbox/pcc.c | 85 +++++++++++++++++++++++++++++++++---------- 1 file changed, 66 insertions(+), 19 deletions(-) -- 2.43.0