From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sinan Kaya Subject: Re: [PATCH v2 2/2] io: prevent compiler reordering on the default readX() implementation Date: Wed, 4 Apr 2018 13:48:35 -0400 Message-ID: <9b0d7db3-0830-9661-6dc8-39523daa8f32@codeaurora.org> References: <691b903c-e97d-0a25-28c5-690318bb215a@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: Palmer Dabbelt , Mark Rutland , Timur Tabi , sulrich@codeaurora.org, linux-arm-msm@vger.kernel.org, Linux ARM , linux-arch , Linux Kernel Mailing List List-Id: linux-arm-msm@vger.kernel.org On 4/4/2018 11:55 AM, Arnd Bergmann wrote: > Yes, exactly, plus the same for write and in/out of course. I was looking at this... inb() and outb() seem to be calling writeb(). It gets the wmb/barrier automatically when we fix writeb(). Did I miss something? -- 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.