Re: [PATCH] New phys_addr() syscall

Inaky Perez Gonzalez (inaky@peloncho.fis.ucm.es)
Tue, 21 Jul 1998 14:58:39 +0200


>>>>> "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