linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* a question of mpc8313, maybe simple
@ 2008-06-23 12:48 jumpingProgrammer
  2008-06-23 17:09 ` Scott Wood
  0 siblings, 1 reply; 4+ messages in thread
From: jumpingProgrammer @ 2008-06-23 12:48 UTC (permalink / raw)
  To: linuxppc-dev


i am working with a board of mpc8313 using default mpc8313erdb.dts.
But i do not know how can i correctly use DMA to transport data from memory
to a PCI device.
i tryed this
{
     .....
     request_irq(IRQ,....);
     request_dma(.....);
     ....
}

In request_irq() , i do not know what is the parameter IRQ.
And , i did not find any words about DMA in mpc8313erdb.dts .
So 
1. please tell me what should be the parameter IRQ?
      Is it the irq requested when DMA initialized or another one?
2. If i want initialize DMA, how should i do with mpc8313erdb.dts?


-- 
View this message in context: http://www.nabble.com/a-question-of-mpc8313%2C-maybe-simple-tp18067094p18067094.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

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

* Re: a question of mpc8313, maybe simple
  2008-06-23 12:48 a question of mpc8313, maybe simple jumpingProgrammer
@ 2008-06-23 17:09 ` Scott Wood
  2008-06-24  1:13   ` jumpingProgrammer
  0 siblings, 1 reply; 4+ messages in thread
From: Scott Wood @ 2008-06-23 17:09 UTC (permalink / raw)
  To: jumpingProgrammer; +Cc: linuxppc-dev

On Mon, Jun 23, 2008 at 05:48:07AM -0700, jumpingProgrammer wrote:
> i am working with a board of mpc8313 using default mpc8313erdb.dts.
> But i do not know how can i correctly use DMA to transport data from memory
> to a PCI device.
> i tryed this
> {
>      .....
>      request_irq(IRQ,....);
>      request_dma(.....);
>      ....
> }
> 
> In request_irq() , i do not know what is the parameter IRQ.

Use pci_dev->irq.

> And , i did not find any words about DMA in mpc8313erdb.dts .

PCI devices can do bus-mastering DMA themselves; request_dma() is for ISA
devices.

-Scott

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

* Re: a question of mpc8313, maybe simple
  2008-06-23 17:09 ` Scott Wood
@ 2008-06-24  1:13   ` jumpingProgrammer
  2008-06-24 17:58     ` Scott Wood
  0 siblings, 1 reply; 4+ messages in thread
From: jumpingProgrammer @ 2008-06-24  1:13 UTC (permalink / raw)
  To: linuxppc-dev


Thanks a lot for answer my question.
But i am newhand and not very clear about it.
Do you mean:
1. in this case i do not need to include DMA when i "make menuconfig" ?
        The path is Device Drivers->DMA.
2. in this case i do not need add any DMA information in mpc8313erdb.dts?

Now i am reading PCI driver in kernel 2.6.20 to catch your meaning.


Scott Wood-2 wrote:
> 
> On Mon, Jun 23, 2008 at 05:48:07AM -0700, jumpingProgrammer wrote:
>> i am working with a board of mpc8313 using default mpc8313erdb.dts.
>> But i do not know how can i correctly use DMA to transport data from
>> memory
>> to a PCI device.
>> i tryed this
>> {
>>      .....
>>      request_irq(IRQ,....);
>>      request_dma(.....);
>>      ....
>> }
>> 
>> In request_irq() , i do not know what is the parameter IRQ.
> 
> Use pci_dev->irq.
> 
>> And , i did not find any words about DMA in mpc8313erdb.dts .
> 
> PCI devices can do bus-mastering DMA themselves; request_dma() is for ISA
> devices.
> 
> -Scott
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/a-question-of-mpc8313%2C-maybe-simple-tp18069331p18081728.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

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

* Re: a question of mpc8313, maybe simple
  2008-06-24  1:13   ` jumpingProgrammer
@ 2008-06-24 17:58     ` Scott Wood
  0 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2008-06-24 17:58 UTC (permalink / raw)
  To: jumpingProgrammer; +Cc: linuxppc-dev

On Mon, Jun 23, 2008 at 06:13:41PM -0700, jumpingProgrammer wrote:
> 
> Thanks a lot for answer my question.
> But i am newhand and not very clear about it.
> Do you mean:
> 1. in this case i do not need to include DMA when i "make menuconfig" ?
>         The path is Device Drivers->DMA.

Right, that's for independent DMA engines, such as for offloading
memory-to-memory copies.

> 2. in this case i do not need add any DMA information in mpc8313erdb.dts?

Right.

-Scott

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

end of thread, other threads:[~2008-06-24 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23 12:48 a question of mpc8313, maybe simple jumpingProgrammer
2008-06-23 17:09 ` Scott Wood
2008-06-24  1:13   ` jumpingProgrammer
2008-06-24 17:58     ` Scott Wood

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).