[openib-general] Re: [PATCH 0/7] AMSO1100 RNIC Driver

Tom Tucker tom at opengridcomputing.com
Thu Mar 9 07:41:21 PST 2006


On Thu, 2006-03-09 at 17:11 +0200, Michael S. Tsirkin wrote:
> Quoting r. Roland Dreier <roland.list at gmail.com>:
> > There's not really a great solution to this.  The best I've come up with
> > is to use __raw_writel() instead, but then you have to be careful, because
> > in addition to not byte swapping, the __raw variants also don't have any
> > implied barriers, so you need to add your own wmb()s.
> 
> Could iowrite32be be what you are looking for?

Well, to add more confusion to this pile, it looks like the
implementation of this function does what we want WRT byte swapping, but
on power and ppc it has memory barriers, but the x86 versions do not --
go figure.
> 




More information about the general mailing list