[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 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: Fri, 29 Aug 2025 16:06:24 +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=WAB47z1uuBIE2JzTvdTFBqibyuGo+r3x71Man4KXMUo=; b=Wu3bdIF+oRhhMNpGn1PbBEI2wyX88HLX4CNmvW+9IVa35B+K9EKpVrzWYnZa4V1ZAUEFEmN2FVvLYrVvKfBfbEsOs+80Nr6M6RvQHLyvBKAvsPJ26+PxrVA+uQnc2BZ2/liy6Y8xBO22TVaksU0haumLUj+74b8+XN+0jgsiiYVCAzhqIuGF4dz5Lyj1rbx9CsNec/bVis7tEAb1oyzj8ja3Z+ZJRExlIMF8bQMCe0GK6BBIfmFUaNAJI8ruxHEKcklpAP5yVzqw2x8URtqiskp995qS3aGkNgy5WrLlaRH1LyeCCG4QwdjV59urnZbBDflIVoIp4YtOKr0k92c08Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NmV4x1G7CVIAqUf59F15xmoOesBe0tiaRSS4BTyUcopNs7Or7MabF/+XP7MkZXx+nWGyTWIL5p8CVj0uAph/41decQnPu+MC/uRNll2sMBwrhFVd/yj1BMwHhpfXSsAoDquS13eNQ05wI6L2WB1fiWMXgGftqUKPku0VrnUyX8LBaRam5E3C+NbXMWfWrh+30QmUQC/lfEC64Mav4Q6U/RdjRr03N6pVLcfbJPoO5V/VSEJX17H6EBBRgln8EY5Iv5bN5dynRG0vzT+Ym5/WpB8aHftgOkeGQvKI7uwljZcD7PtBaNeZyGLBE0rssNJY6sZ99/h7LIN1kuMEUkja9A==
- 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: Fri, 29 Aug 2025 16:06:29 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcGP7eN+yGlYwKSkircjBNqV5JFQ==
- Thread-topic: [PATCH v5 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 V5:
- no changes
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 9469c9d08c..260ee64cca 100644
--- a/xen/arch/arm/gic.c
+++ b/xen/arch/arm/gic.c
@@ -342,7 +342,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
|