2023-06-13 15:34:52

by Laurentiu Tudor

[permalink] [raw]
Subject: [PATCH 1/3] virt/vgic: Increase number of DeviceIDs to 17

From: Bharat Bhushan <[email protected]>

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 <[email protected]>
---
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



2023-06-13 15:35:35

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH 1/3] virt/vgic: Increase number of DeviceIDs to 17

On Tue, Jun 13, 2023 at 06:08:01PM +0300, [email protected] wrote:
> From: Bharat Bhushan <[email protected]>
>
> 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 <[email protected]>
> ---
> 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