[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230613150804.20595-1-laurentiu.tudor@nxp.com>
Date: Tue, 13 Jun 2023 18:08:01 +0300
From: laurentiu.tudor@....com
To: gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Cc: ioana.ciornei@....com, Bharat Bhushan <Bharat.Bhushan@....com>
Subject: [PATCH 1/3] virt/vgic: Increase number of DeviceIDs to 17
From: Bharat Bhushan <Bharat.Bhushan@....com>
FSL-MC bus devices uses device-ids from 0x10000 to 0x20000.
So to support MSI interrupts for mc-bus devices we need
vgi-ITS device-id table of size 2^17 to support deviceid
range from 0x10000 to 0x20000.
Signed-off-by: Bharat Bhushan <Bharat.Bhushan@....com>
---
arch/arm64/kvm/vgic/vgic-its.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kvm/vgic/vgic-its.c b/arch/arm64/kvm/vgic/vgic-its.c
index 750e51e3779a..cddb54ba6e13 100644
--- a/arch/arm64/kvm/vgic/vgic-its.c
+++ b/arch/arm64/kvm/vgic/vgic-its.c
@@ -248,7 +248,7 @@ static struct its_ite *find_ite(struct vgic_its *its, u32 device_id,
#define GIC_LPI_OFFSET 8192
#define VITS_TYPER_IDBITS 16
-#define VITS_TYPER_DEVBITS 16
+#define VITS_TYPER_DEVBITS 17
#define VITS_DTE_MAX_DEVID_OFFSET (BIT(14) - 1)
#define VITS_ITE_MAX_EVENTID_OFFSET (BIT(16) - 1)
--
2.17.1
Powered by blists - more mailing lists