diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2021-09-17 15:33:49 +0200 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2021-10-30 05:46:38 +0200 |
commit | 0f2591e21b2e85c05e2aa74d4703189fd3a57526 (patch) | |
tree | 8927965fb319c552d8c5b2c336a4b2b6fd5210b5 /drivers/acpi/cppc_acpi.c | |
parent | mailbox: pcc: Consolidate subspace doorbell register parsing (diff) | |
download | linux-0f2591e21b2e85c05e2aa74d4703189fd3a57526.tar.xz linux-0f2591e21b2e85c05e2aa74d4703189fd3a57526.zip |
mailbox: pcc: Add pcc_mbox_chan structure to hold shared memory region info
Currently PCC mailbox controller sets con_priv in each channel to hold
the pointer to pcct subspace entry it corresponds to. The mailbox user
will then fetch this pointer from the channel descriptor they get when
they request for the channel. Using that pointer they then parse the
pcct entry again to fetch all the information about shared memory region.
In order to remove individual users of PCC mailbox parsing the PCCT
subspace entries to fetch same information, let us consolidate the same
in pcc mailbox controller by parsing all the shared memory region
information into a structure that can also hold the mbox_chan pointer it
represent.
This can then be used as main PCC mailbox channel pointer that we can
return as part of pcc_mbox_request_channel instead of standard mailbox
channel pointer.
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions