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

Re: [PATCH v2 07/10] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing


  • To: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • From: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>
  • Date: Fri, 22 Aug 2025 06:56: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=GJvaEhy8OZK3zjM1vTaA54SCiIfDWQoXnxotudIq/As=; b=ZBlZLLjDVrmu7iDdeyJdDxRUqjtyd4h0xxdfAcEj36rLmetWOeVB3SsI3oRufK3MAvApCRqk650FP38grjB2e9Rs6robRB6LYDzko/ZIoYzI2gPs4aACc8UUTrCFHQnbb7RHeL/0UZJwp2bfrfgFF/s8dSqFKpTaeJrjMqlnQMRPIbwtvXH4vohs7/BY9nVDOSMr3MoOs7qUVp8a6qlcc+xy+mOhmkzr/fawAQZRUjnaRzE4CskzLEqrhpuMDpaOpgZTT0R+ho2vV1CLcQ2+YvrLznwToIUe1lqNpuRgYOcPoVeQM2/wMoLnX3sSdEAGWw4/Au3OlELf0vyJtqLduw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iVB+Y5m27PHEL2jC/E42yrmJ666Nqwj3VWz/gjXc4RB7Am8ldCHRJFHXWRk38FKSGf2FJPw65TTGEDKMC21C3ax16yuYV4mBH8K+MYLDWJi43W3v9Ap1JmK23wQPQ1MgH7//W8kfzmmaiai9yTxw/gxb6XeNt7Om20IMt439XcQ6hUjTzeyjzJW9MfUJEsVT8F2wIXVoW4FBH0Wdz8hs/ExZXYQ1oXbHRpGIKjfOMesd124Z5B55nuVfgViraMEuF/wzwSuR71RE0s0+0PQb6U28BfhrGrbYNwuUv+8hskryJwHkYQYH8V0tuUhZR9uNP9hBTu+OiB5kzUHA7DL1kg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Fri, 22 Aug 2025 06:56:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcB5d8lU0HcDjyxEOVNNx+lAhf97RuVHuA
  • Thread-topic: [PATCH v2 07/10] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing

Hi Volodymyr,

On 21.08.25 19:27, Volodymyr Babchuk wrote:
> Hi Leonid,
> 
> 
> Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx> writes:
> 
>> 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.
> 
> I am not sure how this supposed to work. According to the arch
> specification, pINTID field in ICH_LR<n>_EL2 is only 12 bits wide.
> 
> 

Thank you for your review.
According to the specification, the pINTID field in ICH_LR<n>_EL2 is 13 
bits wide ([44:32] bits):

 > A hardware physical identifier is only required in List Registers for
 > interrupts that require deactivation. This means only 13 bits of
 > Physical INTID are required, regardless of the number specified by
 > ICC_CTLR_EL1.IDbits.

0x13FF is a 13-bit number that fits into the corresponding register 
field and covers the maximum eSPI INTID value - 5119.

Best regards,
Leonid

 


Rackspace

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