From: okaya@codeaurora.org
To: Arnd Bergmann <arnd@arndb.de>
Cc: Timur Tabi <timur@codeaurora.org>,
sulrich@codeaurora.org, linux-arm-msm@vger.kernel.org,
Linux ARM <linux-arm-kernel@lists.infradead.org>,
linux-arch <linux-arch@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
arndbergmann@gmail.com
Subject: Re: [PATCH v3 1/5] io: define several IO & PIO barrier types for the asm-generic version
Date: Thu, 05 Apr 2018 07:48:36 -0400 [thread overview]
Message-ID: <e2290e35d919d46a6d45b0e47abb866e@codeaurora.org> (raw)
In-Reply-To: <CAK8P3a0Noun+8AaRUcMdOX09KXxFXZxfcyUgJnezPkS2gVkg6w@mail.gmail.com>
On 2018-04-05 03:00, Arnd Bergmann wrote:
> On Thu, Apr 5, 2018 at 1:58 AM, Sinan Kaya <okaya@codeaurora.org>
> wrote:
>
> Looks good, but I'd change the comments to ones that document exactly
> what those barriers are for:
>
>> +#ifndef __io_ar
>> +#ifdef rmb
>> +/* prefer rmb() as the default implementation of __io_ar() if
>> supported */
>> +#define __io_ar() rmb()
>
> /*
> * prevent prefetching of coherent DMA data ahead of a dma-complete */
>
>> +#ifndef __io_bw
>> +#ifdef wmb
>> +/* prefer wmb() as the default implementation of __io_bw() if
>> supported */
>> +#define __io_bw() wmb()
>> +#else
>
> /* flush writes to coherent DMA data before possibly triggering a DMA
> read */
>
>> +#ifndef __io_aw
>> +#define __io_aw() barrier()
>> +#endif
>
> /* serialize device access against a spin_unlock, usually handled there
> */
>
I will add these and post the next version.
> The other four patches look perfect already. What's the timing we need
> for
> these patches? Are they 4.18 material, or do we need them in 4.17 and
> stable kernels to work around known bugs?
I was hoping to get all arch stuff in for 4.17.
Driver developers started removing redundant wmb().
>
> Arnd
WARNING: multiple messages have this Message-ID (diff)
From: okaya@codeaurora.org (okaya at codeaurora.org)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/5] io: define several IO & PIO barrier types for the asm-generic version
Date: Thu, 05 Apr 2018 07:48:36 -0400 [thread overview]
Message-ID: <e2290e35d919d46a6d45b0e47abb866e@codeaurora.org> (raw)
In-Reply-To: <CAK8P3a0Noun+8AaRUcMdOX09KXxFXZxfcyUgJnezPkS2gVkg6w@mail.gmail.com>
On 2018-04-05 03:00, Arnd Bergmann wrote:
> On Thu, Apr 5, 2018 at 1:58 AM, Sinan Kaya <okaya@codeaurora.org>
> wrote:
>
> Looks good, but I'd change the comments to ones that document exactly
> what those barriers are for:
>
>> +#ifndef __io_ar
>> +#ifdef rmb
>> +/* prefer rmb() as the default implementation of __io_ar() if
>> supported */
>> +#define __io_ar() rmb()
>
> /*
> * prevent prefetching of coherent DMA data ahead of a dma-complete */
>
>> +#ifndef __io_bw
>> +#ifdef wmb
>> +/* prefer wmb() as the default implementation of __io_bw() if
>> supported */
>> +#define __io_bw() wmb()
>> +#else
>
> /* flush writes to coherent DMA data before possibly triggering a DMA
> read */
>
>> +#ifndef __io_aw
>> +#define __io_aw() barrier()
>> +#endif
>
> /* serialize device access against a spin_unlock, usually handled there
> */
>
I will add these and post the next version.
> The other four patches look perfect already. What's the timing we need
> for
> these patches? Are they 4.18 material, or do we need them in 4.17 and
> stable kernels to work around known bugs?
I was hoping to get all arch stuff in for 4.17.
Driver developers started removing redundant wmb().
>
> Arnd
next prev parent reply other threads:[~2018-04-05 11:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-04 23:58 [PATCH v3 1/5] io: define several IO & PIO barrier types for the asm-generic version Sinan Kaya
2018-04-04 23:58 ` Sinan Kaya
2018-04-04 23:58 ` [PATCH v3 2/5] io: define stronger ordering for the default readX() implementation Sinan Kaya
2018-04-04 23:58 ` Sinan Kaya
2018-04-04 23:58 ` Sinan Kaya
2018-04-04 23:58 ` [PATCH v3 3/5] io: define stronger ordering for the default writeX() implementation Sinan Kaya
2018-04-04 23:58 ` Sinan Kaya
2018-04-04 23:58 ` [PATCH v3 4/5] io: change outX() to have their own IO barrier overrides Sinan Kaya
2018-04-04 23:58 ` Sinan Kaya
2018-04-04 23:58 ` [PATCH v3 5/5] io: change inX() " Sinan Kaya
2018-04-04 23:58 ` Sinan Kaya
2018-04-05 7:00 ` [PATCH v3 1/5] io: define several IO & PIO barrier types for the asm-generic version Arnd Bergmann
2018-04-05 7:00 ` Arnd Bergmann
2018-04-05 11:48 ` okaya [this message]
2018-04-05 11:48 ` okaya at codeaurora.org
2018-04-05 11:58 ` Arnd Bergmann
2018-04-05 11:58 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e2290e35d919d46a6d45b0e47abb866e@codeaurora.org \
--to=okaya@codeaurora.org \
--cc=arnd@arndb.de \
--cc=arndbergmann@gmail.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sulrich@codeaurora.org \
--cc=timur@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.