All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Oh <poh@codeaurora.org>
To: Adrian Chadd <adrian@freebsd.org>, Sujith Manoharan <sujith@msujith.org>
Cc: linux-wireless@vger.kernel.org,
	Johannes Berg <johannes@sipsolutions.net>,
	Bob Copeland <me@bobcopeland.com>,
	Peter Oh <poh@qca.qualcomm.com>,
	ath10k@lists.infradead.org
Subject: Re: [PATCH] ath10k: Replace ioread with wmb for data sync
Date: Mon, 02 Feb 2015 15:04:46 -0800	[thread overview]
Message-ID: <54D0028E.6000503@codeaurora.org> (raw)
In-Reply-To: <CAJ-Vmok9X7Zu67A3xnTKkBbLYPhrxqxRkv7EzKpPAnTOw6baVQ@mail.gmail.com>


On 02/02/2015 02:26 PM, Adrian Chadd wrote:
> On 30 January 2015 at 18:06, Sujith Manoharan <sujith@msujith.org> wrote:
>> Peter Oh wrote:
>>> Please refer the email thread that I mentioned about other architectures.
>>> (dsb is for ARM and other platforms have the equivalent instruction such
>>> as sfence, sync, mf, and dcs).
>> Ok.
>>
>>> Also the patch is updated with 2nd patch set replacing wmb to mb.
>> Would be good to test this on a MIPS platform...
>>
> The Atheros mips74k stuff I have here does /not/ flush all the writes
> out to the device and guarantee the device has seen everything with a
> memory barrier. Just saying. Various drivers ended up needing
> ioread()s in my experiments; mips sync operations weren't enough.
>
> So I'd suggest abstracting it out like the linux dri i915 code has -
> they define a "posting read" macro which they use whenever they need
> to ensure it's definitely made it all the way out to the hardware and
> through internal FIFOs so internal hardware has seen the state change.
> Then you can redefine that to your hearts content based on platform.
Thank you Adrian to head up the concern and suggestion.
The other people also concerned about other architectures like mips, so 
I was going to analysis it.
But since you've already experienced the defects, let me hold the change 
back until I find better for all.
>
>
> -adrian
Regards,
Peter

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

WARNING: multiple messages have this Message-ID (diff)
From: Peter Oh <poh@codeaurora.org>
To: Adrian Chadd <adrian@freebsd.org>, Sujith Manoharan <sujith@msujith.org>
Cc: Bob Copeland <me@bobcopeland.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
	Peter Oh <poh@qca.qualcomm.com>
Subject: Re: [PATCH] ath10k: Replace ioread with wmb for data sync
Date: Mon, 02 Feb 2015 15:04:46 -0800	[thread overview]
Message-ID: <54D0028E.6000503@codeaurora.org> (raw)
In-Reply-To: <CAJ-Vmok9X7Zu67A3xnTKkBbLYPhrxqxRkv7EzKpPAnTOw6baVQ@mail.gmail.com>


On 02/02/2015 02:26 PM, Adrian Chadd wrote:
> On 30 January 2015 at 18:06, Sujith Manoharan <sujith@msujith.org> wrote:
>> Peter Oh wrote:
>>> Please refer the email thread that I mentioned about other architectures.
>>> (dsb is for ARM and other platforms have the equivalent instruction such
>>> as sfence, sync, mf, and dcs).
>> Ok.
>>
>>> Also the patch is updated with 2nd patch set replacing wmb to mb.
>> Would be good to test this on a MIPS platform...
>>
> The Atheros mips74k stuff I have here does /not/ flush all the writes
> out to the device and guarantee the device has seen everything with a
> memory barrier. Just saying. Various drivers ended up needing
> ioread()s in my experiments; mips sync operations weren't enough.
>
> So I'd suggest abstracting it out like the linux dri i915 code has -
> they define a "posting read" macro which they use whenever they need
> to ensure it's definitely made it all the way out to the hardware and
> through internal FIFOs so internal hardware has seen the state change.
> Then you can redefine that to your hearts content based on platform.
Thank you Adrian to head up the concern and suggestion.
The other people also concerned about other architectures like mips, so 
I was going to analysis it.
But since you've already experienced the defects, let me hold the change 
back until I find better for all.
>
>
> -adrian
Regards,
Peter

  reply	other threads:[~2015-02-02 23:05 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 22:25 [PATCH] ath10k: Replace ioread with wmb for data sync Peter Oh
2015-01-26 22:25 ` Peter Oh
2015-01-27 21:33 ` Bob Copeland
2015-01-27 21:33   ` Bob Copeland
2015-01-27 23:53   ` Peter Oh
2015-01-27 23:53     ` Peter Oh
2015-01-28  4:30     ` Bob Copeland
2015-01-28  4:30       ` Bob Copeland
2015-01-28  5:39       ` Peter Oh
2015-01-28  5:39         ` Peter Oh
2015-01-28  7:37         ` Johannes Berg
2015-01-28  7:37           ` Johannes Berg
2015-01-30 22:53           ` Peter Oh
2015-01-30 22:53             ` Peter Oh
2015-01-31  1:16             ` Sujith Manoharan
2015-01-31  1:16               ` Sujith Manoharan
2015-01-31  1:56               ` Peter Oh
2015-01-31  1:56                 ` Peter Oh
2015-01-31  2:06                 ` Sujith Manoharan
2015-01-31  2:06                   ` Sujith Manoharan
2015-02-02 17:25                   ` Peter Oh
2015-02-02 17:25                     ` Peter Oh
2015-02-02 22:26                   ` Adrian Chadd
2015-02-02 22:26                     ` Adrian Chadd
2015-02-02 23:04                     ` Peter Oh [this message]
2015-02-02 23:04                       ` Peter Oh
2015-02-02 13:02             ` Johannes Berg
2015-02-02 13:02               ` Johannes Berg
2015-02-02 17:33               ` Peter Oh
2015-02-02 17:33                 ` Peter Oh
2015-02-02 18:54                 ` Johannes Berg
2015-02-02 18:54                   ` Johannes Berg
2015-02-02 19:15                   ` Peter Oh
2015-02-02 19:15                     ` Peter Oh
2015-02-02 19:22                     ` Johannes Berg
2015-02-02 19:22                       ` Johannes Berg
2015-02-02 19:36                       ` Peter Oh
2015-02-02 19:36                         ` Peter Oh
2015-02-02 19:47                         ` Johannes Berg
2015-02-02 19:47                           ` Johannes Berg
2015-02-02 22:06                           ` Peter Oh
2015-02-02 22:06                             ` Peter Oh
2015-02-02 22:15                             ` Peter Oh
2015-02-02 23:25                             ` Florian Fainelli
2015-02-02 23:25                               ` Florian Fainelli
2015-02-02 23:49                               ` Peter Oh
2015-02-02 23:49                                 ` Peter Oh

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=54D0028E.6000503@codeaurora.org \
    --to=poh@codeaurora.org \
    --cc=adrian@freebsd.org \
    --cc=ath10k@lists.infradead.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=me@bobcopeland.com \
    --cc=poh@qca.qualcomm.com \
    --cc=sujith@msujith.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.