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

Re: [PATCH] xen/arm: gic-v3: disable Group 1 before CPU power-down


  • To: Mykola Kvach <xakep.amatop@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Fri, 10 Apr 2026 10:17:55 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=AJ4vFQGsTijPQ8o9EfLIPm34Z4sNLTGNEjmBxusjr9c=; b=Hw2XlIsZm4kQteR/IPs3UMnDGF1xGi+LH2XNVFTkBGDRrQUZqFLe0cPSTB9y1wEiEOX/pDcCIsJZFp03ON4OEdQAMGdaRcaNKAGJcU9rEWutjIpUQx1Xr6+13lS4TNxHNrXsX3Jcn6SkKGemUV1QUz93JWYxJRRTPwSctDjRTksIy2Zz3k+iyoAHcOla6UDZMxQnIX0DBiGAQlW4uN0SzAx5i7nP7jNINCu9M+4N/ssDq1R1iAlzibsLExzxDlQvZoRPlfZQwVTCNKSFbIQRvomNnmDOU9DmW3lCKgH3gdsnm6+SKWtQXdwNQgY4dd4xl+3RVbgu/LJPeUrzw5V/Ag==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UZyBagpZ8thPVtwgfCdsAiLuMqdNpIDpI/Yd+xTykjpfPPPrr4FQObDRdxW41CUoeQvidsp3C8FajlacCJiqP4mDZL/Vq08y6rRDJvHCZru42+Yb2H6dvUirmIDKvjtDL08Kqm28j9HPNnTUV8Gi3orQoNimeaULPYgNfPDppUQ1aBs2vI59ZszXo0ePKy9a4UKQsH7I0bNkX63/KGpQFpT3fpvIyK/kvC4aqP9Q7ppE3nIttAx8dRdGnmDiGqE3LM7mAGb506CwhyKzD5oIHk0AYdL006bbbFL7goB7n4Lu6UogQu72t5B6t4x05cyEgSU1RwjX3hU1WGDXsnyZcA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Mykola Kvach <mykola_kvach@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 10 Apr 2026 08:18:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 10/04/2026 09:47, Mykola Kvach wrote:
> From: Mykola Kvach <mykola_kvach@xxxxxxxx>
> 
> gicv3_cpu_disable() currently writes 0 to ICC_CTLR_EL1. Unlike
> GICC_CTLR in the GICv2 path, ICC_CTLR_EL1 does not enable or disable
> physical Group 1 interrupt signalling, so this write only clears
> EOImode.
> 
> The GICv3 power management rules require the physical group enables in
> the CPU interface to be cleared before the redistributor is driven into
> ProcessorSleep, otherwise behaviour is UNPREDICTABLE. Xen only enables
> Group 1 interrupts on this path, so disable the interface by clearing
> ICC_IGRPEN1_EL1 instead.
> 
> This appears to be a copy of the GICv2 pattern where the enable control
> lives in CTLR, but for GICv3 the enable moved to ICC_IGRPEN1_EL1.
Yes, GICv2 GICC_CTLR combines enable+EOImode in one register.

> 
> Fixes: bc183a0235e ("xen/arm: Add support for GIC v3")
> Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

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