From patchwork Thu Jun 9 06:31:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mundt X-Patchwork-Id: 863372 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p596VilT007014 for ; Thu, 9 Jun 2011 06:31:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419Ab1FIGbn (ORCPT ); Thu, 9 Jun 2011 02:31:43 -0400 Received: from linux-sh.org ([111.68.239.195]:42500 "EHLO linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382Ab1FIGbn (ORCPT ); Thu, 9 Jun 2011 02:31:43 -0400 Received: from linux-sh.org (localhost.localdomain [127.0.0.1]) by linux-sh.org (8.14.4/8.14.4) with ESMTP id p596VXrM030426; Thu, 9 Jun 2011 15:31:34 +0900 Received: (from pmundt@localhost) by linux-sh.org (8.14.4/8.14.4/Submit) id p596VXsO030368; Thu, 9 Jun 2011 15:31:33 +0900 X-Authentication-Warning: linux-sh.org: pmundt set sender to lethal@linux-sh.org using -f Date: Thu, 9 Jun 2011 15:31:33 +0900 From: Paul Mundt To: Kuninori Morimoto Cc: Magnus , Linux-SH Subject: Re: Ecovec (SH7724) board doesn't work on latest linus tree Message-ID: <20110609063132.GC26006@linux-sh.org> References: Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 09 Jun 2011 06:31:44 +0000 (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 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);