* problems with dma_alloc_coherent and consistent_alloc
@ 2005-10-05 21:21 Earl Olsen
2005-10-05 23:05 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Earl Olsen @ 2005-10-05 21:21 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1740 bytes --]
(Sorry, I had trouble outlook and messed up the subject line)
We are using a PPC 750 with 512m of RAM.
1) When we try to allocate memory using consistent_alloc we get a
failure with get_pteptr - there is no pte.
2) When we try using dma_alloc_coherent the system locks up when
we try to access that memory.
I'm guessing these problems stem from the memory being allocated
is from the 384 bytes of RAM that gets handed over to BATs 2 AND 3,
not the remaining memory handled by the page table.
In the first case, pages are allocated, but since if came from the
BAT region, will not have a page table mapping.
In the second case, if dma_alloc_init gets memory from the BAT
region, then we have the BAT and page management mechanisms
both trying to control the memory.
Does this sound like a good theory? Has anybody encountered
this problem before?
Thanks
--
Earl Olsen
Senior Software Engineer
Dilithium Networks, Inc.
TEL:+1 707-792-3925
earl.olsen@dilithiumnetworks.com
www.dilithiumnetworks.com
Communications for a Borderless World
This electronic message from Dilithium Networks contains information
which may be privileged or confidential. It is intended to be for the
use of the recipient(s) named above. If you are not the intended
recipient please return the message to the sender by replying to it and
then delete the message from your computer. Dilithium Networks shall not
be held liable to any person resulting from the use of any information
contained in this e-mail and shall not be liable to any person who acts
or omits to do anything in reliance upon it. Dilithium Networks does not
accept responsibility for changes made to this message after it was
sent.
[-- Attachment #2: Type: text/html, Size: 3527 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problems with dma_alloc_coherent and consistent_alloc
2005-10-05 21:21 problems with dma_alloc_coherent and consistent_alloc Earl Olsen
@ 2005-10-05 23:05 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2005-10-05 23:05 UTC (permalink / raw)
To: Earl Olsen; +Cc: linuxppc-embedded
On Wed, Oct 05, 2005 at 02:21:01PM -0700, Earl Olsen wrote:
>
> (Sorry, I had trouble outlook and messed up the subject line)
>
> We are using a PPC 750 with 512m of RAM.
I dont know much about your hardware, but I'll shoot anyway.
> 1) When we try to allocate memory using consistent_alloc we get a
> failure with get_pteptr - there is no pte.
>
> 2) When we try using dma_alloc_coherent the system locks up when
> we try to access that memory.
>
> I'm guessing these problems stem from the memory being allocated
> is from the 384 bytes of RAM that gets handed over to BATs 2 AND 3,
You mean Mbytes?
> not the remaining memory handled by the page table.
>
> In the first case, pages are allocated, but since if came from the
> BAT region, will not have a page table mapping.
>
> In the second case, if dma_alloc_init gets memory from the BAT
> region, then we have the BAT and page management mechanisms
> both trying to control the memory.
>
> Does this sound like a good theory? Has anybody encountered
> this problem before?
The kernel should create pte tables for all RAM, even if parts of
memory are not accessed through pagetable mappings.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-06 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 21:21 problems with dma_alloc_coherent and consistent_alloc Earl Olsen
2005-10-05 23:05 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).