mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-06-12 22:31:45 +01:00
lib: sbi_mpxy: Enable MPXY channel MSI availability determination
Use sbi_irqchip_find_device_by_caps() to determine MSI availability for each MPXY channel based on MSI controller presence in the system instead of unconditionally disabling it. Signed-off-by: David E. Garcia Porras <david.garcia@aheadcomputing.com> Link: https://lore.kernel.org/r/20260608125257.3220114-3-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
committed by
Anup Patel
parent
8570b93844
commit
d0ae6a91ff
+4
-4
@@ -13,6 +13,7 @@
|
|||||||
#include <sbi/sbi_hart.h>
|
#include <sbi/sbi_hart.h>
|
||||||
#include <sbi/sbi_hart_protection.h>
|
#include <sbi/sbi_hart_protection.h>
|
||||||
#include <sbi/sbi_heap.h>
|
#include <sbi/sbi_heap.h>
|
||||||
|
#include <sbi/sbi_irqchip.h>
|
||||||
#include <sbi/sbi_platform.h>
|
#include <sbi/sbi_platform.h>
|
||||||
#include <sbi/sbi_mpxy.h>
|
#include <sbi/sbi_mpxy.h>
|
||||||
#include <sbi/sbi_scratch.h>
|
#include <sbi/sbi_scratch.h>
|
||||||
@@ -255,11 +256,10 @@ static int domain_mpxy_state_data_setup(struct sbi_domain *dom,
|
|||||||
return SBI_ENOMEM;
|
return SBI_ENOMEM;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: Proper support for checking msi support from
|
* TODO: Proper support for checking sse support from
|
||||||
* platform. Currently disable msi and sse and use
|
* platform. Currently disable sse and use polling
|
||||||
* polling
|
|
||||||
*/
|
*/
|
||||||
ms->msi_avail = false;
|
ms->msi_avail = !!sbi_irqchip_find_device_by_caps(SBI_IRQCHIP_CAPS_MSI, NULL);
|
||||||
ms->sse_avail = false;
|
ms->sse_avail = false;
|
||||||
|
|
||||||
sbi_mpxy_shmem_disable(ms);
|
sbi_mpxy_shmem_disable(ms);
|
||||||
|
|||||||
Reference in New Issue
Block a user