[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v6 07/12] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>
  • Date: Wed, 3 Sep 2025 14:30:08 +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=4P7Skptts/tLyCoYlyO9TM/LWsioRSC96rqr3DpuzSM=; b=viePGEdrb8D1Rf/2lhRxeUkhx9lSLgF9HyyraOeUJk0T4idjY1Ro0N2AZs87ZCcpnaaKiIikzF19cfbDJ8EI6eG3yxk6+kbkaAyL/3bPOSY8hCBBQvaWk5+Ldi2JiqkE2DgUZE+iWtnawZINyq8vHO8S02Amgvljldyt9FKwdqXiOPQlmuKAuGwF2KSYgoCgIbHSW2qLJtzf8Wm3DFQ0uQHPnr3UobRecw5Px/MWmKs9gUH2jWHbNddiM4v64J4WmaT/GRXmBymnHPkvrQra1j3+R9dvapGw7PtcOEEgbscIFC/3iJu0QWHtv3kw84ER1faR4uDuPaVzV38X2s9EHA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LPVIcZMwCcxDkz+QtG7QO2rD1Upd9K6ycftXoXiNcVEMqggAhJJUVbh7swQjaH98IN3XY0/eZvtIwr8ZOrYmOKlnIp543DvXS+mqA0ee1aegjbbhEBJjvSTOZrgqA97VxNqCxqWmopI4dU5s0HbtWLasuOx6RHFFXesu7YDJ8pZqGgLo+WrTe0NiqDh0eIe3slkYaPqMrgOfHAAz0a08TYLQdOgHcHo+rnydTmcY+6GgDbMFMUnRax01OWq9HGQkzdaKLp+pXo4j5EhrAqIFbYrNPInDUTszzBdjU9Kt1i8gOsANbsjRPQQXlHrId+4gSPe7yJcV80/Ksi+WdQTb4Q==
  • 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>
  • Delivery-date: Wed, 03 Sep 2025 14:31:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcHN8/Ah6J9SF+q06s1wKlnTLbDw==
  • Thread-topic: [PATCH v6 07/12] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing

To properly deactivate physical eSPI routed to a domain and allow them to
be retriggered after the initial trigger, the LR needs to be updated. The
current implementation ignores interrupts outside the range specified by
the mask 0x3FF, which only covers IRQ numbers up to 1023. To enable
processing of eSPI interrupts, this patch updates the mask to 0x1FFF.

Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@xxxxxxxx>

---
Changes in V6:
- updated mask to 0x1fff to avoid confusion
- updated commit message
- removed reviewed-by as new changes requires additional confirmation
  from reviewers

Changes in V5:
- no changes

Changes in V4:
- added reviewed-by from Volodymyr Babchuk

Changes in V3:
- no changes

Changes in V2:
- remove unnecessary CONFIG_GICV3_ESPI ifdef guard
---
 xen/arch/arm/include/asm/gic_v3_defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/include/asm/gic_v3_defs.h 
b/xen/arch/arm/include/asm/gic_v3_defs.h
index 3370b4cd52..c373b94d19 100644
--- a/xen/arch/arm/include/asm/gic_v3_defs.h
+++ b/xen/arch/arm/include/asm/gic_v3_defs.h
@@ -211,7 +211,7 @@
 #define ICH_LR_VIRTUAL_SHIFT         0
 #define ICH_LR_CPUID_MASK            0x7
 #define ICH_LR_CPUID_SHIFT           10
-#define ICH_LR_PHYSICAL_MASK         0x3ff
+#define ICH_LR_PHYSICAL_MASK         0x1fff
 #define ICH_LR_PHYSICAL_SHIFT        32
 #define ICH_LR_STATE_MASK            0x3
 #define ICH_LR_STATE_SHIFT           62
-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.