LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* cpm_uart: use dpram for early console
@ 2005-06-27 15:28 Marcelo Tosatti
  0 siblings, 0 replies; only message in thread
From: Marcelo Tosatti @ 2005-06-27 15:28 UTC (permalink / raw)
  To: Kumar Gala, Pantelis Antoniou, Dan Malek; +Cc: linux-ppc-embedded


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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-27 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 15:28 cpm_uart: use dpram for early console Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox