lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 18 Mar 2015 13:27:15 +0100 From: Nicolas Ferre <nicolas.ferre@...el.com> To: Hans-Christian Egtvedt <egtvedt@...fundet.no>, Ben Dooks <ben.dooks@...ethink.co.uk> CC: <linux-kernel@...ts.codethink.co.uk>, Linux Networking List <netdev@...r.kernel.org>, Arun Chandran <achandran@...sta.com>, "Haavard Skinnemoen" <hskinnemoen@...il.com>, Linux Kernel List <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] net: macb: fix endian code for avr32 Le 18/03/2015 13:25, Hans-Christian Egtvedt a écrit : > Around Wed 18 Mar 2015 10:57:27 +0000 or thereabout, Ben Dooks wrote: >> [note this has yet to be compile tested on avr32] >> > > Compiles fine without warnings. > >> The changes to run the macb driver in 29af05aeb98e ("net: macb: >> Add big endian CPU support") to support big endian operation on >> ARM may not work on AVR32 which already is naturally big endian >> architecture (and the driver already works here). > > The 29af05aeb98e will brick the macb driver for AVR32, as readZ_relaxed > translates to readZ calls, which turns into le_to_cpu reads. > >> In this case the readl/writel relaxed will do the opposite of __raw >> accesors which arleady work. Add an indirection of cdneth_ prefixed >> accesors which are changed as necessary. Also do not issue the DMA >> descritpor endian fetch configuration for AVR32. >> >> From discussions with Arnd Bergman, the following fix changes the use >> of readl_relaxed and writel_relaxed with a version that can be put >> back to __raw_readl/__raw_writel for the CONFIG_AVR32 case (and also >> remove the change to the DMA descriptor endian). > > Thank you for spotting this. > >> Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk> >> Reported-by: Arnd Bergmann <arnd@...db.de> > > Acked-by: Hans-Christian Egtvedt <egtvedt@...fundet.no> Acked-by: Nicolas Ferre <nicolas.ferre@...el.com> >> -- >> CC: Linux Networking List <netdev@...r.kernel.org> >> CC: Arun Chandran <achandran@...sta.com> >> CC: Haavard Skinnemoen <hskinnemoen@...il.com> >> CC: Hans-Christian Egtvedt <egtvedt@...fundet.no> >> CC: Linux Kernel List <linux-kernel@...r.kernel.org> >> CC: Nicolas Ferre <nicolas.ferre@...el.com> >> --- >> drivers/net/ethernet/cadence/macb.c | 14 +++++++------- >> drivers/net/ethernet/cadence/macb.h | 20 ++++++++++++++------ >> 2 files changed, 21 insertions(+), 13 deletions(-) > > <snipp diff> > -- Nicolas Ferre -- 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