lkml.org 
[lkml]   [2000]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kmap for dma buffer
Date
From
> 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
boxes)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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