netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* howto use ioremap_wc?
@ 2008-05-31  9:02 Brice Goglin
  2008-06-01  1:54 ` Arjan van de Ven
  0 siblings, 1 reply; 6+ messages in thread
From: Brice Goglin @ 2008-05-31  9:02 UTC (permalink / raw)
  To: LKML, netdev, venkatesh.pallipadi@intel.com

Hello,

We're looking at using ioremap_wc() in myri10ge. No drivers seem to be
using it yet, so I'd like to get some clarification regarding ioremap_wc
failures, MTRR and so on.

What we currently do is mtrr_add() and then ioremap. Depending on the
mtrr_add() success, we use the "wc_fifo" or regular PIO with fences to
submit requests to the NIC. How are we supposed to switch this to
ioremap_wc?

Are we sure that if the arch supports _wc, it does not return success
when the underlying plain ioremap worked but setting up _wc() failed? If
so, why does it revert to ioremap_nocache when PAT isn't enabled?

Can we keep the mtrr_add() in the regular path? Or are we supposed to
drop it when the arch provides ioremap_wc and it did not fail?

thanks,
Brice


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-05  4:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-31  9:02 howto use ioremap_wc? Brice Goglin
2008-06-01  1:54 ` Arjan van de Ven
2008-06-02 16:27   ` Brice Goglin
2008-06-02 18:18     ` Loic Prylli
2008-06-03  2:18     ` Arjan van de Ven
2008-06-05  4:53   ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).