Received: by 10.223.176.5 with SMTP id f5csp2055501wra; Wed, 31 Jan 2018 16:04:48 -0800 (PST) X-Google-Smtp-Source: AH8x226BrCMp2CPYj8MWwX6AD5AjVJE9sDi51idLn+fLtKzsTi87FeybNBhF/YSi6RYveF4iUMRu X-Received: by 2002:a17:902:20cb:: with SMTP id v11-v6mr30169584plg.63.1517443488587; Wed, 31 Jan 2018 16:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517443488; cv=none; d=google.com; s=arc-20160816; b=lHlMbnYCZWsFlq/EomedQLiHP7P4spwlhbTYumIjDpJ4ZSyFSIe2SmtD7nOIrt+MyU K6SRpjI8vFqNBynLKDzlvMhe0writ5q09ObCTRgPiZSP1gwOtOBTnIMwccC3qltjpju1 sE3XzYkIE3DT0K+cgOwPzED1AcevDEkuDiOolv+q1Oe2ktaKUuAEjWu6STsbpOElV14i +Bwye2KKiaHifgIXBikBpsnXjxloUhf6S7iTPYeHT6bJq7mFFcVEj88dES0Rt058/1Ar LeZnQFNtT7kyN+cwolHLWV/gqEzTF0g3cIywcDSMkD+O67H3/IQMV1CV7Erd0qun4r7L dGKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=F+VjSJ+HQWWRkQaF7LVQI5PBAVAAm08n5ZyEKsXLFKQ=; b=YMgTFauqkW/Bimv2h3Z7MBqhU32AwQGQOnIorTeslvdVF5AHlT0oFuERho8USnsZIM SVQjBi8x+V6UqSD3oSfOKq27tiY6vR1+qMGeRr1pDgyBPhrr9kx37Q5Gz8Fb0KoZd8cF T3NVHmDuBcpCVBSA2ohrjWBJZN/RK2skOy3Bc9D1ktpL14FfkGPUQvUpC60CnFwveYvj Z9d1GWXjO/v/kuZLwUCNI++WHMBJ0jBYPhD/tGDoC6VJxl++G3ub1DpRvWNvmiBrUeZC CSqR9d0+Ni2QMoHLBNMyUtbBRgfp2Ov4MTCerENaCTUCNhnznE0LjTC+hf8AwwXnpgoz WESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PcV2r2EQ; dkim=pass header.i=@codeaurora.org header.s=default header.b=Hgo6ujVV; 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 o1-v6si1043532plb.686.2018.01.31.16.04.33; Wed, 31 Jan 2018 16:04:48 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=PcV2r2EQ; dkim=pass header.i=@codeaurora.org header.s=default header.b=Hgo6ujVV; 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 S1754265AbeBAAEK (ORCPT + 99 others); Wed, 31 Jan 2018 19:04:10 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57048 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753730AbeBAAEI (ORCPT ); Wed, 31 Jan 2018 19:04:08 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E169C608BF; Thu, 1 Feb 2018 00:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517443447; bh=68fbvf8sjsg9Yl716qKsmTJGGhA6FZo24QS3vD7BM4U=; h=From:To:Cc:Subject:Date:From; b=PcV2r2EQ7+mcib/Pu1TULBPPtm6CkuuFCaT2jcA+xdB42Bk4RCj9EFXZ75Qh09XwA n1TlvoVb2Kq4FsBD4CnrjnFeTFU5iQI7k7GnGUB6gGXTvdHEkONgO08v7jugtv05Q3 SX8Xpd2C3hYE6mHqsHOdvNajyZhO6eOdPpV/jYUg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from shankerd-ubuntu.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: shankerd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E214C6079C; Thu, 1 Feb 2018 00:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517443446; bh=68fbvf8sjsg9Yl716qKsmTJGGhA6FZo24QS3vD7BM4U=; h=From:To:Cc:Subject:Date:From; b=Hgo6ujVVgge6SZXvMPRJI6L3UaQCaNYifU0U2ndBygfkhIKHtlREGZ3C9m47pixBV iWeXDDZCBI+cD/MRPyVmHnDHCxXYsrw5zK12truGA8msawUbPSsnY0U5hmRepSRRk7 fPeVLbtGWqmKcS/DxuRGGbfMK2HkZeXXcXUaQWis= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E214C6079C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=shankerd@codeaurora.org From: Shanker Donthineni To: Marc Zyngier , linux-kernel , linux-arm-kernel , kvmarm Cc: Thomas Gleixner , Will Deacon , Vikram Sethi , Sean Campbell , Thomas Speier , Shanker Donthineni Subject: [PATCH] irqchip/gic-v3: Use wmb() instead of smb_wmb() in gic_raise_softirq() Date: Wed, 31 Jan 2018 18:03:42 -0600 Message-Id: <1517443422-30693-1-git-send-email-shankerd@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Shanker Donthineni --- drivers/irqchip/irq-gic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index b56c3e2..980ae8e 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -688,7 +688,7 @@ static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) * Ensure that stores to Normal memory are visible to the * other CPUs before issuing the IPI. */ - smp_wmb(); + wmb(); for_each_cpu(cpu, mask) { u64 cluster_id = MPIDR_TO_SGI_CLUSTER_ID(cpu_logical_map(cpu)); -- Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.