Skip to content

Commit f855b2f

Browse files
oohalmpe
authored andcommitted
powerpc/mm: Wire up ioremap_cache()
The default implementation of ioremap_cache() is aliased to ioremap(). On powerpc ioremap() creates cache-inhibited mappings by default which is almost certainly not what you wanted. Signed-off-by: Oliver O'Halloran <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent a050d20 commit f855b2f

File tree

1 file changed

+2
-0
lines changed
  • arch/powerpc/include/asm

1 file changed

+2
-0
lines changed

arch/powerpc/include/asm/io.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ extern void __iomem *ioremap_prot(phys_addr_t address, unsigned long size,
759759
extern void __iomem *ioremap_wc(phys_addr_t address, unsigned long size);
760760
#define ioremap_nocache(addr, size) ioremap((addr), (size))
761761
#define ioremap_uc(addr, size) ioremap((addr), (size))
762+
#define ioremap_cache(addr, size) \
763+
ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL))
762764

763765
extern void iounmap(volatile void __iomem *addr);
764766

0 commit comments

Comments
 (0)