From patchwork Tue Jul 5 07:52:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 943712 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 p657qqcU010145 for ; Tue, 5 Jul 2011 07:52:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754210Ab1GEHwv (ORCPT ); Tue, 5 Jul 2011 03:52:51 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:46588 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754183Ab1GEHwv (ORCPT ); Tue, 5 Jul 2011 03:52:51 -0400 Received: by pzk9 with SMTP id 9so2236102pzk.19 for ; Tue, 05 Jul 2011 00:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; bh=otn+U/dtPEiVinkcgSPTFUPyxhNUecw3/7iaertVfMM=; b=QrA9wESMEdawyFy43f7x4BwiKJ0GepTd3NtUPfUY9CV5RBKlVEesQHyAPzyZ9qCKOS hX1hfe2wylF3sTl0RSlbGTAOyEwQO8HbdqWegQRLxdFC/yRIT6lwqLPvSdZmOKgHwUpa v/kFEqxZ4gN9/1LLlqVRu9B9P5zH2cOjCIx1Q= Received: by 10.142.172.3 with SMTP id u3mr3372853wfe.224.1309852370927; Tue, 05 Jul 2011 00:52:50 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id b4sm1426111pba.43.2011.07.05.00.52.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jul 2011 00:52:50 -0700 (PDT) Date: Tue, 05 Jul 2011 16:52:47 +0900 Message-ID: <871uy5f9kg.wl%kuninori.morimoto.gx@renesas.com> From: kuninori.morimoto.gx@renesas.com To: Paul Mundt , Magnus Cc: Linux-SH , Kuninori Morimoto Subject: Re: Ecovec (SH7724) board doesn't work on latest linus tree In-Reply-To: References: <20110609063132.GC26006@linux-sh.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") 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]); Tue, 05 Jul 2011 07:52:52 +0000 (UTC) Dear Paul Ecovec board still doesn't work on latest linus tree. Because of below commit. ---------------- commit 3f9b8520b06013939ad247ba08b69529b5f14be1 Author: Paul Mundt Date: Tue May 31 14:38:29 2011 +0900 sh64: Move from P1SEG to CAC_ADDR for consistent sync. sh64 doesn't define a P1SEGADDR, resulting in a build failure. The proper mapping can be attained for both sh32 and 64 via the CAC_ADDR macro, so switch to that instead. Signed-off-by: Paul Mundt ---------------- The output of below patch was 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);