From nobody Sat May 23 21:05:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1779144444; cv=none; d=zohomail.com; s=zohoarc; b=NoIP1xMKsi23Ux44g4Y7WVRiLhVGgB4dqSJyNYXXXzc+wE/Oj/fZcUBe4L5zmjTiIEep9n3lxISAxM4/KGvdeF0diF3yGDRLutjNDbAyzQWaTJTugP3WzNFbQF6eAtDmsn3Nc4o4L2S+9aImCYX+VvkpCcEvTVta61+p8Q7QnJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1779144444; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gj9Q26Xnp9vgzseXLrlgwBsXJj51q6a2TH2ZhhhDnDU=; b=Pqi+PDzyEZ4QMu3MtyfpOtNphkPya9d6ywRynKyZjoWz9cRx7tfXTAsrTJgedW0ge8PPVvKeJ7dRsb4PEMdT3js6HGNgLvCWcMrwMHLF1TxiLNOQu49B92y33gr1j2kI97wrEJ9ft0yBXDR2FDwbR7MKgeaz0aHwXACFmvNqwoM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1779144444210311.2631798959809; Mon, 18 May 2026 15:47:24 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1312281.1582426 (Exim 4.92) (envelope-from ) id 1wP6jt-000576-FK; Mon, 18 May 2026 22:47:09 +0000 Received: by outflank-mailman (output) from mailman id 1312281.1582426; Mon, 18 May 2026 22:47:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wP6jt-00056z-Br; Mon, 18 May 2026 22:47:09 +0000 Received: by outflank-mailman (input) for mailman id 1312281; Mon, 18 May 2026 22:47:08 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wP6js-00056m-H4 for xen-devel@lists.xenproject.org; Mon, 18 May 2026 22:47:08 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wP6jr-004ZjV-TO for xen-devel@lists.xenproject.org; Tue, 19 May 2026 00:47:07 +0200 Received: from [10.42.69.3] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a0b969b-e002-0a2a0a5209dd-0a2a4503a918-40 for ; Tue, 19 May 2026 00:47:07 +0200 Received: from [209.85.167.45] (helo=mail-lf1-f45.google.com) by tlsNG-33051d.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a0b96eb-672d-0a2a45030019-d155a72dd8e4-3 for ; Tue, 19 May 2026 00:47:07 +0200 Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5a8fbe18b1dso4771316e87.2 for ; Mon, 18 May 2026 15:47:07 -0700 (PDT) Received: from gmail.com (213-67-3-247-no600.tbcn.telia.com. [213.67.3.247]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-395882c41c1sm14934341fa.12.2026.05.18.15.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 15:47:05 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779144427; x=1779749227; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gj9Q26Xnp9vgzseXLrlgwBsXJj51q6a2TH2ZhhhDnDU=; b=MYk0ymf8NLJITWwGuDHhYlIvtikKwbOhBTDvTHyLfR1P0H1un/bxgTOY5yhGixhdBd RWC+Na9BNPUjA1ATrTyzwqWq3GzeRho/rYPSIcDwupJ6ttnn52/fOcbhSENa/lr6LIyR nUMqLHOdULNZCjLziUkKw2zlrdKwvaIftkL6bliaNoHZCmtPW6gwVAwbVhpdluCE84+T hhpe7/oDOdHrOvn4rGM7Y9jdGZ94HEx1OEEEJW7zbnfSU4YkxHNnCvitLicUWEw8F/ud Z0LsiEKbTbKSYW6J63E3M02OUhN9Zbu79reMmrrPQZaLiaLw7KcsFG7Z5Wp9nPwDTlKo oUrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779144427; x=1779749227; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gj9Q26Xnp9vgzseXLrlgwBsXJj51q6a2TH2ZhhhDnDU=; b=iC8l+KbxuFcMqD5Cji3xYdYM0y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15:47:06 -0700 (PDT) From: "Edgar E. Iglesias" To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, julien@xen.org, bertrand.marquis@arm.com, michal.orzel@amd.com, Volodymyr_Babchuk@epam.com, edgar.iglesias@amd.com Subject: [PATCH v1 1/1] xen/arm: gic-v3: Fix wake-up loop in gicv3_enable_redist Date: Tue, 19 May 2026 00:46:52 +0200 Message-ID: <20260518224652.422864-2-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260518224652.422864-1-edgar.iglesias@gmail.com> References: <20260518224652.422864-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-33051d/1779144427-3B56F938-E1191340/0/0 X-purgate-type: clean X-purgate-size: 849 X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1779144445535154100 Content-Type: text/plain; charset="utf-8" From: "Edgar E. Iglesias" timeout starts as false and is only set on the timeout break, so the loop always exits after one iteration and a stuck redistributor is silently treated as woken. Use while ( 1 ) to match the sibling gicv3_do_wait_for_rwp(). Fixes: bc183a0235 ("xen/arm: Add support for GIC v3") Signed-off-by: Edgar E. Iglesias Reviewed-by: Stefano Stabellini --- xen/arch/arm/gic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/gic-v3.c b/xen/arch/arm/gic-v3.c index 7f365cdbe9..f03217282e 100644 --- a/xen/arch/arm/gic-v3.c +++ b/xen/arch/arm/gic-v3.c @@ -828,7 +828,7 @@ static int gicv3_enable_redist(void) } cpu_relax(); udelay(1); - } while ( timeout ); + } while ( 1 ); =20 if ( timeout ) { --=20 2.43.0