Received: by 10.192.165.156 with SMTP id m28csp383072imm; Tue, 17 Apr 2018 11:45:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx49X3CT1t1BZXU3ybghuDWZYqinKJ42c/du7lv63ki7xy8prVBqThZ51LLVuAcsN10yp9nCM X-Received: by 2002:a17:902:108a:: with SMTP id c10-v6mr3131095pla.171.1523990743470; Tue, 17 Apr 2018 11:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523990743; cv=none; d=google.com; s=arc-20160816; b=ilqljTo3c5H+H3jQlKmSkNFUl2aCZAPg6w7MWy3lTIYRR76GgG8PqsspCh10irtde1 XchuHyBE3x1w+ZzXTzlzinLzlVxCxaGpxQLLEraSnn6Z7a2yfzd7pTtg5UQmlpUv5WH0 1jqJTaFZkorqtFvjzCbpK8XnpqB3t353RARaN9PL8Ny+ysWSbiAqTrh2MXnSgvb1/M+U kLgw5f82u5DhbZgbPqQm3Z0RzSs3oi6DdG/zAvFY7wFeTY++ya8q9tGTXiR6nQ+xX9Zj MBbIXXc39rTKxxpXmo3y8/s1GReU5iSNUY0QxRDxk7kVbbqwal6JGuDSjxwuB8aceErg kfgA== 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=ME19N0tgv35uKDpa4GkeitDtlBmxaevcKZIdOprULJ8=; b=oSxFuhFj1S198CejLp9UmZDuwOnxMYIQ9DnRIsgmyL1e1+DcMd6sGBhF6MEWH7if5T FxvidkoBvkC0LnT0zyvCnJYhNRv7G5DgycbFOHWuo7maXvKmHxLm7BXKAa+33sjOvtRf PrDBB0vWGKNYv3D4KRVraMw0uJ86PYU/PmFbj3/rXg5RsSH3XGFJ2TmIgMyigc+02abW /x9Xu3zimkTgQldY+FxUUTAXWL+7DBOSzhVaOdLjy9YGdJYhp/VVAKn96TqcINtxG3vX niUumBtQZduIpI8805+O4iB5p/ZIB4G0qlYYeoYocU/DFyVGCPTeaqaJXu0g+mbqGjQw PPqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=XcoytxLz; dkim=pass header.i=@codeaurora.org header.s=default header.b=DuDEL/++; 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 p2si4566286pgv.100.2018.04.17.11.45.26; Tue, 17 Apr 2018 11:45:43 -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=XcoytxLz; dkim=pass header.i=@codeaurora.org header.s=default header.b=DuDEL/++; 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 S1752427AbeDQSnL (ORCPT + 99 others); Tue, 17 Apr 2018 14:43:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59706 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232AbeDQSnI (ORCPT ); Tue, 17 Apr 2018 14:43:08 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 59DC56076A; Tue, 17 Apr 2018 18:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523990588; bh=ah1+h6NtBWCLrwb1IF2a/fctNYQy/L9kRBLpL0y0XVQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=XcoytxLzB9JnPcE/yW7RR4ymjPf4CoUsd+N01PX1n2PdTZwhenty0hns9vO/Qb8uB OZYiarJJYcZCdPogYgAjj5GPObJXC5z0L75mOHziV/pd3zi8ohyLsmCP5vdmDMlnfi +m+2YgSOofY4M2GsOFLpjXpahFNSCWZE/JOhizNg= 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 D068760F93; Tue, 17 Apr 2018 18:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523990585; bh=ah1+h6NtBWCLrwb1IF2a/fctNYQy/L9kRBLpL0y0XVQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=DuDEL/++WKQ3sIlhv0NWr2vDqLwOwSd64HJTmlqMXqOaAQUrhCWV0c+dxm+OjRhZn CNHrVrcXptfmaFm2fza0iHoyJPxEUPJvEgChF6kf6m/B7pfjB0pNHfc0kOUnfuKIp/ DK+jhQVMxmejoERqOb4AP382bT3XOLcd6E/sberM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D068760F93 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 Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , 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: Date: Tue, 17 Apr 2018 14:43:01 -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: <1523917017-28084-1-git-send-email-okaya@codeaurora.org> 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 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. -- 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.