Received: by 10.223.185.116 with SMTP id b49csp4205073wrg; Mon, 26 Feb 2018 13:08:45 -0800 (PST) X-Google-Smtp-Source: AH8x2253Ml4Eh4zeULiPv4VOp6Va0odFj1Y9O6oaoKl34QCH9Urp5cGnWInISbCbyN6VudbaMf54 X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr12157598plo.139.1519679325252; Mon, 26 Feb 2018 13:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519679325; cv=none; d=google.com; s=arc-20160816; b=kiCLvOWHtNa0Dn5ji6ZCDsC4rghAgPsxMMxHV47FmCmqMgVm4aiD8omWJoGoBXI7UP z/ZbYNOWzHfckHd3yK7W3HpWtTGCrp3o45rbX9XhA6DhBPNmHVkPHyVvB7J4JyFFjDZZ n2U+BbWtsqNjBk89Nwmdy1y9P0YYxoSAqmMqKH9herxL/0HdlTtmlhuu4Q25x+ou6heY ehc20NHFpMrmHEGVuJlHpeyRYzHJgHU24FR55hb3IV1v6NZy0PLtUm/Stdanglz2wAAG HxKeY1IwSmEsPcknFgz+xbC9oNu3Sh/ZxNXRRGmtGVychci4DIUZ+P+ZQh0GDWCldkJ2 RoWA== 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=A1BMaD+t/H0fbRdKym9HCL9pUco4oWpnxHGxH6VV41g=; b=GnTAcmA2UMACow+uzns3/QWYOIkcoumpDAzHJghBnZhqgOWiN7yGVdf8p23z7lOCk+ nKj8Rf5O14qnj/xPn4SAMdLpxpLzW4wRg4H0GB7bLzfvjD51pWQxVhpZD/RjGsDmfMu8 UhhuozrTfnLMxufgSzdkGeihrjHR406OgBDROf3p38OrvddPtoqWRUL+1UncnaRPJ7oD 4t/khCOJDFboGN4jPbtRbG8B/PlxGm9tjWwt4EI6QK9LBPVEc7gOQMY4EYrMj+AreGw/ sPjensj90Q4WepGJYI7C4GRVxmQBMxsxAWvaksxOwpQGVNEnEu7MZU3PqEw1XN3JhREI s+Ww== 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 m6si2544922pgu.633.2018.02.26.13.08.28; Mon, 26 Feb 2018 13:08:45 -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 S1751881AbeBZUQ2 (ORCPT + 99 others); Mon, 26 Feb 2018 15:16:28 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59020 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbeBZUQZ (ORCPT ); Mon, 26 Feb 2018 15:16:25 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EC78D10E9; Mon, 26 Feb 2018 20:16:24 +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 3.18 09/13] irqchip/gic-v3: Use wmb() instead of smb_wmb() in gic_raise_softirq() Date: Mon, 26 Feb 2018 21:15:37 +0100 Message-Id: <20180226201527.643920145@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226201527.242286068@linuxfoundation.org> References: <20180226201527.242286068@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 3.18-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 @@ -503,7 +503,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_mask(cpu, *mask) { u64 cluster_id = cpu_logical_map(cpu) & ~0xffUL;