[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/10] 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: Thu, 24 Jul 2025 14:57:27 +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=13xW6NAu/Hl54Leov1ZDjFZO+2j6m3T/RL0iSeRSjvw=; b=q/A9pXzZdjaKqTj7r5ZjWEPDjiqmFnqDR0FtCsjt9ojJ0eK99LBmms3SUpshEwKk/dnrFnPRvIpQjgQWrNJ6rz6TBHSf4vcMyGneCE4/eHDjaUxi8DBiIJ8Ef17Mz9qaFB+o7WrSF0wB3ikak/vE2sraZto9xE9aFFK/af9vVdSP1jsGYoVoQR+jmis6FwBtC0FnxKDbaoe9YTs7sHHEr+DJn3mYlW+WYcHPER24bj8Kaxysaw651HoRQpGKxYof4MSq9eyd4smvXLhXGT0FC6/eaCBTk1UKBazvW6BiMbjDaPU8popjOimIwtliarcH640yhSDgrXay7UbThCgZTQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EJRP6EFh8OVcHlRe/QLoofA48RfVOp7nUL8lAdvqE/kMMD0q+Qh/ZaZAkwe77faL3kXHq9qhMx0OO8Y6vK4aK7LQayPIh8ncgjh0xy6MtGUXX6v1tgwd++O2fZLiY3nJhhcbyVMdvW++GLW2ADEVgCQ3u68uUpR9QX/KUBTBN35211EARAiakzgOeLH0PcPpFsGECM+NYDyRfbYE9kIQuoGBUmh5S5ktiy7a7/EYqBQe02meVE9wHV//IF9Ey+ztpcJ0yxwvSl1z7nRiuHI8HMgzrx4iGGBZeZHqYRYjdXkB/cvp/NU7xeuQOCj74UIjF9FSweZhzWRpmaBq6HcqQw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: 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: Thu, 24 Jul 2025 15:01:21 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHb/KtFY8EybXSU60Sb7upXwd5tVQ==
- Thread-topic: [PATCH 07/10] 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>
---
xen/arch/arm/include/asm/gic_v3_defs.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/arm/include/asm/gic_v3_defs.h
b/xen/arch/arm/include/asm/gic_v3_defs.h
index 7f769b38e3..2c02ddd287 100644
--- a/xen/arch/arm/include/asm/gic_v3_defs.h
+++ b/xen/arch/arm/include/asm/gic_v3_defs.h
@@ -206,7 +206,11 @@
#define ICH_LR_VIRTUAL_SHIFT 0
#define ICH_LR_CPUID_MASK 0x7
#define ICH_LR_CPUID_SHIFT 10
+#ifndef CONFIG_GICV3_ESPI
#define ICH_LR_PHYSICAL_MASK 0x3ff
+#else
+#define ICH_LR_PHYSICAL_MASK 0x13ff
+#endif
#define ICH_LR_PHYSICAL_SHIFT 32
#define ICH_LR_STATE_MASK 0x3
#define ICH_LR_STATE_SHIFT 62
--
2.34.1
|