* Pavel Roskin <proski@gnu.org> wrote:so ... i suspect the requirement would be for NdisMAllocateSharedMemory() to return a linear address that is DMA-able, and to properly map it to a physical address via dma_map_single(). I can see only one complication in pushing this to user-space: physical fragmentation of allocations. What are the typical buffer sizes that NDIS drivers request from the kernel? Is it frequently above 4K? you could try to create a syscall-ish API towards the kernel that allows DMA, it would have the following functionality: - allocate a piece of continuous memory and return its physical address plus its linear address as well and map the linear address into the user-space pagetables. This memory would be unfragmented on the physical side. you probably could even use/hack hugetlbfs right now to achieve something very similar. (hugetlbfs pages are unfragmented 2MB largepages) if the NDIS API is done halfways right, then there's no need for any of these buffers to be in kernel-space and for the driver to run in kernel space. i think someone should really try to push a known-well-behaving NDIS driver (for which a Linux driver exists too) down to user-space. NDIS has been around since Netware so it's a pretty well-understood driver model. And with an iommu it could all be made a safe sandbox as well (an NDIS device could never exit its sandbox). Ingo --
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 24/37] dccp: Processing Confirm options |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Alexey Dobriyan | Re: [GIT]: Networking |
| david | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
