Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756134AbXIWURq (ORCPT ); Sun, 23 Sep 2007 16:17:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755201AbXIWUR0 (ORCPT ); Sun, 23 Sep 2007 16:17:26 -0400 Received: from mail0.scram.de ([78.47.204.202]:56363 "EHLO mail0.scram.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754983AbXIWURY (ORCPT ); Sun, 23 Sep 2007 16:17:24 -0400 X-Spam-Score: -4.249 X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.1 AWL AWL: From: address is in the auto white-list Message-ID: <46F6C9D1.7090502@scram.de> Date: Sun, 23 Sep 2007 22:17:21 +0200 From: Jochen Friedrich User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070828) MIME-Version: 1.0 To: linuxppc-embedded@ozlabs.org CC: linux-kernel@vger.kernel.org, Marcelo Tosatti Subject: [PATCH2/4] [PPC] Fix cpm_dpram_addr returning phys mem instead of virt mem Content-Type: multipart/mixed; boundary="------------010905020006000208040009" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1614 Lines: 47 This is a multi-part message in MIME format. --------------010905020006000208040009 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit cpm_dpram_addr returns physical memory of the DP RAM instead of iomapped virtual memory. As there usually is a 1:1 MMU map of the IMMR area, this is often not noticed. However, cpm_dpram_phys assumes this iomapped virtual memory and returns garbage on the 1:1 mapped memory causing CPM1 uart console to fail. This patch fixes the problem (copied from the powerpc tree). Signed-off-by: Jochen Friedrich --- arch/ppc/8xx_io/commproc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --------------010905020006000208040009 Content-Type: text/x-patch; name="7a0161f68ca0e487c0119bbc7ee09189b87c1b06.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="7a0161f68ca0e487c0119bbc7ee09189b87c1b06.diff" diff --git a/arch/ppc/8xx_io/commproc.c b/arch/ppc/8xx_io/commproc.c index 7088428..9da880b 100644 --- a/arch/ppc/8xx_io/commproc.c +++ b/arch/ppc/8xx_io/commproc.c @@ -459,7 +459,7 @@ EXPORT_SYMBOL(cpm_dpdump); void *cpm_dpram_addr(unsigned long offset) { - return ((immap_t *)IMAP_ADDR)->im_cpm.cp_dpmem + offset; + return (void *)(dpram_vbase + offset); } EXPORT_SYMBOL(cpm_dpram_addr); --------------010905020006000208040009-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/