diff mbox

Ecovec (SH7724) board doesn't work on latest linus tree

Message ID 20110609063132.GC26006@linux-sh.org (mailing list archive)
State Superseded
Headers show

Commit Message

Paul Mundt June 9, 2011, 6:31 a.m. UTC
On Thu, Jun 09, 2011 at 03:21:17PM +0900, Kuninori Morimoto wrote:
> Unable to handle kernel paging request at virtual address 6e000000              
> pc = 8800ef82                                                                   
> *pde = 00000000                                                                 
> Oops: 0000 [#1]                                                                 
> Modules linked in:                                                              
>                                                                                 
> Pid : 1, Comm:          swapper                                                 
> CPU : 0                 Not tainted  (3.0.0-rc2+ #910)                          
>                                                                                 
> PC is at sh4__flush_purge_region+0x30/0x8a                                      
> PR is at dma_cache_sync+0x32/0x54                                               

Grr. Can you try with the following debug patch?

---

--
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

Comments

Kuninori Morimoto June 9, 2011, 6:42 a.m. UTC | #1
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 mbox

Patch

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);