[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 10 Oct 2011 09:40:17 +0100
From: "David Laight" <David.Laight@...LAB.COM>
To: "Benjamin Herrenschmidt" <benh@...nel.crashing.org>,
"Eli Cohen" <eli@....mellanox.co.il>
Cc: <netdev@...r.kernel.org>, "Eli Cohen" <eli@...lanox.co.il>,
<linuxppc-dev@...ts.ozlabs.org>,
"Thadeu Lima de Souza Cascardo" <cascardo@...ux.vnet.ibm.com>,
"Yevgeny Petrilin" <yevgenyp@...lanox.co.il>
Subject: RE: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled
> What is this __iowrite64_copy... oh I see
>
> Nice, somebody _AGAIN_ added a bunch of "generic" IO
> accessors that are utterly wrong on all archs except
> x86 (ok, -almost-).
> There isn't a single bloody memory barrier in there !
Actually memory barriers shouldn't really be added to
any of these 'accessor' functions.
(Or, at least, ones without barriers should be provided.)
The driver may want to to a series of writes, then a
single barrier, before a final write of a command (etc).
in_le32() from io.h is specially horrid!
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists