All of lore.kernel.org
 help / color / mirror / Atom feed
* MPC8541E DMA transfer
@ 2005-08-03 15:04 Bizhan Gholikhamseh (bgholikh)
  2005-08-03 18:24 ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Bizhan Gholikhamseh (bgholikh) @ 2005-08-03 15:04 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

 
Hi all,
I am developing a linux driver (2.6.10) for Freescale MPC8541E
(customized board) to read and write 8 buffers (each buffer is 960 bytes
long) every 10 ms to/from a custom made PCI card with on board DSP Chip.
The chip's internal and external memories are memory mapped to the CPU
address space. 
For reason that is beyond the discussion here, the DMA request line on
the PCI card is not connected although the PCI card has DMA
capabilities. 
So what are my options? 
Could I still do DMA transfer from the Host to the device?
 
Many thanks in advance,
Bizhan

[-- Attachment #2: Type: text/html, Size: 1601 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: MPC8541E DMA transfer
  2005-08-03 15:04 Bizhan Gholikhamseh (bgholikh)
@ 2005-08-03 18:24 ` Kumar Gala
  0 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2005-08-03 18:24 UTC (permalink / raw)
  To: Bizhan Gholikhamseh \((bgholikh\)); +Cc: linuxppc-embedded

I dont see any reason you couldn't use the internal DMA engine on the  
MPC8541E to do what you need.  You will just need to schedule the  
work every 10ms.

- kumar

On Aug 3, 2005, at 10:04 AM, Bizhan Gholikhamseh \(((bgholikh\))) wrote:

>
> Hi all,
> I am developing a linux driver (2.6.10) for Freescale MPC8541E
> (customized board) to read and write 8 buffers (each buffer is 960  
> bytes
> long) every 10 ms to/from a custom made PCI card with on board DSP  
> Chip.
> The chip's internal and external memories are memory mapped to the CPU
> address space.
> For reason that is beyond the discussion here, the DMA request line on
> the PCI card is not connected although the PCI card has DMA
> capabilities.
> So what are my options?
> Could I still do DMA transfer from the Host to the device?
>
> Many thanks in advance,
> Bizhan
>
> <ATT293768.txt>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: MPC8541E DMA transfer
@ 2005-08-03 18:26 Bizhan Gholikhamseh (bgholikh)
  2005-08-03 21:57 ` Kumar Gala
  2005-08-04 12:12 ` Clemens Koller
  0 siblings, 2 replies; 7+ messages in thread
From: Bizhan Gholikhamseh (bgholikh) @ 2005-08-03 18:26 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

Is there any support in Linux 2.6.X for using this controller, if so,
are you aware of any test driver I can take a look at?

Thanks,
Bizhan

Many thanks in =20

-----Original Message-----
From: Kumar Gala [mailto:kumar.gala@freescale.com]=20
Sent: Wednesday, August 03, 2005 11:24 AM
To: Bizhan Gholikhamseh (bgholikh)
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8541E DMA transfer

I dont see any reason you couldn't use the internal DMA engine on the
MPC8541E to do what you need.  You will just need to schedule the work
every 10ms.

- kumar

On Aug 3, 2005, at 10:04 AM, Bizhan Gholikhamseh \(((bgholikh\))) wrote:

>
> Hi all,
> I am developing a linux driver (2.6.10) for Freescale MPC8541E=20
> (customized board) to read and write 8 buffers (each buffer is 960=20
> bytes
> long) every 10 ms to/from a custom made PCI card with on board DSP=20
> Chip.
> The chip's internal and external memories are memory mapped to the CPU

> address space.
> For reason that is beyond the discussion here, the DMA request line on

> the PCI card is not connected although the PCI card has DMA=20
> capabilities.
> So what are my options?
> Could I still do DMA transfer from the Host to the device?
>
> Many thanks in advance,
> Bizhan
>
> <ATT293768.txt>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: MPC8541E DMA transfer
  2005-08-03 18:26 MPC8541E DMA transfer Bizhan Gholikhamseh (bgholikh)
@ 2005-08-03 21:57 ` Kumar Gala
  2005-08-04 12:12 ` Clemens Koller
  1 sibling, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2005-08-03 21:57 UTC (permalink / raw)
  To: Bizhan Gholikhamseh \(bgholikh\); +Cc: linuxppc-embedded list

There has been some example code posted in the past to the list.  I  
suggest searching the archives and looking for something posted by  
Jason McMullan.

- kumar

On Aug 3, 2005, at 1:26 PM, Bizhan Gholikhamseh \\((bgholikh\\)) wrote:

> Is there any support in Linux 2.6.X for using this controller, if so,
> are you aware of any test driver I can take a look at?
>
> Thanks,
> Bizhan
>
> Many thanks in
>
> -----Original Message-----
> From: Kumar Gala [mailto:kumar.gala@freescale.com]
> Sent: Wednesday, August 03, 2005 11:24 AM
> To: Bizhan Gholikhamseh (bgholikh)
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: MPC8541E DMA transfer
>
> I dont see any reason you couldn't use the internal DMA engine on the
> MPC8541E to do what you need.  You will just need to schedule the work
> every 10ms.
>
> - kumar
>
> On Aug 3, 2005, at 10:04 AM, Bizhan Gholikhamseh \(((bgholikh\)))  
> wrote:
>
>
>>
>> Hi all,
>> I am developing a linux driver (2.6.10) for Freescale MPC8541E
>> (customized board) to read and write 8 buffers (each buffer is 960
>> bytes
>> long) every 10 ms to/from a custom made PCI card with on board DSP
>> Chip.
>> The chip's internal and external memories are memory mapped to the  
>> CPU
>>
>
>
>> address space.
>> For reason that is beyond the discussion here, the DMA request  
>> line on
>>
>
>
>> the PCI card is not connected although the PCI card has DMA
>> capabilities.
>> So what are my options?
>> Could I still do DMA transfer from the Host to the device?
>>
>> Many thanks in advance,
>> Bizhan
>>
>> <ATT293768.txt>
>>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: MPC8541E DMA transfer
  2005-08-03 18:26 MPC8541E DMA transfer Bizhan Gholikhamseh (bgholikh)
  2005-08-03 21:57 ` Kumar Gala
@ 2005-08-04 12:12 ` Clemens Koller
  1 sibling, 0 replies; 7+ messages in thread
From: Clemens Koller @ 2005-08-04 12:12 UTC (permalink / raw)
  To: Bizhan Gholikhamseh (bgholikh); +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2434 bytes --]

Hello, Bizhan!
and all the other mpc85xx DMA fans.

I am working on the mpc85xx dma stuff (based on Jason's work)
on the lastest 2.6.x kernels. My cpu is a mpc8540.
That's all work in progress, so have a look at the code.

Attached you will find some of my test code (a separate kernal module)
which should compile fine for 2.6 now. Make a symlink ~/linux to the
latest 2.6 kernel or change the makefile. There is also the latest
immap_85xx.h (almost complete) included. Some old code is commented out...

Not all code is enabled in the module yet, and the dma_test routine
copys data from physical memory you might not have in your hardware.
Please change that according to your setup.

Feedback is welcome!

Enjoy!

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19


Bizhan Gholikhamseh (bgholikh) wrote:
> Is there any support in Linux 2.6.X for using this controller, if so,
> are you aware of any test driver I can take a look at?
> 
> Thanks,
> Bizhan
> 
> Many thanks in  
> 
> -----Original Message-----
> From: Kumar Gala [mailto:kumar.gala@freescale.com] 
> Sent: Wednesday, August 03, 2005 11:24 AM
> To: Bizhan Gholikhamseh (bgholikh)
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: MPC8541E DMA transfer
> 
> I dont see any reason you couldn't use the internal DMA engine on the
> MPC8541E to do what you need.  You will just need to schedule the work
> every 10ms.
> 
> - kumar
> 
> On Aug 3, 2005, at 10:04 AM, Bizhan Gholikhamseh \(((bgholikh\))) wrote:
> 
> 
>>Hi all,
>>I am developing a linux driver (2.6.10) for Freescale MPC8541E 
>>(customized board) to read and write 8 buffers (each buffer is 960 
>>bytes
>>long) every 10 ms to/from a custom made PCI card with on board DSP 
>>Chip.
>>The chip's internal and external memories are memory mapped to the CPU
> 
> 
>>address space.
>>For reason that is beyond the discussion here, the DMA request line on
> 
> 
>>the PCI card is not connected although the PCI card has DMA 
>>capabilities.
>>So what are my options?
>>Could I still do DMA transfer from the Host to the device?
>>
>>Many thanks in advance,
>>Bizhan
>>
>><ATT293768.txt>
>>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 

[-- Attachment #2: mpc85xx_dma.tar.gz --]
[-- Type: application/octet-stream, Size: 20570 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: MPC8541E DMA transfer
@ 2005-08-04 16:52 Bizhan Gholikhamseh (bgholikh)
  2005-08-04 19:44 ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Bizhan Gholikhamseh (bgholikh) @ 2005-08-04 16:52 UTC (permalink / raw)
  To: Clemens Koller; +Cc: linuxppc-embedded

Hi Clemens,
Thanks for the code, the processor I am using is MPC8541E which I
believe have the same DMA engine as mpc8540. I will try it and will let
you know how it worked.

Thanks,
Bizhan=20

-----Original Message-----
From: Clemens Koller [mailto:clemens.koller@anagramm.de]=20
Sent: Thursday, August 04, 2005 5:13 AM
To: Bizhan Gholikhamseh (bgholikh)
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8541E DMA transfer

Hello, Bizhan!
and all the other mpc85xx DMA fans.

I am working on the mpc85xx dma stuff (based on Jason's work) on the
lastest 2.6.x kernels. My cpu is a mpc8540.
That's all work in progress, so have a look at the code.

Attached you will find some of my test code (a separate kernal module)
which should compile fine for 2.6 now. Make a symlink ~/linux to the
latest 2.6 kernel or change the makefile. There is also the latest
immap_85xx.h (almost complete) included. Some old code is commented
out...

Not all code is enabled in the module yet, and the dma_test routine
copys data from physical memory you might not have in your hardware.
Please change that according to your setup.

Feedback is welcome!

Enjoy!

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19


Bizhan Gholikhamseh (bgholikh) wrote:
> Is there any support in Linux 2.6.X for using this controller, if so,=20
> are you aware of any test driver I can take a look at?
>=20
> Thanks,
> Bizhan
>=20
> Many thanks in
>=20
> -----Original Message-----
> From: Kumar Gala [mailto:kumar.gala@freescale.com]
> Sent: Wednesday, August 03, 2005 11:24 AM
> To: Bizhan Gholikhamseh (bgholikh)
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: MPC8541E DMA transfer
>=20
> I dont see any reason you couldn't use the internal DMA engine on the=20
> MPC8541E to do what you need.  You will just need to schedule the work

> every 10ms.
>=20
> - kumar
>=20
> On Aug 3, 2005, at 10:04 AM, Bizhan Gholikhamseh \(((bgholikh\)))
wrote:
>=20
>=20
>>Hi all,
>>I am developing a linux driver (2.6.10) for Freescale MPC8541E=20
>>(customized board) to read and write 8 buffers (each buffer is 960=20
>>bytes
>>long) every 10 ms to/from a custom made PCI card with on board DSP=20
>>Chip.
>>The chip's internal and external memories are memory mapped to the CPU
>=20
>=20
>>address space.
>>For reason that is beyond the discussion here, the DMA request line on
>=20
>=20
>>the PCI card is not connected although the PCI card has DMA=20
>>capabilities.
>>So what are my options?
>>Could I still do DMA transfer from the Host to the device?
>>
>>Many thanks in advance,
>>Bizhan
>>
>><ATT293768.txt>
>>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: MPC8541E DMA transfer
  2005-08-04 16:52 Bizhan Gholikhamseh (bgholikh)
@ 2005-08-04 19:44 ` Kumar Gala
  0 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2005-08-04 19:44 UTC (permalink / raw)
  To: Bizhan Gholikhamseh \((bgholikh\)); +Cc: linuxppc-embedded

All 85xx processors to date have the same 4 channel DMA engine.

- kumar

On Aug 4, 2005, at 11:52 AM, Bizhan Gholikhamseh \(((bgholikh\))) wrote:

> Hi Clemens,
> Thanks for the code, the processor I am using is MPC8541E which I
> believe have the same DMA engine as mpc8540. I will try it and will  
> let
> you know how it worked.
>
> Thanks,
> Bizhan
>
> -----Original Message-----
> From: Clemens Koller [mailto:clemens.koller@anagramm.de]
> Sent: Thursday, August 04, 2005 5:13 AM
> To: Bizhan Gholikhamseh (bgholikh)
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: MPC8541E DMA transfer
>
> Hello, Bizhan!
> and all the other mpc85xx DMA fans.
>
> I am working on the mpc85xx dma stuff (based on Jason's work) on the
> lastest 2.6.x kernels. My cpu is a mpc8540.
> That's all work in progress, so have a look at the code.
>
> Attached you will find some of my test code (a separate kernal module)
> which should compile fine for 2.6 now. Make a symlink ~/linux to the
> latest 2.6 kernel or change the makefile. There is also the latest
> immap_85xx.h (almost complete) included. Some old code is commented
> out...
>
> Not all code is enabled in the module yet, and the dma_test routine
> copys data from physical memory you might not have in your hardware.
> Please change that according to your setup.
>
> Feedback is welcome!
>
> Enjoy!
>
> Clemens Koller
> _______________________________
> R&D Imaging Devices
> Anagramm GmbH
> Rupert-Mayer-Str. 45/1
> 81379 Muenchen
> Germany
>
> http://www.anagramm.de
> Phone: +49-89-741518-50
> Fax: +49-89-741518-19
>
>
> Bizhan Gholikhamseh (bgholikh) wrote:
>
>> Is there any support in Linux 2.6.X for using this controller, if so,
>> are you aware of any test driver I can take a look at?
>>
>> Thanks,
>> Bizhan
>>
>> Many thanks in
>>
>> -----Original Message-----
>> From: Kumar Gala [mailto:kumar.gala@freescale.com]
>> Sent: Wednesday, August 03, 2005 11:24 AM
>> To: Bizhan Gholikhamseh (bgholikh)
>> Cc: linuxppc-embedded@ozlabs.org
>> Subject: Re: MPC8541E DMA transfer
>>
>> I dont see any reason you couldn't use the internal DMA engine on the
>> MPC8541E to do what you need.  You will just need to schedule the  
>> work
>>
>
>
>> every 10ms.
>>
>> - kumar
>>
>> On Aug 3, 2005, at 10:04 AM, Bizhan Gholikhamseh \(((bgholikh\)))
>>
> wrote:
>
>>
>>
>>
>>> Hi all,
>>> I am developing a linux driver (2.6.10) for Freescale MPC8541E
>>> (customized board) to read and write 8 buffers (each buffer is 960
>>> bytes
>>> long) every 10 ms to/from a custom made PCI card with on board DSP
>>> Chip.
>>> The chip's internal and external memories are memory mapped to  
>>> the CPU
>>>
>>
>>
>>
>>> address space.
>>> For reason that is beyond the discussion here, the DMA request  
>>> line on
>>>
>>
>>
>>
>>> the PCI card is not connected although the PCI card has DMA
>>> capabilities.
>>> So what are my options?
>>> Could I still do DMA transfer from the Host to the device?
>>>
>>> Many thanks in advance,
>>> Bizhan
>>>
>>> <ATT293768.txt>
>>>
>>>
>> _______________________________________________
>> Linuxppc-embedded mailing list
>> Linuxppc-embedded@ozlabs.org
>> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>
>>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-04 19:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 18:26 MPC8541E DMA transfer Bizhan Gholikhamseh (bgholikh)
2005-08-03 21:57 ` Kumar Gala
2005-08-04 12:12 ` Clemens Koller
  -- strict thread matches above, loose matches on Subject: below --
2005-08-04 16:52 Bizhan Gholikhamseh (bgholikh)
2005-08-04 19:44 ` Kumar Gala
2005-08-03 15:04 Bizhan Gholikhamseh (bgholikh)
2005-08-03 18:24 ` Kumar Gala

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.