[lkml]   [2006]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 3/4] myri10ge - Driver core
    On Fri, 2006-05-26 at 06:30 -0400, Jeff Garzik wrote:
    > Benjamin Herrenschmidt wrote:
    > >>> 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.
    > >> Stupid question: pci_iomap() is NOT what you are looking for, right?
    > >>
    > >> Implementation is at the end of lib/iomap.c
    > >
    > > No, there is no difference there, pci_iomap won't help for passing in
    > > platform specific page attributes for things like write combining.
    > Since we already have ioremap_nocache(), maybe adding ioremap_wcomb() is
    > appropriate?

    Yes, but be careful there.. on ppc, not setting the page "guarded" bit
    will enable write combining on various CPUs but will also enable
    speculative reads, prefetch, etc... so it's not "just" WC, you have to
    know for sure what you are doing with that memory (basically, enable


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-05-26 12:58    [W:0.021 / U:17.112 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site