diff mbox series

[1/3] virt/vgic: Increase number of DeviceIDs to 17

Message ID 20230613150804.20595-1-laurentiu.tudor@nxp.com (mailing list archive)
State New, archived
Headers show
Series [1/3] virt/vgic: Increase number of DeviceIDs to 17 | expand

Commit Message

Laurentiu Tudor June 13, 2023, 3:08 p.m. UTC
From: Bharat Bhushan <Bharat.Bhushan@nxp.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@nxp.com>
---
 arch/arm64/kvm/vgic/vgic-its.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Greg Kroah-Hartman June 13, 2023, 3:11 p.m. UTC | #1
On Tue, Jun 13, 2023 at 06:08:01PM +0300, laurentiu.tudor@nxp.com wrote:
> From: Bharat Bhushan <Bharat.Bhushan@nxp.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@nxp.com>
> ---
>  arch/arm64/kvm/vgic/vgic-its.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Is there a reason you didn't cc: any of the relevant maintainers for
this change?  Please use scripts/get_maintainer.pl on your patch to
determine who is responsible for it (hint, not me!)

thanks,

greg k-h
diff mbox series

Patch

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)