Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp326167lqe; Sat, 6 Apr 2024 02:58:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwqzIIymuNhlJAG1EfdN3TpA1/l31OQ4zQp6W+oXf8X+CNrf3EPZS/JDPAjJV/zj5LYb17SvAr22udR5oiGn8Wm7GQt+wQjnq+HJPLCw== X-Google-Smtp-Source: AGHT+IHfeBUwN5c7A2fG8DGuJI2YU8fhXrqc18ISFfFgCE71fkznbJio7W2owBZczEr5zJ5Zhzly X-Received: by 2002:ad4:4ee8:0:b0:690:b2c3:bfd0 with SMTP id dv8-20020ad44ee8000000b00690b2c3bfd0mr4214344qvb.57.1712397500145; Sat, 06 Apr 2024 02:58:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712397500; cv=pass; d=google.com; s=arc-20160816; b=TS5p1uL/ht94MCjkNLvjL+179CK92ZjhM8+6yJPBnQdVG40LGJIgQbTRQLDq2XBuXs gjL+cDvSEyiOhXJZDcKBk2TqM75AMNM0OJDuJAfTnI32bjNhXakV8bsgA4m68yh6vQ7r Lprwndim2gvia0gNMvAHyvOqJpQatnzznpZ+SVAZIPvwdrVOS/3pTjZBSkWuTFBDDBUW Q5J4Gkj6/x2oSI4EzD5cPlJrUIIWkwgjsO7e0DVEaU+qQGhGowy3DSv9OdpO4Nn6uTVF F1gzHDvsgH6b0vDs7jz5j04rZ60nrr7MhjubUU4wobRvS0gs6LugUtJm0wc8Vkce5bWY 2dsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=J5vqErkOFg4EFPaahsNdIZIrw3cN7JV162iygOQ1hYM=; fh=hNeRDQZLfB7SnSzHZ47neoJDq0TBTR5AyuisSxnDHwQ=; b=rQBLGFmbr+x5SzhtwyUH8bhbKE+SGtJ0o9XwSJKWAn3gLQkbc6CvDJdzaFjqnKr1in BXxXsU6ht+IgJjnuPwPqyR80ydGChmQfGFZrrNnxUePqWin92kQpRoHQ6rdJwqZsi2qh DjkqJ0tIcbajCb0wq4dcsD8VvDP4dcmKiNFZlzNuTh3RxClNRVOe0gy9CazvXRKioZKS czSnRs2HuM7H8ayDG38LVFO/QohAMAB/8Yj13VWsmtdg9Utb8COGoJmpcWIqsLqw+Inm 2q8oiSgtMycrL2/Bpticv6hUciFHMzNi3ZiIccs0W46CzxIWN3tcv7WZzNGiOxtPStLh C4vA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WCkKDUoA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y14-20020a056214016e00b006961d18107bsi3679178qvs.81.2024.04.06.02.58.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 02:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WCkKDUoA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133880-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DA7121C20DAC for ; Sat, 6 Apr 2024 09:58:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3411924B2A; Sat, 6 Apr 2024 09:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WCkKDUoA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B2BC1E48B for ; Sat, 6 Apr 2024 09:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712397493; cv=none; b=qzdjss1/WskzQf/jmi01NhWqIGG8ijLUq7SP9Q9UjcGHZI3ZZ0Ej2gY+i6ExnNc1MSLoPoAVzyWa2FeQ0R7fz22TbevGyVFic6ECPnueEYFpHB5VeCwDwax/SniD4pUb5gD28n3tHAdaOVoxVuppwGVT2A8rTqtnytGY7p4AmiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712397493; c=relaxed/simple; bh=8QOjyi5yo48Gc03G0D16O76wbrg04l+eAGY55tGyRSA=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=CSE+G2MV9jlQbvW1rNMhGI9kNS/FflZ8ksINKtqPD89d9zoOQkpD+2ZlCOtm9ElXUi94RvMO3komP0iaCcPOAi/uXhi5LhcicIQYlgZpivlhGRIjpaGbtIXU+MpjIHrXgliEVP5NaNDy83kg4yVWcDcdmMd+yPO10Z0z5eNmj+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WCkKDUoA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5980C433F1; Sat, 6 Apr 2024 09:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712397492; bh=8QOjyi5yo48Gc03G0D16O76wbrg04l+eAGY55tGyRSA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WCkKDUoAxS1hNUGaSvzPdz2OgUBAYcdgTIVhIbTpjTlKHpT4oiiTjTA0d/5hEjbIw SaDvW5m9P3E795ro7EQFODrYT5fjjj17ebXlda5cKDnqo+aWnKqFOz3HOUNfGlRXeO OPE46yAkQNN4By0DGlYpNVWjOAVaY9M6HOnVSSlQX4UFS82YQyVmX6jGgeeIvMNWTq hYBzpb2HrXqx9yZTmtrr0Xt/VldxNWneHQ6NGQOErVp99A7yR2HbvvUBwnxWXWruV2 5qErzfhTtLOjB4O0+3l4jqYe2nmFvSHN/J/uh+H6KVAedg1/uPzarykMkR8QkCdPrc +J38PgGCQEmmg== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rt2oM-0023Jb-Jp; Sat, 06 Apr 2024 10:58:10 +0100 Date: Sat, 06 Apr 2024 10:58:10 +0100 Message-ID: <87edbisthp.wl-maz@kernel.org> From: Marc Zyngier To: Nianyao Tang , Thomas Gleixner Cc: , , , , Subject: Re: [RESPIN PATCH] irqchip/gic-v4.1:Fix VSYNC referencing an unmapped VPE In-Reply-To: <20240406022737.3898763-1-tangnianyao@huawei.com> References: <20240406022737.3898763-1-tangnianyao@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: tangnianyao@huawei.com, tglx@linutronix.de, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, guoyang2@huawei.com, wangwudi@hisilicon.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Sat, 06 Apr 2024 03:27:37 +0100, Nianyao Tang wrote: > > As per the GICv4.1 spec (Arm IHI 0069H, 5.3.19): > > "A VMAPP with {V, Alloc}=={0, x} is self-synchronizing, This means the > ITS command queue does not show the command as consumed until all of > its effects are completed." > > Furthermore, VSYNC is allowed to deliver an SError when referencing a > non existent VPE. > > By these definitions, a VMAPP followed by a VSYNC is a bug, as the > later references a VPE that has been unmapped by the former. > > Fix it by eliding the VSYNC in this scenario. > > Fixes: 64edfaa9a234 ("irqchip/gic-v4.1: Implement the v4.1 flavour of VMAPP") > > Signed-off-by: Nianyao Tang > Reviewed-by: Marc Zyngier Thanks for having taken my remarks into account, it looks good now. Thomas, can you please take this as a fix for 6.9? Thanks, M. -- Without deviation from the norm, progress is not possible.