[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 06/12] xen/arm/irq: allow eSPI processing in the gic_interrupt function
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>
- Date: Wed, 27 Aug 2025 18:24:16 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pnzy15kpQUB2aljLQCGM3xkSvJVu3LwpRqowKjns4VU=; b=WbzwsnMHPyo416rotW7Ppf669zQHzYFnx8ZEj/jY1P3hnI/xQFDUA+NtGOoI1CCCnwtQBSGZJftSDUpMj89uUlKQQQADO6wVSYMKF78XcggyqdnlnEHwjqRo1/s4MeeJKBNTjj+hN+Q3bFeexn1RXZrMOkGFnytWy4uJaMlaGw1ruuK8SIJ9jgJytnhZ6WY7akZ5uF27M8P9jyb88uHhPB1frrpBqWEhb3gu3DvUbMTpnjT3UHLS5OzMDYGoVuifKWfa1mR7VysqS6Dw3vQdOD+Hgnray7TDDWSeUnFpHpWTULUNCZItPEobIcgDEhlGLw2rfkNwN4vop3iYdpeKiA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=caOTPuYbSmSZGNZz0sOkiN8aby/w/eVMiaspTw2yf0jydc1jQl9I5TWBmaTx7sc/gWg+j2IzFU/OnNqLxWcU5/t6M9I68GC87J+FAcn7GnsNE2sBtEAVGeG/dSFcA1/RIOG9/osDjyLWGK2INj4FG/ixp2ZcOEP+agvY2fYq6cFLzjyJBC7adWdxtDafT8+kf6IzOOte3XkpbIaYMhi7mxcZ3bMHD2T799SojUR5pDS8ynPXvcWF/x79348HDxJYTUBWI4pXn10R0wZB6EByq6k5nSua+UgH/eMevWRtKfw5j+2Ezh6HlnpoO3jcBbCPvtqr9Us8C5OGpma/tntEOw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: "olekstysh@xxxxxxxxx" <olekstysh@xxxxxxxxx>, Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Wed, 27 Aug 2025 18:24:22 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcF3/Loedl2G5iukGvdwDJKvr6zw==
- Thread-topic: [PATCH v4 06/12] xen/arm/irq: allow eSPI processing in the gic_interrupt function
The gic_interrupt function is the main handler for processing IRQs.
Currently, due to restrictive checks, it does not process interrupt
numbers greater than 1019. This patch updates the condition to allow
the handling of interrupts from the eSPI range.
Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@xxxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
---
Changes in V4:
- fixed commit message
- added reviewed-by from Volodymyr Babchuk
Changes in V3:
- no changes
Changes in V2:
- no changes
---
xen/arch/arm/gic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
index b88237ccda..634b77c987 100644
--- a/xen/arch/arm/gic.c
+++ b/xen/arch/arm/gic.c
@@ -341,7 +341,7 @@ void gic_interrupt(struct cpu_user_regs *regs, int is_fiq)
/* Reading IRQ will ACK it */
irq = gic_hw_ops->read_irq();
- if ( likely(irq >= GIC_SGI_STATIC_MAX && irq < 1020) )
+ if ( likely(irq >= GIC_SGI_STATIC_MAX && irq < 1020) || is_espi(irq) )
{
isb();
do_IRQ(regs, irq, is_fiq);
--
2.34.1
|