From: Conor McLoughlin <cml3227@eircom.net>
To: linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: Does kmalloc on MPC82xx work correctly with GFP_DMA?
Date: Tue, 19 Oct 2004 09:36:04 +0100 [thread overview]
Message-ID: <4174D1F4.2050506@eircom.net> (raw)
In-Reply-To: <BE328096-211A-11D9-8079-003065F9B7DC@embeddededge.com>
Thanks for your response Dan, but there is still something that I
am not seeing correctly here.
> No, the kmalloc() space is not covered by BATs (but, that isn't
> relevant for this discussion).
On my board, I can use my BDI2000 to look at the BAT registers.
DBAT2U is 0xC00003FE and DBAT0L is 0x00000002.
To me this looks like all of my SDRAM starting at effective address
0xC0000000 is handled by DBAT2 with cache enabled.
If I look at where it is allocating the memory with kmalloc, it is
in this area. I do get a different area of memory assigned depending
on whether or not I use GPF_DMA, but it is still in this effective area
covered by DBAT2. What am I missing here?
> Yes, it is DMA safe. That's why this driver works :-)
Just because it works doesn't mean that there might not be a bug
lurking there.
I agree that it is unlikely, but I don't understand how an area of
memory at effective address 0xCxxxxxxx is not covered by the BATs.
--Conor
next prev parent reply other threads:[~2004-10-19 8:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 4:01 SCC UART hang Jeff Angielski
2004-10-18 9:30 ` Does kmalloc on MPC82xx work correctly with GFP_DMA? Conor McLoughlin
2004-10-18 15:31 ` Dan Malek
2004-10-19 8:36 ` Conor McLoughlin [this message]
2004-10-19 14:15 ` Dan Malek
2004-10-19 15:26 ` Conor McLoughlin
2004-10-19 14:31 ` Matt Porter
2004-10-19 14:27 ` Matt Porter
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=4174D1F4.2050506@eircom.net \
--to=cml3227@eircom.net \
--cc=linuxppc-embedded@ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.