Anup Patel
f909590830
lib: utils/mpxy: Add domain parameter to setup_group() callback
...
The MPXY channels can be domain specific so the setup_group() callback
must know which domain the MPXY RPMI instance is associated with.
Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com >
Reviewed-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com >
Tested-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com >
Link: https://lore.kernel.org/r/20260923032359.4041876-10-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2026-10-25 14:30:46 +05:30
Anup Patel
89b3afb16f
lib: utils/mpxy: Simplify fdt_mpxy_rpmi.h by moving things to fdt_mpxy_rpmi.c
...
Currently, the fdt_mpxy_rpmi.h has lot things which are not used by
any of MPXY RPMI drivers so simplify fdt_mpxy_rpmi.h by moving such
things to fdt_mpxy_rpmi.c.
Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com >
Reviewed-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com >
Tested-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com >
Link: https://lore.kernel.org/r/20260923032359.4041876-7-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2026-10-25 14:30:46 +05:30
Anup Patel
0298a2c343
lib: utils/mpxy: Rename fdt_mpxy_rpmi_mbox to fdt_mpxy_rpmi
...
The common fdt_mpxy_rpmi_mbox driver is being upgraded to support emulated
MPXY channels hence drop term "mbox" from fdt_mpxy_rpmi_mbox everywhere.
Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com >
Reviewed-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com >
Tested-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com >
Link: https://lore.kernel.org/r/20260923032359.4041876-2-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2026-10-25 14:30:46 +05:30
Samuel Holland
51fe6a8bc9
lib: utils: Use SBI_DOMAIN_MMIO to check MMIO device permissions
...
Drivers or platforms may create memory regions with the MMIO flag set
that contain S-mode-accessible MMIO devices. This is strictly correct
and should be allowed, along with the existing default case of
S-mode-accessible MMIO devices appearing in non-MMIO memory regions.
When passed SBI_DOMAIN_MMIO, sbi_domain_check_addr() will perform the
correct set of permission checks.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com >
Reviewed-by: Yu-Chien Peter Lin <peter.lin@sifive.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
Link: https://lore.kernel.org/r/20251121193808.1528050-3-samuel.holland@sifive.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-12-08 16:47:55 +05:30
Rahul Pathak
c2671bb69f
lib: rpmi: Make RPMI drivers as non-experimental
...
As RPMI v1.0 specification is frozen, disable the
experimental tag for such RPMI drivers.
Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
Link: https://lore.kernel.org/r/20250618053854.2577299-2-rpathak@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-06-24 08:42:27 +05:30
Anup Patel
f3cce5b97f
lib: utils/mpxy: Remove p2a_db_index from RPMI system MSI attributes
...
The discovery of P2A doorbell system MSI index is now through RPMI
shared memory DT node so remove p2a_db_index from RPMI system MSI
attributes and access it as a mailbox channel attribute.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Link: https://lore.kernel.org/r/20250512083827.804151-5-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-05-20 11:10:35 +05:30
Anup Patel
61abd975f2
lib: utils: Add MPXY RPMI mailbox driver for System MSI service group
...
The supervisor software can directly receive most of the system MSIs
except P2A doorbell and MSIs preferred to be handled in M-mode.
Add MPXY RPMI mailbox client driver for the System MSI service group.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
2025-02-13 11:10:03 +05:30