[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 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, 27 Aug 2025 18:24:18 +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=jtL0A0E37mr33YnP99iRQLje8SLn7K4xvKHMnjNefTQ=; b=QbHAg8rGQBGD7hSe3/SV75Lh3Z4Nm6dtz95LIu/y+sCXCypEJgCGnyhYaLSLuPmZPv9AHXa3XH87WllB41QqcFrjxCecPt35B63DLGyJYoLlQz/+w5RGos0jJPBQWC2uxvIYOXxm3rRblx+Nt6agbtC8w9UkSSkAPI5BhYo876ITu9Oq3okvBp4/xRs4FktJodGdt6CDirsUcVe+w5i/31pTAxYW4d/GheZk8T0pz0uy7COXCr5OCfklYOZTs2RODCPyiuE0yUw17vUcd3vs+b346+V9JZkHZPywBdrwSvbuLvAKh1nbsYfdvLBPMvuc9y1M68G3hA6lEoY/eMUnTg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=stRNwQiGfgmnifNR4o/pUG8P5CPOGAKq/dS/HjSNuhH2myIDMHglHFYmnn7VwWck2GG4ssevOECy3eng2qbiCDKvjF3WbiCvLMX00GTYMdLuzUdHZSbGqstJEp9dAtx+kQA9yHgKho4sP+nfbjY+fs/5pWLed2Zj1FOxTIdfFUxzd25K36bh5usWHEdBjaqhccSgy/WOrNJpW/rxRFRodySgjqSaLHSiwgS3FaA4ftW56416n4jxV6DvPUMp8pmlj2fkhiSRM8J7I4jNJTn1t9/YX/3sjsbBSu0baV+W15kzIOkeHCnT87BNRrkpdEZsv/n/Kbkr6oz5eXaYxSdCwA==
- 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:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcF3/M1ETcfpgi90idtTPd2WZvfg==
- Thread-topic: [PATCH v4 07/12] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing
To properly deactivate guest interrupts 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 0x13FF.
Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@xxxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
---
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 c10db9bd05..eedb7af1fe 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 0x13ff
#define ICH_LR_PHYSICAL_SHIFT 32
#define ICH_LR_STATE_MASK 0x3
#define ICH_LR_STATE_SHIFT 62
--
2.34.1
|