doubt regarding DMA mappings & bounce buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,
if i'm allocating by transmit and recieve buffers,
for my ethernet driver, using pci_alloc_consistent
then do i need to establish bounce buffers as well
in case i get a mapping in a non-DMA zone??
but in Rubini's book it's written - "Allocation is
handled in this function so that the buffer will be
placed in a location that works with DMA..."

so then do i need to keep bounce buffers??
then it says that the allocation uses GFP_ATOMIC
priority, shud'nt it use the GFP_DMA priority instead
to ensure the addresses are allocated in the DMA zone??

TIA
- /dev/mandeep


-----Original Message-----
From: Mandeep Singh Sandhu 
Sent: Monday, March 22, 2004 11:58 AM
To: kernelnewbies@nl.linux.org
Subject: PCI doubt (regarding code in pci-skeleton.c)


Hi all,

i was going thru the code in pci-skeleton.c and there
in the open fxn. when it is allocating memory for its
transmit and receive buffers it's using pci_alloc_consistent().
can ne one tell me what exactly this fxn. does and where
can i find some info on what all args it accepts??
what will b the problem if i try to allocate using the std
fxns like kmalloc etc.??

thanx

- /dev/mandeep


-----Original Message-----
From: Greg KH [mailto:greg@kroah.com]
Sent: Saturday, March 20, 2004 4:37 AM
To: Anandraj
Cc: kernelnewbies@nl.linux.org
Subject: Re: PCI Slot info


On Tue, Mar 09, 2004 at 09:23:43AM +0530, Anandraj wrote:
> hi greg,
> Then what does the slot number mean in PCI ?

See include/linux/pci.h for a explaination of what PCI_SLOT() is, and
how it works.

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux