Re: howto use ioremap_wc?

From: Arjan van de Ven
Date: Mon Jun 02 2008 - 22:18:47 EST


On Mon, 02 Jun 2008 18:27:31 +0200
Brice Goglin <brice@xxxxxxxx> wrote:


>
> Agreed, that would be nice!
>
> >From what we discussed here after your reply, our plan is now to just
> replace
> ioremap+mtrr_add

which doesn't work as ioremap() may/will force uncached ;)


> with
> ioremap_wc+mtrr_add
>
> If mtrr_add() is moved into ioremap_wc(), we'll remove it from
> myri10ge. For now, when PAT is enabled, we may have PAT + MTRR both
> doing WC, but I don't think it can break anything, right?

Both having WC is nicely consistent and the right thing happens...

--
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/