Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5445605imu; Mon, 26 Nov 2018 00:04:13 -0800 (PST) X-Google-Smtp-Source: AJdET5ckFCKnujVXfKOL8khYXvuZ+pG28Y8N8t7ugUfCDxQuFPWrTo7Gef3EJwyLHhgBX39QtcQ0 X-Received: by 2002:a63:4e15:: with SMTP id c21mr23908743pgb.50.1543219453230; Mon, 26 Nov 2018 00:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543219453; cv=none; d=google.com; s=arc-20160816; b=EI1ufZsZmP5Jtd0Xh5pdHlyJUlLeiW2Mjhnuki0KhJ8xoJMDq1M3fZjIQv7r0/Nmd3 Sp8smbO/K/PfVDx+N2J3RH7nbMTLrKc91XxLsZxyk/DLXayyJquvhCpNnOe9OWUg62fI wntqvmd35ImhxFgoDKIgw+epYIoO4DhnvwtV0pZ0Db795C9f6932boLEAina++G8NZwI QTwrvVE5iIC5n6QYXQPUPiu5jBKYGGgeEHW8tszY4kakYFI0HhXM5YsNlRkyUC7m/c+t Py++cGJNuxJhL/qIFfdZGc5ZD5KaMzPv5kUFsX7z0UimMA5A9gGvdq0IJiqxAO1swzSS PvhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=amDM0wawmoyNitm1BF0fX+K8gx+7QqeubLeoS13rZMM=; b=RJgL/aOrUq/mo1yeN8l7+tmRhejghBGa1ik+VFKw2q+ZZjBdrmjX3mEbiVZ7W3SYZw OGLcWtZdwPrp6hVlwE5nZmz0a+H/kDKPZvBn3q/2QHLE0qx+7BBf9J5PsIPR9netC5Kx E2fICuqhvwKCAPsZb1p7iYWarqJJaYAPSR5XqCH9mIdIrjZ//waTw6ARRezkh/a9iqEn yTdSlmyIEDH3kLZoPJKpcA/nzuMaMDkG8v291JBBXBaWFkqcIwPCBftE3rKGoBGptMZx AgGNApuOPKMf/ErU2BOCnx5M5fhnopAnW+lZMrb8TvU7fVr62EonfExLBxicfr8LegMC j55Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rdWaGrgN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si54321618pgh.18.2018.11.26.00.03.55; Mon, 26 Nov 2018 00:04:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rdWaGrgN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726280AbeKZSzr (ORCPT + 99 others); Mon, 26 Nov 2018 13:55:47 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:53568 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbeKZSzr (ORCPT ); Mon, 26 Nov 2018 13:55:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=amDM0wawmoyNitm1BF0fX+K8gx+7QqeubLeoS13rZMM=; b=rdWaGrgNfw4kIFrjUOJyZWmQ6 aBhjsBHaApdP3bO5xfNs8r/aKiTr6pF9lvJM6fMLR1u6ZmzDjGYT/4XwxIo3nvCfJ15V9UxXFau1u Ydxz3rrpfq0jQbxpffudnJ1p3gFVQNieOo+JftB6R2H0SPfAikVJ32J8alP2bS0bCxiOuOHX/C9X+ ejeX/026BP0NXNe7Mc+rxlRKaOQlCBGmn3eZ29gjaYM2CTrEeXnDeLI2ozkyHfBz+SSR+zVxtwAsv 9fRTskn0Q9e1PaNpvrZf5juiKWrk02BKyKawdlxlusZykTR+Z0i5UXNpNGS/IJS01JNSa4oFfLZYr i0rcQeNvQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRBqQ-0004fm-11; Mon, 26 Nov 2018 08:02:14 +0000 Date: Mon, 26 Nov 2018 00:02:13 -0800 From: Christoph Hellwig To: Vlastimil Babka Cc: Christoph Hellwig , Robin Murphy , Matthew Wilcox , Christopher Lameter , Levin Alexander , Mike Rapoport , Nicolas Boichat , Huaisheng Ye , Tomasz Figa , Will Deacon , linux-kernel@vger.kernel.org, Pekka Enberg , linux-mm@kvack.org, iommu@lists.linux-foundation.org, Michal Hocko , linux-arm-kernel@lists.infradead.org, David Rientjes , Matthias Brugger , yingjoe.chen@mediatek.com, Joonsoo Kim , Mel Gorman , Andrew Morton Subject: Re: [PATCH v2 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables Message-ID: <20181126080213.GA17809@infradead.org> References: <20181111090341.120786-1-drinkcat@chromium.org> <0100016737801f14-84f1265d-4577-4dcf-ad57-90dbc8e0a78f-000000@email.amazonses.com> <20181121213853.GL3065@bombadil.infradead.org> <20181122082336.GA2049@infradead.org> <555dd63a-0634-6a39-7abc-121e02273cb2@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <555dd63a-0634-6a39-7abc-121e02273cb2@suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 23, 2018 at 01:23:41PM +0100, Vlastimil Babka wrote: > Is this also true for caches created by kmem_cache_create(), that > debugging options can result in not respecting the alignment passed to > kmem_cache_create()? That would be rather bad, IMHO. That's what I understood in the discussion. If not it would make our live simpler, but would need to be well document. Christoph can probably explain the alignment choices in slub. > > > But I do agree with the sentiment of not wanting to spread GFP_DMA32 > > futher into the slab allocator. > > I don't see a problem with GFP_DMA32 for custom caches. Generic > kmalloc() would be worse, since it would have to create a new array of > kmalloc caches. But that's already ruled out due to the alignment. True, purely slab probably isn't too bad.