PowerPC PCI queries

From: Krishna (krishnavora_at_indiatimes.com)
Date: 08/05/04


Date: 5 Aug 2004 03:10:59 -0700

Hi,

I have recently started work on a PowerPC 405 based driver. I'm having
a few queries which I hope you guys could help me with. Please forgive
my ignorance if these questions sound trivial as I have just started
work with PCI drivers :

1. I'm calling pci_alloc_consistent(), mem_map_reserve that area &
then mmap (remap_page_range) that region for userland access. The PCI
device is then programmed with the bus addresses. My question is, now
if the user reads/writes to that memory egion, how are the DMA
channels set up? Specifically if the kernel accesses these reserved
pages how does the kernel set up the DMA channels? Where is the code
for this?

2. I might need to disable CONFIG_PCI due to a lot of custom PCI
changes & then hack around. If I disable CONFIG_PCI & then try setting
up DMA using get_free_pages() et al directly, will it work?

TIA,
Krishna V.



Relevant Pages

  • dma timeout
    ... my *old hdd* got up with dma mode. ... PIIX4: IDE controller at PCI slot 00:04.1 ... ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ... hda: attached ide-disk driver. ...
    (Debian-User)
  • [PATCH RFC v5] net: add PCINet driver
    ... PCI bus as its transport mechanism. ... RFC v4 -> RFC v5: ... use seperate DMA channels for RX and TX ... Thanks to all of those who have posted comments about the driver. ...
    (Linux-Kernel)
  • Re: [Alacrityvm-devel] [PATCH v3 3/6] vbus: add a "vbus-proxy" bus model for vbus_driver obj
    ... I'm pretty sure that vhost is completely useless for my situation. ... I've got a system where I have about 20 computers connected via PCI. ... I wrote a custom driver which imitated a network interface and a serial ... Can guests do DMA to random host memory? ...
    (Linux-Kernel)
  • [PATCH 19-rc2] Fix misc Kconfig typos
    ... limits the system to just 64MB of PCI memory. ... config MACH_LPD7A400 ... If you do not enable DMA, an interrupt for each character will be ... This driver toggles the front-panel LED on sun4m systems ...
    (Linux-Kernel)
  • PAGE_FAULT_... and PCI64
    ... I'm writing a WDM driver for PCI 64 bit. ... When I receive interrupt I copy memory transferred with DMA to an Array ... This way I free DMA memory and I'm ready to receive new data from PCI. ... I loose data from PCI ...
    (microsoft.public.development.device.drivers)