lkml.org 
[lkml]   [1998]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] New phys_addr() syscall
From
>>>>> "Alan" == Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

Hi

>> What issues? If I pin down a set of pages, I can then get their
>> physical address and tell the card to DMA its heart out. How
>> exactly is this going to fail?

Alan> DMA doesnt honour the MMU write protect bits for copy on write,
Alan> or for page locking. Nor does it set the dirty bit on page table
Alan> entries.

I should consider this also applies to PCI writes, doesn't it?
I was thinking of allowing the USB Stack to directly write to user
pages using PCI. If PCI doesn't also honour the bits we need, could it
be done by hand as the write is finished?

CU

Linux-USB! http://peloncho.fis.ucm.es/~inaky/USB.html -
-
Inaky Perez Gonzalez -- PGP pubkey fingerprint -
inaky@peloncho.fis.ucm.es -- 8E 34 3A 62 64 99 E2 44 -
http://peloncho.fis.ucm.es/~inaky -- AD 7B 30 D9 DD FF 3E 4C -
--------------------------------- -- ----------------------- -
The loneliness of the long distance runner .....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site