Received: by 10.192.165.148 with SMTP id m20csp453356imm; Fri, 20 Apr 2018 09:21:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+u3Ihz5Pgt6Aem3euoJCmuk31fU+01RdBdZkgMwrgi1ElfEBFW4g9XW5sZOGsGPvJEazUX X-Received: by 10.98.233.11 with SMTP id j11mr10287540pfh.205.1524241312201; Fri, 20 Apr 2018 09:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524241312; cv=none; d=google.com; s=arc-20160816; b=mmlLHxZQkXMMhwF1zsIckIwUbVGqIu7Gh9EiMgqIIkqIpOkyuSvEkJdjcFLC5xNd0E XfqIrw/nfMEamtccKL/5CFQkxZwh3X/P09mgJe3l82rcXq89S4ig0pozf9IITr+3Hcol FSYjNlbvzJ2ieoc8XGlpNF/bdUqFTfnNiN4zu21xIFzm/B7B7e6Nj+I+D2NdbwN1GTDz Rn2t4TCapvNINLinWFqXxKnC/WvutvJQf28y+pJOBlVgrPVYsXkhbMEczHMeam3Ox0U+ X8AqGuz20pNdOuxs1XiHI7DqqgXvoOuqT2mucqZ9sfSQJ094j0ynyNgTXlt3JRPec+lp 4WMQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=TmrcIJjWqNO1QtAdQ3oA0nErtU1/1hpVzRP4zwKEfRg=; b=DBN3+JvaxRq77jN8SuqBJZUTMvQp7kiCWHTi51bUBAXkfr+rHqzVAfeOnYKlxPBtX1 dX5KH3/BFQrqVFcK566VlFg2OGD+bHaCZQRD/JjLgMXJb9gyrZp2puUEY2vKFX9kZXgg ATbiwwkbCAK3TFB9GmCJkQkwt7AZpUzuf4rxhd0h6P79cdRBtGSee/ZSj0vtPlvhbdPd 38/Ps/dZy7S3p9KvPLoK/woC8NkMk52cBOzLJqw4aq2SOn21Ouc7TvYvY6zCguSmbkpg m85eu2EluAqeTbwPKFJ1bZrbgDw5LDC1b6Flwq/FUDctLGu6wfPIh8UYiQpXYnJWr7Hn 5l9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=W8GuY07m; dkim=pass header.i=@codeaurora.org header.s=default header.b=l4DV6guH; 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 f7si5139644pgn.476.2018.04.20.09.21.37; Fri, 20 Apr 2018 09:21:52 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=W8GuY07m; dkim=pass header.i=@codeaurora.org header.s=default header.b=l4DV6guH; 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 S1751860AbeDTQUc (ORCPT + 99 others); Fri, 20 Apr 2018 12:20:32 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39738 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbeDTQUb (ORCPT ); Fri, 20 Apr 2018 12:20:31 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 82DCA60F6D; Fri, 20 Apr 2018 16:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524241230; bh=nWY4YCdP3dN+k6mxAQqY0vSarayH/fDIEIjwv26RPMg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=W8GuY07mn7TEIdgEIhTWrlfCQpNeM15GU9brnOG2BV/EiyODb8uxcImTOk06R/Zdx q/HC9LbVcF8NBhUsqQt7l6WZQcwR6nw7NlzvHZi8uvMCbZdVteEB9WgkoHuvX9BPy7 X2WYz5NK3nG0pjSZBfslPwyPw2KYp/9DDPILFrRE= 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 [192.168.0.105] (cpe-174-109-247-98.nc.res.rr.com [174.109.247.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 86086601CF; Fri, 20 Apr 2018 16:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524241223; bh=nWY4YCdP3dN+k6mxAQqY0vSarayH/fDIEIjwv26RPMg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=l4DV6guHx+f0kxQn5kZ/qcuVCuZFqd29KJ4g1DSE0fXfaJSz4ecJDjDkuMaMSNF0y UnHuKd3xtSjWcYE9dDXjSqGHc/aod69/GWdVf2isXF1vS6GO4faoIb/sb74sPGgMCC uzPnihH+fFrEjv2aVoXfqEeghP/QDa9HGG4k9Ic4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 86086601CF 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=okaya@codeaurora.org Subject: Re: [PATCH] alpha: io: reorder barriers to guarantee writeX() and iowriteX() ordering #2 To: linux-alpha@vger.kernel.org, arnd@arndb.de, timur@codeaurora.org, sulrich@codeaurora.org, Matt Turner Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Richard Henderson , Ivan Kokshaysky , Philippe Ombredanne , Greg Kroah-Hartman , Thomas Gleixner , Kate Stewart , linux-kernel@vger.kernel.org References: <1523917017-28084-1-git-send-email-okaya@codeaurora.org> From: Sinan Kaya Message-ID: <2fd54f7c-ff73-5935-a253-c924f4373cc6@codeaurora.org> Date: Fri, 20 Apr 2018 12:20:11 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matt, On 4/17/2018 2:43 PM, Sinan Kaya wrote: > On 4/16/2018 6:16 PM, Sinan Kaya wrote: >> memory-barriers.txt has been updated with the following requirement. >> >> "When using writel(), a prior wmb() is not needed to guarantee that the >> cache coherent memory writes have completed before writing to the MMIO >> region." >> >> Current writeX() and iowriteX() implementations on alpha are not >> satisfying this requirement as the barrier is after the register write. >> >> Move mb() in writeX() and iowriteX() functions to guarantee that HW >> observes memory changes before performing register operations. >> >> Signed-off-by: Sinan Kaya >> Reported-by: Arnd Bergmann >> --- >> arch/alpha/kernel/io.c | 14 +++++++------- >> 1 file changed, 7 insertions(+), 7 deletions(-) > > Sorry for catching this late but this also needs to go to 4.17 after > review. > > I missed the writel() implementation on arch/alpha/kernel/io.c file > on my first patch. > Can you also queue this for 4.17? There are already drivers checked into 4.17 that dropped the unnecessary barriers. I really hate to see Alpha broken because of this. Sinan -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.