Received: by 10.192.165.148 with SMTP id m20csp1614568imm; Sat, 28 Apr 2018 01:32:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpSaINAO8E/uVFmiXOkLrvI39p90hnz3k1jenkaCVJqDlw/F1eGA3+5cc9VlyFkzgS/rhlh X-Received: by 2002:a63:b54b:: with SMTP id u11-v6mr4566972pgo.365.1524904350248; Sat, 28 Apr 2018 01:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524904350; cv=none; d=google.com; s=arc-20160816; b=gLOE+oqiyvkCwTao7SD7CSqQMh2FiZURUsdLlmFT1NdedicuMkeYGAg4hXWiDwAprc prL3JKt0Ja3bqTqOFJxNyMGxfkNl64J7zLOEVfCV17SgOsZRz9bjupX2EM8tQr5h5n21 6unrSI7fvA8GifvIpxdCt7w7HMOFHMAeAFN2ZvDKS5oMqgmXBEoc5G0ARYAc8yrdNxxZ mjlo7BSe8y5yyOWgnyFSHetrG0dfz2S1So+8qV3ictT0XtMjw4Bxw+xntPuj0QpfuXVa pUBsPS5ywc5olNa6guMv5dXxh4lm8+3LeMl/ormhLdBVHI22iz2Z7hV0F69pNhUpZpUT R0ug== 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:arc-authentication-results; bh=Iz6+WGv7eeoBcIRw45ViCSvXLJi2lxB//QO5gHA+cZU=; b=jJO43hcVEEKZH0ktYKgOOiTWPUxgpM9K9vhNUgtJbcZMNyj9bVQQVZZSO9DOPX2Atq 5zgObfLYMNMrD06E7y/mQz6KLNOM0pJWUUwxhrQGmhO8datb2wjKmpw/cSZ6lYMMIBNo bNbHHRnPN0vgfsiwKKnJF9sNBlRb7wT45Xw1kJHwXEZpTRDDSZB07JBL0f118nYL2O8H iDaW3Nk3S0qieesok/WAJwXUGGkMyx2HpCweOXe57A6gNXVh6ql/0bb16W+/xrPV81xN +f6GdQCBGcY41O0Qo867znQB9F/ObKCgJ/QbRmkZRjt86RLcKNgFasMJmHtnw9Sg1/Gn EWqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=X1o7fGhT; 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 u6-v6si3076650plz.461.2018.04.28.01.32.15; Sat, 28 Apr 2018 01:32:30 -0700 (PDT) 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=X1o7fGhT; 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 S1759695AbeD1IbC (ORCPT + 99 others); Sat, 28 Apr 2018 04:31:02 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42890 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759584AbeD1IbA (ORCPT ); Sat, 28 Apr 2018 04:31:00 -0400 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=Iz6+WGv7eeoBcIRw45ViCSvXLJi2lxB//QO5gHA+cZU=; b=X1o7fGhT09yXrVB3BG+SA8F2v 2oczV3EZqfw5KMLijeocqrYmMcokIO34bK8vJ8Z7UPG4hb9it/iVUS0hgkbmi9peSV2b+Pt3ltzBx tfRokuheenHisuzehrVrHdXAKErviOubzg4kO1HxHihkkf1QKuQs6O6nR+BzFjpNVH0rT9qoLkvoa 95oE7P6vW86Na3QFOOUUGyNcV+1S3yckM5jIQVgJkwv8PRztDW5v3sQywYXkYVqLM9H8E0xXCWEPY FgB4oXNMqYuGX3yqsHQShWMkR8jrMMi+uSgAVeSGaEZ5wbiwznC0OCbKDn+lPKq5Eh5H1MqOt7D3o 9ai7DZ+rw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fCLFp-00024X-O9; Sat, 28 Apr 2018 08:30:49 +0000 Date: Sat, 28 Apr 2018 01:30:49 -0700 From: Christoph Hellwig To: Michal Hocko Cc: Christoph Hellwig , "Luis R. Rodriguez" , linux-mm@kvack.org, cl@linux.com, Jan Kara , matthew@wil.cx, x86@kernel.org, luto@amacapital.net, martin.petersen@oracle.com, jthumshirn@suse.de, broonie@kernel.org, linux-spi@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "lsf-pc@lists.linux-foundation.org" Subject: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love Message-ID: <20180428083049.GA31684@infradead.org> References: <20180426215406.GB27853@wotan.suse.de> <20180427053556.GB11339@infradead.org> <20180427071843.GB17484@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180427071843.GB17484@dhcp22.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, Apr 27, 2018 at 09:18:43AM +0200, Michal Hocko wrote: > > On Thu, Apr 26, 2018 at 09:54:06PM +0000, Luis R. Rodriguez wrote: > > > In practice if you don't have a floppy device on x86, you don't need ZONE_DMA, > > > > I call BS on that, and you actually explain later why it it BS due > > to some drivers using it more explicitly. But even more importantly > > we have plenty driver using it through dma_alloc_* and a small DMA > > mask, and they are in use - we actually had a 4.16 regression due to > > them. > > Well, but do we need a zone for that purpose? The idea was to actually > replace the zone by a CMA pool (at least on x86). With the current > implementation of the CMA we would move the range [0-16M] pfn range into > zone_movable so it can be used and we would get rid of all of the > overhead each zone brings (a bit in page flags, kmalloc caches and who > knows what else) That wasn't clear in the mail. But if we have anothr way to allocate <16MB memory we don't need ZONE_DMA for the floppy driver either, so the above conclusion is still wrong. > -- > Michal Hocko > SUSE Labs ---end quoted text---