io_block_mapping in PPC64?

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 26 07:29:58 EST 2005


On Wed, 2005-05-25 at 14:00 +0300, Tzachi Perelstein wrote:
> > > > In the (32bit) PPC arch there is an io_block_mapping function that
> can
> > > > be used to map the internal SRAM with configurable (e.g. cache
> > > > coherence) attributes. Is there any way to it in PPC64 arch? 
> > >
> > > io_block_mapping() isn't really an interface I would recomment for
> > > anybody to use... What about __ioremap() instead ?
> > >
> 
> I've noticed that CPU access to this SRAM as cache inhibited, although I
> called __ioremp with _PAGE_COHERENT flag. Are there any other _PAGE
> flags required?

No, if you didn't set _PAGE_NOCACHE, it should be set as _PAGE_KERNEL |
_PAGE_COHERENT which is fine. I don't see why you would get cache
inhibited accesses that way.

Ben





More information about the Linuxppc64-dev mailing list