From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 24 Sep 2018 21:44:21 -0700 From: Matthew Wilcox To: Bart Van Assche Cc: Ming Lei , Andrey Ryabinin , Vitaly Kuznetsov , Christoph Hellwig , Ming Lei , linux-block , linux-mm , Linux FS Devel , "open list:XFS FILESYSTEM" , Dave Chinner , Linux Kernel Mailing List , Jens Axboe , Christoph Lameter , Linus Torvalds , Greg Kroah-Hartman Subject: Re: block: DMA alignment of IO buffer allocated from slab Message-ID: <20180925044421.GA11163@bombadil.infradead.org> References: <12eee877-affa-c822-c9d5-fda3aa0a50da@virtuozzo.com> <1537801706.195115.7.camel@acm.org> <1537804720.195115.9.camel@acm.org> <10c706fd-2252-f11b-312e-ae0d97d9a538@virtuozzo.com> <1537805984.195115.14.camel@acm.org> <20180924185753.GA32269@bombadil.infradead.org> <20180925001615.GA14386@ming.t460p> <20180925032826.GA4110@bombadil.infradead.org> <4a19ac2f-82c1-db55-9b93-4005ace5e2fe@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4a19ac2f-82c1-db55-9b93-4005ace5e2fe@acm.org> Sender: owner-linux-mm@kvack.org List-ID: On Mon, Sep 24, 2018 at 09:10:43PM -0700, Bart Van Assche wrote: > On 9/24/18 8:28 PM, Matthew Wilcox wrote: > > [ ... ] Because if we have to > > round all allocations below 64 bytes up to 64 bytes, [ ... ] > Have you noticed that in another e-mail in this thread it has been explained > why it is not necessary on x86 to align buffers allocated by kmalloc() on a > 64-byte boundary even if these buffers are used for DMA? Oh, so drivers which do this only break on !x86. Yes, that'll work out great.