[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.1.10.0804280046100.3261@apollo.tec.linutronix.de>
Date: Mon, 28 Apr 2008 01:01:50 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Jeff Garzik <jeff@...zik.org>
cc: James Bottomley <James.Bottomley@...senPartnership.com>,
Ingo Molnar <mingo@...e.hu>,
linux-kernel <linux-kernel@...r.kernel.org>,
"H. Peter Anvin" <hpa@...or.com>,
"David S. Miller" <davem@...emloft.net>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [patch] x86, voyager: fix ioremap_nocache()
On Sun, 27 Apr 2008, Jeff Garzik wrote:
>
> Isn't there Yet More Breakage in lib/iomap.c, given these new semantics?
>
> if (flags & IORESOURCE_MEM) {
> if (flags & IORESOURCE_CACHEABLE)
> return ioremap(start, len);
> return ioremap_nocache(start, len);
> }
That's broken anyway as we are inconsistent across
architectures. ioremap defaults to uncached at least on:
POWERPC, ARM, MIPS, SH, FRV, PARISC, H8300, M68K, BLACKFIN, M68KNOMMU
So changing the above to ioremap_cache() would provide the desired
results across architectures.
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists