[lkml]   [2000]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kmap for dma buffer
> For dma transfers to/from user space buffer, one need to lock that user
> space buffer so that it won't be swaped out. and also
> its bus address is obtained by call virt_to_bus and then this bus address
> is written to dma controller.

Thats what the kiovecs deal with yes

> but do we explicitly need to map that user buffer into kernel space by
> calling kmap after obtaining the user buffer's page struct??

Only if you are doing PIO (ie cpu writes to the page). The DMA hardware never
sees the MMU on most machines (it sees a seperate unrelated IOMMU on some

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.070 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site