Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp672862lqe; Sat, 6 Apr 2024 20:41:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVB6vLibYOc0I/alyC5T/vozP9ltc5yzDcdnzjd9Bi75hmsxmCs463lheWlnZoBIrrrExyp99GSeWCx33R75qfXBDNVP5pIQtzzqcnHgw== X-Google-Smtp-Source: AGHT+IFyft8OfuzxvCMcokXNP4C1BVKZPMWI/pi6YF5TIroq4JBu27xcV+4SS5kpiWbqDhtIIk+t X-Received: by 2002:a17:90b:918:b0:2a2:e56a:ca8f with SMTP id bo24-20020a17090b091800b002a2e56aca8fmr4797600pjb.42.1712461263794; Sat, 06 Apr 2024 20:41:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712461263; cv=pass; d=google.com; s=arc-20160816; b=hcZNhT+MrOQ91Yz45uW9Eu7e/wSawyZnWT8P0Nq+WxWiB42eE2AbscM6PEAfWx/ouS /aFkBNsoxPqZ8vDePzm2irbHA8C03J2+diAiEtDtf+3cZrvS97Dq6012aLK2ExA67s60 C8DlJ2tUgBDbk/LgcOGD6hB5ESADCGqW8JjYY8KCgrW7QRJF54MQbbu6lUrBp6FzUA/x VuE19zoiKh9KuYAPWt2k9wu6WT1W1SQVpjRs/h9zkWSIsgDrO8RES7JQOZ+u34Og6GUo MgsQ5JPp4trZh3PzOmmbvS9KmnweRSqphZWRWhDzZ+Nu2/CU4hoUAGobujBGDN7mem7F i2YQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=gLuJvldtpvthhm2uNpLxeJ1Hqj+xP2JC6Eyup9o6Gr8=; fh=6Eil2Gz/GzPazRgkQIAM8bk1VIA1cPMW3WkFOYlti84=; b=Ketp4uexFj64a7Su8RLROkkOmNAIX4kvX+qDUOtVyfgrexBpCQfQfiCW8gXrk9sIS7 0HAPiygxIGPnH08/6O7NNygXhz7X0amsnzVh7jsAx6z12GFCyTysmg0vjCVcy1Rj8jq9 POjhDhBmkjTzJ01Rr9X8x08uastx77RQFgVUqIbk4ON9ioUbx177/tPQBz18r2LUfbL1 bECMoJuwKVB728KzK2np7sOsAFx+duacyx9gXp0wO/SY7nQE44QgKIqAiy+qREeCpHEX Je52V5rQpVMSFr+bv/NZzZABwzwP0L+O32hJLftU5EMYwiV9g7bZV39GgorUQuho47V6 Tu9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-134155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134155-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h9-20020a17090acf0900b002a223ce0d00si6322436pju.129.2024.04.06.20.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 20:41:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-134155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134155-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C8B8FB22987 for ; Sun, 7 Apr 2024 03:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0574779D1; Sun, 7 Apr 2024 03:40:53 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 F03387460 for ; Sun, 7 Apr 2024 03:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712461252; cv=none; b=Pw53jMPUHP6/fvTP7hM5EdlqWmSrnE7fETKu5NpSzzMiCtWdmggEEcQfWiLX5u28qQuoHXnaWk3oCsNWakIUyfZCG3oGUqWI534wFNugj2X+ccmFRXJhpIsR+UYbgQl4zNZi33GvsXpeTCRfFoScCyF8eF/1jLihIGw65nDhYhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712461252; c=relaxed/simple; bh=+80XGPfOBOGT2Exbt1OJdN8j7y3QHrq8yj1ZlXxqM14=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=iADKSvOPUEZpMEJdDh42ZsbOjs/2EZSSF1ZNDtYFry0fniN6zFJGRfvoptgAWzuZdbxJzLTCaYx6SyeIMrgTy2vD2yn7vOzRABqWOy8BdLvN+/wMiTOd/v/Ex51PCz/nM3lrnoL+aa4yZEn2mzJ/p78xgnEMvwwSKLiDIei28ME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VBybd3qXSzwRSQ; Sun, 7 Apr 2024 11:37:49 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 6A72A140154; Sun, 7 Apr 2024 11:40:41 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sun, 7 Apr 2024 11:40:40 +0800 Subject: Re: [RESPIN PATCH] irqchip/gic-v4.1:Fix VSYNC referencing an unmapped VPE To: Nianyao Tang CC: , , , , , References: <20240406022737.3898763-1-tangnianyao@huawei.com> From: Zenghui Yu Message-ID: <7eaf81b4-80b3-2728-0588-ecad6c137848@huawei.com> Date: Sun, 7 Apr 2024 11:40:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240406022737.3898763-1-tangnianyao@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600007.china.huawei.com (7.193.23.208) On 2024/4/6 10:27, 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 Reviewed-by: Zenghui Yu Thanks.