Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1789122ybb; Sun, 29 Mar 2020 13:28:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu0731/kc/1M0Mcn4gz8ufvLtBpnE79b848+LyiGrNb5Ikkpl28JwDLuSuCA3FFbqFWHrRH X-Received: by 2002:a9d:5a9:: with SMTP id 38mr6243686otd.331.1585513693961; Sun, 29 Mar 2020 13:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585513693; cv=none; d=google.com; s=arc-20160816; b=Pud6hzcM2rwkxON9Gnt9HjmPbUcuE8r2rbVKWDGNtRCn/w6lCAcizhKtPWUuzVYXxG kXAFuMFGY//L5zBav43gLeKmW7L4v6dS+VAC4kUCkeukzKSvpBcSeUXPkhBMt/+WQ29G P8P8FcVW/JS9l8/A2jucZob8x/FBHuSCZzs8U9uNsl0JOqM2phwi6J8V/9kNlJEzOSCy VZdWIgjQC9KPyhxFdGKCGx0tKhkiqhZ7wbownqUGElIIAPrTNXdaaAIrlzqUrxxYgI1d 9H2fvpmjNDhWPHGHGYocoIVlJRA0auEYMAvcctrTuLlHURRc/eYlf0jcoMzjorMoFTRz a3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=J8BKkDJbgMf24Ym+T9fMx1+1m42Dmim7C6l3vnjl7Do=; b=LWELCmoRra3bijf7W/H2Hm4OqF1qUvMSxEa6NL/i1/bd4OwY+zy1WGOEGmXdsdXrL5 VoJhguN2dORoOdPLegPQvXAzaNiNK1wHu99gPJEYwQ1lSsnKzVjiQ/JS3++JArTw3cqx BUXTsGxcpe0oEGP8t1kLwovAVpywN9gL6s2W7s4qmTmT1PpjigGCBSfL21ZALhFNplSw IaVSQNjaHgwIbskg+Ew2XAVy/Rs0bK2uYJ/oF6q4WCbJ99xLByZY5FijHL5+zxNHt0Ar IOISAqorT4lULkb6cqpj4SbRhwy+CNAdpnxeW7QxqAlZf+YbFh6frnNt+MccSlWowirQ 2SDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q137si4884774oic.139.2020.03.29.13.28.01; Sun, 29 Mar 2020 13:28:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729049AbgC2U1Q (ORCPT + 99 others); Sun, 29 Mar 2020 16:27:16 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:57030 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728882AbgC2U02 (ORCPT ); Sun, 29 Mar 2020 16:26:28 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jIeVj-0001QQ-JA; Sun, 29 Mar 2020 22:26:23 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 2281E1C07A5; Sun, 29 Mar 2020 22:26:16 +0200 (CEST) Date: Sun, 29 Mar 2020 20:26:15 -0000 From: "tip-bot2 for Zenghui Yu" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/gic-v4.1: Wait for completion of redistributor's INVALL operation Cc: Zenghui Yu , Marc Zyngier , Eric Auger , x86 , LKML In-Reply-To: <20200302092145.899-1-yuzenghui@huawei.com> References: <20200302092145.899-1-yuzenghui@huawei.com> MIME-Version: 1.0 Message-ID: <158551357577.28353.13458625309986219311.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: b978c25f6ee7d4c79cbe918eed684e53887ec001 Gitweb: https://git.kernel.org/tip/b978c25f6ee7d4c79cbe918eed684e53887ec001 Author: Zenghui Yu AuthorDate: Wed, 04 Mar 2020 20:33:11 Committer: Marc Zyngier CommitterDate: Fri, 20 Mar 2020 17:48:09 irqchip/gic-v4.1: Wait for completion of redistributor's INVALL operation In GICv4.1, we emulate a guest-issued INVALL command by a direct write to GICR_INVALLR. Before we finish the emulation and go back to guest, let's make sure the physical invalidate operation is actually completed and no stale data will be left in redistributor. Per the specification, this can be achieved by polling the GICR_SYNCR.Busy bit (to zero). Signed-off-by: Zenghui Yu Signed-off-by: Marc Zyngier Reviewed-by: Eric Auger Link: https://lore.kernel.org/r/20200302092145.899-1-yuzenghui@huawei.com Link: https://lore.kernel.org/r/20200304203330.4967-5-maz@kernel.org --- drivers/irqchip/irq-gic-v3-its.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 1af7139..c843702 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -3827,6 +3827,8 @@ static void its_vpe_4_1_invall(struct its_vpe *vpe) /* Target the redistributor this vPE is currently known on */ rdbase = per_cpu_ptr(gic_rdists->rdist, vpe->col_idx)->rd_base; gic_write_lpir(val, rdbase + GICR_INVALLR); + + wait_for_syncr(rdbase); } static int its_vpe_4_1_set_vcpu_affinity(struct irq_data *d, void *vcpu_info)