* RE: What kind of Linux address must I use to set the SAR reg. of the DMA ctrl ?
@ 2003-05-07 13:14 Callebaut Benoit
0 siblings, 0 replies; 3+ messages in thread
From: Callebaut Benoit @ 2003-05-07 13:14 UTC (permalink / raw)
To: linuxppc-embedded
Thanks a lot Matt,
now the Memory to memory transfer works but I don't see any data on the PCI
side althought the status register of the DMA controller report no error.
I read that I must use untranslated PCI address if the outbound translation
windows are not enabled (this is my case).
So I suppose I must take the address coming from the PCI detection and the
ioremap following it (those appearing in the log like "kernel :PCI:00:12.0:
Resource 1:bf000000-bf7FFFFF") and not the translated one.
I tried so but only 0XFFFFFFFF appears in the memory of the PCI device.
Is it possible that the snooping or caching issue be the problem ?
Regards,
Benoit Callebaut
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* What kind of Linux address must I use to set the SAR reg. of the DMA ctrl ?
@ 2003-05-07 6:52 Callebaut Benoit
2003-05-07 7:50 ` Matt Porter
0 siblings, 1 reply; 3+ messages in thread
From: Callebaut Benoit @ 2003-05-07 6:52 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
I am writing the code to start a DMA transfer with the built-in DMA controller
of the MPC8245. The purpose is to do Memory to PCI transfers. The PCI part
seems to be OK ( memory of the device is written) the the source address seems
to be wrong since I read 0XFFFFFFFF as data in the device. I tried with bus
and physical address (using virt_to_bus & virt_to_phys functions) but this
doesn't give good results.
So I ask myself which kind of linux address must I use to configure the SAR
register of the Dual channel DMA controller ?
If It works I will post a patch of my work.
Thanks
------------------------------------------------------------------------------
----
Benoit Callebaut
Software Development Engineer
Barco | Control Rooms
Noordlaan 5, 8520 Kuurne, Belgium
Tel +32(0)56 36 84 28
Fax +32(0)56 36 86 05
mailto:benoit.callebaut@barco.com
http://www.barcocontrolrooms.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What kind of Linux address must I use to set the SAR reg. of the DMA ctrl ?
2003-05-07 6:52 Callebaut Benoit
@ 2003-05-07 7:50 ` Matt Porter
0 siblings, 0 replies; 3+ messages in thread
From: Matt Porter @ 2003-05-07 7:50 UTC (permalink / raw)
To: Callebaut Benoit; +Cc: linuxppc-embedded
On Wed, May 07, 2003 at 02:52:06AM -0400, Callebaut Benoit wrote:
>
> Hello,
> I am writing the code to start a DMA transfer with the built-in DMA controller
> of the MPC8245. The purpose is to do Memory to PCI transfers. The PCI part
> seems to be OK ( memory of the device is written) the the source address seems
> to be wrong since I read 0XFFFFFFFF as data in the device. I tried with bus
> and physical address (using virt_to_bus & virt_to_phys functions) but this
> doesn't give good results.
> So I ask myself which kind of linux address must I use to configure the SAR
> register of the Dual channel DMA controller ?
Well, there's no special "linux address". The DMA controller takes
a physical address. I think you are specifically asking about
configuring the source address register when doing a Mem->PCI
transfer. In that case, if you are using lowmem system memory as
the source address, then virt_to_phys will generate the correct
physical system memory address.
Regards,
--
Matt Porter
mporter@kernel.crashing.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-07 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-07 13:14 What kind of Linux address must I use to set the SAR reg. of the DMA ctrl ? Callebaut Benoit
-- strict thread matches above, loose matches on Subject: below --
2003-05-07 6:52 Callebaut Benoit
2003-05-07 7:50 ` Matt Porter
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).