Re: Help me!



huxuelei630@xxxxxxxxx wrote:
Hi, I have been developing a driver for plx9656
device.Now I want to use DMA to tranfser data from Local
Address to PCI Address.But I always got wrong result.

You're not giving us much to work with. For example, what
is this "wrong result?"

There is a bit more to doing a DMA transfer than just
setting up the DMA registers.

o Does the transfer complete (without errors?) according
to the register interface?
o Are you expecting/receiving an interrupt?
o If the register interface indicates completion,
is the expected data incorrect?

Working with PCI can be ... interesting, and there are many
details that need to be correct. On top of that, processors
that operate with PCI buses can add a few layers of fun
themselves (e.g. interrupt controllers, virtual addresses
and caches.)

If you want help, you need to give details.

--
Michael N. Moran (h) 770 516 7918
5009 Old Field Ct. (c) 678 521 5460
Kennesaw, GA, USA 30144 http://mnmoran.org

"So often times it happens, that we live our lives in chains
and we never even know we have the key."
"Already Gone" by Jack Tempchin (recorded by The Eagles)

The Beatles were wrong: 1 & 1 & 1 is 1
.



Relevant Pages

  • Re: Help me!
    ... device.Now I want to use DMA to tranfser data from Local ... Address to PCI Address.But I always got wrong result. ... In every FIFO interrupt, I should tranfser these data from FIFO to ...
    (comp.arch.embedded)
  • Help me!
    ... use DMA to tranfser data from Local Address to PCI Address.But I ... //open DMA Channel x Done Interrupt,DMA Channel 0 Clear Count Mode ...
    (comp.arch.embedded)
  • Re: DMA APIs gumble grumble
    ... 32-bit mask should that fail. ... 32-bit SAC addressing is done more efficiently than DAC addressing. ... DAC interfaces to the PCI DMA API for when "you really really want DAC ...
    (Linux-Kernel)
  • Re: direct memory access
    ... No, 1 ISA, 5 PCI and 1 AGP. ... PCI and AGP might be shared. ... >>> If you don't see the Advanced tab, either your hardware doesn't>> support DMA or the DMA settings are incorrect in the BIOS. ... [[With some IDE drivers/Busmastering drivers, DMA cannot be>> enabled through the device manager, but only through the driver>> settings. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: A simple question about DMA, please help me.
    ... held by the DMA controller and the CPU is set idle until this transfer ... memory to fetch instructions while the DMA transfer is continuing. ... The PCI bus changed that -- it eliminated the separate lines for each ...
    (comp.lang.asm.x86)