Thread (28 messages) 28 messages, 8 authors, 2006-05-26

Re: [PATCH 3/4] myri10ge - Driver core

flat view

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2006-05-25 07:57:20
Also in: lkml

On Wed, 2006-05-24 at 01:39 +1000, Anton Blanchard wrote:
quoted
+#ifdef CONFIG_MTRR
+	mgp->mtrr = mtrr_add(mgp->iomem_base, mgp->board_span,
+			     MTRR_TYPE_WRCOMB, 1);
+#endif
...
quoted
+	mgp->sram = ioremap(mgp->iomem_base, mgp->board_span);
Not sure how we are meant to specify write through in drivers. Any ideas Ben?
No proper interface exposed, he'll have to do an #ifdef powerpc here or
such and use __ioremap with explicit page attributes. I have a hack to
do that automatically for memory covered by prefetchable PCI BARs when
mmap'ing from userland but not for kernel ioremap.

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help