Re: dvd kernelmodule: memory address problem

Groepaz <[email protected]>
Newsgroups gmane.linux.ports.game-cube.devel
Organization Hitmen
Message-ID <[email protected]>
On Wednesday 14 April 2004 18:44, JockyW wrote:
> Thanks for your assistance Arthur,
>
> My simple dvd characterdevice works quite well. I rewrote the linux IRQ2
> handler to handle all dvd irqs (not just the cover int).
>
> But now I stumbled on a memory problem. My devicedriver uses a read buffer
> which is a 2048 bytes static char array. When I print the address, it sits
> on 0xC200EB24. That address doesn't work when I pass it to the DMA Memory
> Address Register. It is a strange address, because in "yagcd"
> http://www.gc-linux.org/docs/yagcd/chap4.html#sec4 it is written that
> uncached logical ram addresses run from 0xc0000000-0xc17fffff
>
> What kind of address translation should I apply to get the dma to work?

for a start, make sure the address you pass to the dma registers is 32 byte
aligned (didnt i write it somewhere? :=P)

gpz



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.