Received: by 10.192.165.148 with SMTP id m20csp5010891imm; Tue, 8 May 2018 19:59:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZphMfs36nH4XwjVaJxH7RJexao4qDTl53JqW3PuIp7G17aFKBKTA8XOY5A00wgewGAJkxRH X-Received: by 10.98.21.73 with SMTP id 70mr42486592pfv.91.1525834743431; Tue, 08 May 2018 19:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525834743; cv=none; d=google.com; s=arc-20160816; b=J/meWZOLjPPb8GHuBwdmPzH9zF8lxBhyUkpynDTK7PRTjG1dRxeCV+Hp4dYNX2eLhL PxEpJnxh9YXaWLqmKg2rDRNbKyhhFcjsPNaSmPpqiIaeDXDqyOd53MBZGQ6jjbTpNy9+ l6H22uIkXU2h7klZwe0RXGqMATgWUQeGc2ewULFtY6le4ZvBxQDCuPhgz9TLY6G5jFP6 SAQ+ez50YpnxUWOcYFBoAlLhTzZvIn0M6Rz+jUSiuObfOSUe9oD6DgfPekv2CZVUvYf4 MbArpvRzHc8XzH6KIxTwEX9OMy1TzJfvTxHjV1G6tFmzinJGD3mKJb976CXIDKr1bzfa xNYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=3V6078sTNyE6vRCKAWqQM8IE+8J6mVjwWpraQzprASc=; b=BUTAqT9q/jgTS9z9ntV2IU07/su7FG25oLVIskat3GUFMwZK5EF6eBNqGXF6MFjM9c B8IVjyLEKBUVH37GlAUmP/PusGhVlHzLEzHTuViwgbPNyk7nuHO0LwTxcntXIc691Gm4 Fcd3wFI7iIe+GZnxkddFrcCp9Vpk+ufineSXutUuvIXqIe2XrateFk4JwvLNJEj1lLcd LVjz1m/YF2c+rZWXoaESROgx3DCgk5jXm9nsRTZ47m7eOzRwbZA4MB7ncTPMVd/BTq11 xei6IR0zKDDnMwzagpbnZhuC+4zobffBAUcrbjKObgEDESlQXTuZg2G5JiYquG8XG4Bm tmUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=etS+ZdS9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si21184755pgm.360.2018.05.08.19.58.48; Tue, 08 May 2018 19:59:03 -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=@gmail.com header.s=20161025 header.b=etS+ZdS9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933672AbeEIC6S (ORCPT + 99 others); Tue, 8 May 2018 22:58:18 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35232 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933383AbeEIC6P (ORCPT ); Tue, 8 May 2018 22:58:15 -0400 Received: by mail-io0-f196.google.com with SMTP id g1-v6so31625328iob.2; Tue, 08 May 2018 19:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3V6078sTNyE6vRCKAWqQM8IE+8J6mVjwWpraQzprASc=; b=etS+ZdS9mRfIM3vCbmsN3IuyZH8hfsxI1Ah5CGGRj7623rAY5zUoVwYmSSXn/gOyA9 KvXo0sc8JVcWnO/AUPk244LSYE6upzd4tuIvli7iac7o8ud0LpRSZinr5TngCOIC6F3Q wYA7nnYTYls5C0v7KxLtrFTsf+G7B02yC6RlSOHHmi4q95EaQIJPVbNmJU4K58yOZ4xp zdffSvoVQCQ0gl7fkhhofSox4FJ2QYA4Hx/99N3o1dLjxJqvFLysSeKmF7jfm59ZLnDc ugCscjkzCz0yHHrrdsvwII2g8gSaXzKju3IOOh68phGUlMaX0jf9eA/GcJKvWJQzZaR2 IdEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3V6078sTNyE6vRCKAWqQM8IE+8J6mVjwWpraQzprASc=; b=B7SYAOo61SziCrbKSadKdYw+CdLVFVlyn857t+l31gb9RUg2d/3zW9GlLEd5dhBKLW Ps/T3MELk+PhYMJCC0myJ0W83kjgMxaKk1cKtLH3pqIdDvLX9biEJsmUUcCQqeOi5mqt tywq8EA4T/BjYR+dbgMmbi1PFQUQdsjGpHtTP2lsmsszW0pEoILN+BsHGpyMHIFG2Ue2 2Ih4o6CctoZVbRQwV0IKGCB3PBGMy1MPaKGnb0CbCtSaQi81YlnIpA8rKFkcaoPja39V ZOPVb17BY3x2Ajn9Gcz2MtqruJCqkkAFHTjZhCnXUjhX3t3UbRJ1NR6/Vpqr2c3PyFtU 5uAA== X-Gm-Message-State: ALQs6tA1fGulSQamhpkqVnLR42XQDrBGn99SalUhKb2xvPMwMAds6xG9 cF3tDaWWxRFeyHAYM2sz++XNPJQyAHg5kUciJA8= X-Received: by 2002:a6b:8dc3:: with SMTP id p186-v6mr46353519iod.70.1525834694147; Tue, 08 May 2018 19:58:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:7109:0:0:0:0:0 with HTTP; Tue, 8 May 2018 19:57:53 -0700 (PDT) In-Reply-To: <2fd54f7c-ff73-5935-a253-c924f4373cc6@codeaurora.org> References: <1523917017-28084-1-git-send-email-okaya@codeaurora.org> <2fd54f7c-ff73-5935-a253-c924f4373cc6@codeaurora.org> From: Matt Turner Date: Tue, 8 May 2018 19:57:53 -0700 Message-ID: Subject: Re: [PATCH] alpha: io: reorder barriers to guarantee writeX() and iowriteX() ordering #2 To: Sinan Kaya Cc: linux-alpha , Arnd Bergmann , Timur Tabi , sulrich@codeaurora.org, 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 , LKML 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 On Fri, Apr 20, 2018 at 9:20 AM, Sinan Kaya wrote: > 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. Yes, I will pick it up for 4.17. Thanks for the patch.