lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 17 Dec 2006 19:16:42 +0100
From:	Hans-Jürgen Koch <hjk@...utronix.de>
To:	Gleb Natapov <glebn@...taire.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: uio and DMA memory allocations

Am Sonntag, 17. Dezember 2006 16:04 schrieb Gleb Natapov:
> Hi Hans,
>
>    Will it be possible to allocate DMAable memory using uio
> framework (currently it isn't as far as I see).  More specifically
> if a driver needs memory allocated with dma_alloc_coherent() will
> it be possible to allocate it and map into userspace using uio?

Hi Gleb,
I didn't write such a driver yet, but it is certainly possible.
As a first thought, I think we need a small change in the uio 
framework mmap routine. AFAIK, dma_alloc_coherent() returns a
kernel virtual address that would not be handled properly by
the existing code. At the moment, we only have the choice between
logical and physical memory, we probably have to add virtual
memory, too. Thanks for that hint, I'll keep it in mind.

Hans

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

Powered by blists - more mailing lists