Received: by 10.223.185.116 with SMTP id b49csp4190425wrg; Mon, 26 Feb 2018 12:53:14 -0800 (PST) X-Google-Smtp-Source: AH8x225w7KxqbalV0hzcT810a22gq4mcdxxBYlR4kr0jZIYOVD5LjvErujdgR0GHu/rEXlbSxLfv X-Received: by 10.101.74.135 with SMTP id b7mr9487893pgu.260.1519678394348; Mon, 26 Feb 2018 12:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678394; cv=none; d=google.com; s=arc-20160816; b=y9Ll12ZisS9P0se3BD+pnCdXCNQ1mtJXTp7aduMDtAIrxpFKbcOMwvIoQzV8GqxpVG bcES7FqycMcwKDcgGy+B7pqC4qa3QJO/UDH671K0UmQIW0ZkNYuZFnluaA3VK7py7jig fn9yVXgwiyBD4/P43VsD8uR2LGJUIrBDkapnplHT1W4Ay6AdsaWPolkYnJ36EQsLW8bL 5tzlsUfc+2msFvGeJJgm8b0nnwJw6+GvkPRnz/wra3gsLVlD8bkgCWQ3ZU49dE0mWeNA lVHtKCF2GuNBrhwHD5Ljy1+MKWuah+bUM4odqumpvqhYe9U58638ZXd4hAwE58e4qMeA FBQQ== 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=0wxtoiZ4YQWuB4svPjema8NjFMnkGuVte95+v84hiBs=; b=u6PIAqTJLp9qGWNe7z1PvBklsgE+zG4paM9IksMNacQUmTzySOjSXgteeZGZG5guzx jYE8xup3Q7QmMPp5vEX9gVHcvv7pQIKjIThcQotrKNCyg9KG6EAvoHpkpKXt+ayNquLw jthQmqmpNyw9SLAZ9HbJoJsghCNoiuHQEV4C1LwzXT1hOyEur7slyO1P0u+QUJGWMbHh 7pyhKx/B4x2X8WatyeP1Hp3Lvl9QMKd5IysVmSMZgHKiWW5a+r6k3w9baf4WmJSjLXTT B6cnetgZuopvu4N4GZmr74ea6pV8swlTPhbS4nAi9cS8GADCbY6KfWXRXHN0pt3AiE0E jrIw== 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 a13si7258078pfc.255.2018.02.26.12.52.58; Mon, 26 Feb 2018 12:53:14 -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 S1753047AbeBZUvk (ORCPT + 99 others); Mon, 26 Feb 2018 15:51:40 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35060 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751735AbeBZUYQ (ORCPT ); Mon, 26 Feb 2018 15:24:16 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5140FF91; Mon, 26 Feb 2018 20:24:15 +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.14 28/54] irqchip/gic-v3: Use wmb() instead of smb_wmb() in gic_raise_softirq() Date: Mon, 26 Feb 2018 21:22:05 +0100 Message-Id: <20180226202145.795099218@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@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.14-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 @@ -660,7 +660,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;