lkml.org 
[lkml]   [2017]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: semantics of dma_map_single()
    From
    Date
    Hi Christoph,

    On 07/16/2017 11:42 PM, Christoph Hellwig wrote:
    > I would expect that it would support any contiguous range in
    > the kernel mapping (e.g. no vmalloc and friends). But it's not
    > documented anywhere, and if no in kernel users makes use of that
    > fact at the moment it might be better to document a page size
    > limitation and add asserts to enforce it.

    My first thought was indeed to add a BUG_ON for @size > PAGE_SIZE (also accounting
    for offset etc), but I have a feeling this will cause too many breakages. So
    perhaps it would be better to add the fact to Documentation that it can handle any
    physically contiguous range.

    -Vineet

    \
     
     \ /
      Last update: 2017-07-17 18:07    [W:3.129 / U:0.648 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site