Received: by 10.223.185.116 with SMTP id b49csp4201978wrg; Mon, 26 Feb 2018 13:05:35 -0800 (PST) X-Google-Smtp-Source: AH8x227/1R7IuLAIc9ALlFq2ikcfq2RBoGc/4Wfoc0fi1z4u0Kk9DLfWfabHiybRp4IU+uAeIYle X-Received: by 10.101.92.6 with SMTP id u6mr9459284pgr.440.1519679134879; Mon, 26 Feb 2018 13:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519679134; cv=none; d=google.com; s=arc-20160816; b=dxbDb9KK1lkJ1kVKo2URN6MGhrgt0HtvvA3lMH3nQBxiwWv09sO5lL6INShOv8nXlf mtH5LHjGBJaAd7XAuCJFNrsZPGcOGhxKcYi+5+KaYNYE11p9VTXtx2iy3Uu/oIMm6JCv bkVIlKb+ZN35TibPQDfXP1BbhFG3JKS4FJ/wqd2ClPufiCbM+V6/qxFKHqxArYV1+5Il NnqEw0DwitdbcfSHbfvCOoHsee8Jc8X9nABJ0K0p+qSZK2idVINlPkw4P8asUTBQIo3T cs5NVlGyo8B+3taTt33ymBalhiR1l5WVr21PKSSgZBx4Obn+Ix3pQ0yVd9/ZJ73unWWH HDZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=X0ip+MVOEggWH8ebx0UDhoNg4PJk46KlotkObMeOe40=; b=b8XVl3Sa93K83Nk3rwqTKOHsipKDZ572w2F0bvUW37Frq0ih+TT2UBweaVa87fMtti 3pWw2ke4ABRwRiKfxtb1vDvdmhk6dAi+eAJ4KNGxYaAP2XbDaO0eIIFIR2dLxlQ3N41c 3cshNZGMyBl6BlH1dZpkbqogwxkgdHmoAv+g6zhbJnd1CO1djITSUL2fF6ZGWdadHIvh s8X1s5JjkV8WVdyxlUT0mw7Jhy+CEKPFQFc11NKZ9AbKNzgnKuPg4G3rJQBtEjpeiYCD reO6KVuqYPGOmy5SXiexyFwnRZ8WK6kOImcmjo1IxH5QEwuTPOuKX9ACfHyVj0EKMVPY opNg== 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 q10si2824141pfc.183.2018.02.26.13.05.18; Mon, 26 Feb 2018 13:05:34 -0800 (PST) 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 S1752295AbeBZUVS (ORCPT + 99 others); Mon, 26 Feb 2018 15:21:18 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33160 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbeBZUVP (ORCPT ); Mon, 26 Feb 2018 15:21:15 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0F5A71062; Mon, 26 Feb 2018 20:21:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shanker Donthineni , Marc Zyngier Subject: [PATCH 4.9 11/39] irqchip/gic-v3: Use wmb() instead of smb_wmb() in gic_raise_softirq() Date: Mon, 26 Feb 2018 21:20:32 +0100 Message-Id: <20180226201644.161641651@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226201643.660109883@linuxfoundation.org> References: <20180226201643.660109883@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shanker Donthineni commit 21ec30c0ef5234fb1039cc7c7737d885bf875a9e upstream. A DMB instruction can be used to ensure the relative order of only memory accesses before and after the barrier. Since writes to system registers are not memory operations, barrier DMB is not sufficient for observability of memory accesses that occur before ICC_SGI1R_EL1 writes. A DSB instruction ensures that no instructions that appear in program order after the DSB instruction, can execute until the DSB instruction has completed. Cc: stable@vger.kernel.org Acked-by: Will Deacon , Signed-off-by: Shanker Donthineni Signed-off-by: Marc Zyngier Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-gic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -616,7 +616,7 @@ static void gic_raise_softirq(const stru * Ensure that stores to Normal memory are visible to the * other CPUs before issuing the IPI. */ - smp_wmb(); + wmb(); for_each_cpu(cpu, mask) { unsigned long cluster_id = cpu_logical_map(cpu) & ~0xffUL;