From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Kumar Gala <galak@freescale.com>,
Pantelis Antoniou <panto@intracom.gr>,
Dan Malek <dan@embeddededge.com>
Cc: linux-ppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: cpm_uart: use dpram for early console
Date: Mon, 27 Jun 2005 12:28:57 -0300 [thread overview]
Message-ID: <20050627152857.GA10005@logos.cnet> (raw)
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,
reply other threads:[~2005-06-27 21:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050627152857.GA10005@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=dan@embeddededge.com \
--cc=galak@freescale.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=panto@intracom.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox