aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/cppc
diff options
context:
space:
mode:
authorAlvin Chang <alvinga@andestech.com>2025-03-25 15:13:14 +0800
committerAnup Patel <anup@brainfault.org>2025-04-21 11:35:44 +0530
commitfda0742e76ff270b03af9ef375847698bec59cfe (patch)
treee22561a199b83e793a3674b5368c76a56ebb9679 /lib/utils/cppc
parentd2166a9d4045013654b04a1a46ab43fdb7dabb95 (diff)
downloadopensbi-fda0742e76ff270b03af9ef375847698bec59cfe.zip
opensbi-fda0742e76ff270b03af9ef375847698bec59cfe.tar.gz
opensbi-fda0742e76ff270b03af9ef375847698bec59cfe.tar.bz2
lib: sbi_mpxy: Change MPXY state as per-domain data
OpenSBI supports multiple supervisor domains run on same platform. When these supervisor domains want to communicate with OpenSBI through MPXY channels, they will allocate MPXY shared memory from their own memory regions. Therefore, the MPXY state data structure must be per-domain and per-hart data structure. This commit registers per-domain MPXY state data in sbi_mpxy_init(). The original MPXY state allocated in scratch region is also removed. We also replace sbi_scratch_thishart_offset_ptr() macro as new sbi_domain_mpxy_state_thishart_ptr() macro which gets MPXY state from per-domain data. Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Yu-Chien Peter Lin <peter.lin@sifive.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Link: https://lore.kernel.org/r/20250325071314.3113941-1-alvinga@andestech.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions