From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from parcelfarce.linux.theplanet.co.uk (parcelfarce.linux.theplanet.co.uk [195.92.249.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id BEFEE67A77 for ; Tue, 28 Jun 2005 07:07:53 +1000 (EST) Date: Mon, 27 Jun 2005 12:28:57 -0300 From: Marcelo Tosatti To: Kumar Gala , Pantelis Antoniou , Dan Malek Message-ID: <20050627152857.GA10005@logos.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ppc-embedded Subject: cpm_uart: use dpram for early console List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Panto, Kumar, Can something semantically equivalent to this be merged please. m8xx_cpm_hostalloc() can't rely on using the coherent DMA allocator early on boot because the VM is not fully up yet. The current code relies on the "bootmem_page" allocated by m8xx_cpm_reset(), which must be killed. --- cpm_uart_cpm1.c.orig 2005-06-27 17:51:53.000000000 -0300 +++ cpm_uart_cpm1.c 2005-06-27 17:55:45.000000000 -0300 @@ -155,7 +155,7 @@ memsz = L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize) + L1_CACHE_ALIGN(pinfo->tx_nrfifos * pinfo->tx_fifosize); if (is_con) { - mem_addr = (u8 *) m8xx_cpm_hostalloc(memsz); + mem_addr = (u8 *) cpm_dpram_addr(cpm_dpalloc(memsz, 8)); dma_addr = 0; } else mem_addr = dma_alloc_coherent(NULL, memsz, &dma_addr,