lkml.org 
[lkml]   [2018]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: block: DMA alignment of IO buffer allocated from slab
    From
    Date


    On 09/24/2018 06:58 PM, Bart Van Assche wrote:
    > On Mon, 2018-09-24 at 18:52 +0300, Andrey Ryabinin wrote:
    >> Yes, with CONFIG_DEBUG_SLAB=y, CONFIG_SLUB_DEBUG_ON=y kmalloc() guarantees
    >> that result is aligned on ARCH_KMALLOC_MINALIGN boundary.
    >
    > Had you noticed that Vitaly Kuznetsov showed that this is not the case? See
    > also https://lore.kernel.org/lkml/87h8ij0zot.fsf@vitty.brq.redhat.com/.
    >

    I'm not following. On x86-64 ARCH_KMALLOC_MINALIGN is 8, all pointers that Vitaly Kuznetsov showed are 8-byte aligned.

    > Thanks,
    >
    > Bart.
    >

    \
     
     \ /
      Last update: 2018-09-24 18:07    [W:2.327 / U:0.324 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site