Message ID | 20110609063132.GC26006@linux-sh.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Dear Paul > Grr. Can you try with the following debug patch? (snip) > + printk_once("%s: vaddr %p, CAC %08lx, P1SEG %08lx\n", __func__, vaddr, > + CAC_ADDR((unsigned long)vaddr), > + P1SEGADDR((unsigned long)vaddr)); > + It say dma_cache_sync: vaddr 8e000000, CAC 6e000000, P1SEG 8e000000 Best regards -- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/sh/mm/consistent.c b/arch/sh/mm/consistent.c index f251b5f..01bb4ee 100644 --- a/arch/sh/mm/consistent.c +++ b/arch/sh/mm/consistent.c @@ -84,6 +84,10 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size, addr = __in_29bit_mode() ? (void *)CAC_ADDR((unsigned long)vaddr) : vaddr; + printk_once("%s: vaddr %p, CAC %08lx, P1SEG %08lx\n", __func__, vaddr, + CAC_ADDR((unsigned long)vaddr), + P1SEGADDR((unsigned long)vaddr)); + switch (direction) { case DMA_FROM_DEVICE: /* invalidate only */ __flush_invalidate_region(addr, size);