Received: by 10.192.165.148 with SMTP id m20csp892471imm; Fri, 27 Apr 2018 09:08:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoNzR4IQOObiqtFYvl07UkgbUNUoKAPW1NPuPZg//t26VyoUZm3E2v9Jnh4zqBp+cN1yPgZ X-Received: by 2002:a17:902:b60b:: with SMTP id b11-v6mr2866434pls.330.1524845338730; Fri, 27 Apr 2018 09:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524845338; cv=none; d=google.com; s=arc-20160816; b=g0LhXMb1uURnN/WCD5DR2kBFv4j1eu929uuTN2XA5noKzvNhCYimxh+gPNYDm05O4J BoxWvyeNa5u3ijhwuYJWcBjnRuMGHlRQAcLO3LqVev2zLNmq00IMqgxkoXRAlTVylx12 I0W80ffdJk7fXGaFaBdtHJz3XCW64nBtdSL44zTCMSTC10yXafVJo3DlhGVIyQAzDw9/ WIWbAVlUPL8INOxayQ1BWI8fE9xSA2cn2tLa8kn/vNHRRnyaAH8/bjG/lXsV+8FryUl0 EE6FhaimEO7LPcqOn3hJMVuMx0A5QPE4lWRH6R2FnU/vcWbobGhahZG3A9rjozjvgK+l e0bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=1HEu82xG37bsllUo52sP71LYqBczJ96yUlc5dmO8f34=; b=GmrSzA59UlCVFHvmX1bK6bidgiAiS9+wyYUEiCr32dhqjhCQTmLACoAExRufg5vGS5 uW2wOMkHhPBk+eaPUoSJeO8JnDbn7w0vZ0RLE3ZBfGvYMGnaLRgvz3SupWLP5pVG1lXk 3/0hJpcdktrTVhpJSKOjjZdZElFT6ZzTTf3ah4P0Rb5jNnUzs0Di7lYMOpgWwvGz/8PX qAgP9sIvyI6P1QVSZz1wjw33PWFjoHEfVxfc5NJV58iCMCJvaISc0UpGe3OhTiKdP13J o7rOBTi/pZyfSYJK79X7BeaxDIfxou1DEI35gcUk2ZsumefEDi/sfKiJ162h9+sO4LwE GivA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si1524906pfi.360.2018.04.27.09.08.45; Fri, 27 Apr 2018 09:08:58 -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; 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 S1758716AbeD0QHM (ORCPT + 99 others); Fri, 27 Apr 2018 12:07:12 -0400 Received: from resqmta-ch2-06v.sys.comcast.net ([69.252.207.38]:43332 "EHLO resqmta-ch2-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758682AbeD0QHJ (ORCPT ); Fri, 27 Apr 2018 12:07:09 -0400 Received: from resomta-ch2-07v.sys.comcast.net ([69.252.207.103]) by resqmta-ch2-06v.sys.comcast.net with ESMTP id C1uTfyOaRjtJ5C5ttfUfcx; Fri, 27 Apr 2018 16:07:09 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-07v.sys.comcast.net with ESMTPA id C5trfaG94cjIcC5tsfJEnQ; Fri, 27 Apr 2018 16:07:08 +0000 Received: by gentwo.org (Postfix, from userid 1001) id CDDCB1161665; Fri, 27 Apr 2018 11:07:07 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id CB459116012E; Fri, 27 Apr 2018 11:07:07 -0500 (CDT) Date: Fri, 27 Apr 2018 11:07:07 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Michal Hocko cc: Christoph Hellwig , "Luis R. Rodriguez" , linux-mm@kvack.org, 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 In-Reply-To: <20180427071843.GB17484@dhcp22.suse.cz> Message-ID: References: <20180426215406.GB27853@wotan.suse.de> <20180427053556.GB11339@infradead.org> <20180427071843.GB17484@dhcp22.suse.cz> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfMAO9VLGcmmzJ8pEpuUJK/dweQkO0A/z1EuYoUV+qY/yyFe1u/g90kFtsl61saQUBa6xwBB0hvL0W1OslmhNffa6dxAa06wSkbqqCDjf4EwWOwEkO10F KR/CHr2Nc14Aa4W9uikRhTiIc0F46dHGhHDYfCO/DDQYxxW3jan1oeMr622M1pY4NJxZ2uBdLQGftPcq/NVDPOHEbKrURsaGI/p35+niaC7sI1FE1yzl/fe9 9pUVFhFubzTol4AZpnJacY0iXvGQCEH9u2v+aTY7YM9fJKKopK6s0aPSFuQYQCr7lYBT86fXO36JRM0clAaIIjj4iwe6QEbpVh9mI56ilnuc3katwfGGkwFJ U5XXEVDJxAb+8AibQrIKxHi3pNdhzLabGTfoii9MjOZBTY7nKrZgWsveO5QqakotIMG8LNZ9s0TiIMsYwvu5yQA/izSm9CPDdFwvI5iUyVnvdznh9NRRFpUB RYnS3kGAQfFe2xWDkyWPWL5fdXnOOBGBa9xgzfZ9rSnv0xqoOEsJlf1GaflBHPUmkjFTlQMw8FOVhCbrxs51YJlgDSLpYWzTz5peDI8BawctWWR8hbMuYcN0 YR5MZbSb20x1TtV+6QYgPCHq Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 27 Apr 2018, Michal Hocko wrote: > On Thu 26-04-18 22:35:56, Christoph Hellwig 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) Well it looks like what we are using it for is to force allocation from low physical memory if we fail to obtain proper memory through a normal channel. The use of ZONE_DMA is only there for emergency purposes. I think we could subsitute ZONE_DMA32 on x87 without a problem. Which means that ZONE_DMA has no purpose anymore. Can we make ZONE_DMA on x86 refer to the low 32 bit physical addresses instead and remove ZONE_DMA32? That would actually improve the fallback because you have more memory for the old devices.