Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3225570imu; Sat, 24 Nov 2018 00:31:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/UZL+DfaPFfZa1oGXV9H4M3SeR4q7wXiUNAXjo3Q3K1jF97nuN9NRAb9hY2RjanemfR34yy X-Received: by 2002:a17:902:4401:: with SMTP id k1mr19223574pld.307.1543048314475; Sat, 24 Nov 2018 00:31:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048314; cv=none; d=google.com; s=arc-20160816; b=hx948OcOsptzCMnpPxUsLJXEXJyHfVPMWVxIMiBUJlbxfswQ3UFwv9fknIx/n+91ao IAPFtiXjq1QUBE1yezLkpFnQlMCddvw9YFW5pEIzrdWGRKskF72y9Teb2BHJhBU6Vcnb 5uiVhSGJ/wv5AbDT3bsRJ/y54lUpqe2XTW0CT2me+sbNFpi68Um5zsThUBj+ukh2MdZJ A0KjmmqLxoch7xGYTBfQw9T8RPtr92d8PfK5mCu1WyXVjalMFP6QFJrY12GsSzQVkqlY vgjctxr2/8U66LF4j2+dp7av7sfO1ipRW6YlWe9r9OLVse1YBKCggXsbK9kbUZnnEHqT ydxg== 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; bh=CfLukNefbFTN+gELT9GyBre6PYU79PlFDyuBEEjv+Fk=; b=Bie4MXCRJG5XRIUXQvMhS8u3zEO9NTNndHm0dLLtETJaSqvgbr4Qky8SrOZwlC/XZb qkPi4w5UPWvpaoDtC4hFUjDP0zZ9C8/Y1nPOZ6GWyhZZAkF8zJ5kf8BRhYL6aueiivoT IltUwrjHLLAQ1NlSv9aO7pprZkhRV5VnJjVM/QEkyiKxogF8ptRix6cn/98QAfdyssXW 1qO3L0zh6dFao+Hadri2rN4/C5MF4VqPKDzeokyVrkwjlrSoAgkwkxdrumo4EtK5B5tu syQelMQbtg9jlyYj5LF0rE4WQsljMew6nd70XERs1ykawQIvoF+ridB/vXU0rbTirhhG VJqg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si39912801pls.30.2018.11.24.00.31.40; Sat, 24 Nov 2018 00:31:54 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504279AbeKWXOo (ORCPT + 99 others); Fri, 23 Nov 2018 18:14:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:35276 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2394437AbeKWXOo (ORCPT ); Fri, 23 Nov 2018 18:14:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AE306AF6F; Fri, 23 Nov 2018 12:30:41 +0000 (UTC) Date: Fri, 23 Nov 2018 13:30:40 +0100 From: Michal Hocko 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, 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: <20181123123040.GH8625@dhcp22.suse.cz> 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.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 23-11-18 13:23:41, Vlastimil Babka wrote: > On 11/22/18 9:23 AM, Christoph Hellwig wrote: [...] > > 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. Yes that makes quite a lot of sense to me. We do not really need a generic support. Just make sure that if somebody creates a GFP_DMA32 restricted cache then allow allocating restricted memory from that. Is there any fundamental reason that this wouldn't be possible? -- Michal Hocko SUSE Labs