On Tue, Jun 2, 2015 at 10:20 AM, Arnd Bergmann <a...@arndb.de> wrote: >> > --- a/arch/mn10300/include/asm/io.h >> > +++ b/arch/mn10300/include/asm/io.h >> > @@ -283,6 +283,7 @@ static inline void __iomem *ioremap_nocache(unsigned >> > long offset, unsigned long >> > >> > #define ioremap_wc ioremap_nocache >> > #define ioremap_wt ioremap_nocache >> > +#define ioremap_cache ioremap_nocache >> >> From the comment in ioremap_nocache(), ioremap() may be cacheable in >> this arch. > > Right, and I guess that would be a bug. ;-) > > mn10300 decides caching on the address, so presumably all arguments passed > into
Aha, like MIPS... > ioremap here already have that bit set. I've checked all the resource > definitions for mn10300, and they are all between 0xA0000000 and 0xBFFFFFFF, > which is non-cacheable. But ioremap() clears that bit again: static inline void __iomem *ioremap(unsigned long offset, unsigned long size) { return (void __iomem *)(offset & ~0x20000000); } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/