Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3636394pxb; Mon, 16 Nov 2020 22:27:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdtjA6yMEBojevsIwRk+dCoC5LBTI2Qvu9edPS6qasxwJj9+PZqzYO+6hPx+CGGv8crzTl X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr18703119ejr.544.1605594457821; Mon, 16 Nov 2020 22:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605594457; cv=none; d=google.com; s=arc-20160816; b=FuTm9OxezPbiNW5UVWyWpoXYX3315uf6hIErfpF+6p53KCDuR6nRZUGhBe8NGrovt4 LqqvTPQjfFGJRsuSU2WKZuKwWszjgb6pMFnkXBzqPsQWkR8GpAerNBrNp+Ey36rA1YAe NgjOxUTUKb3k+thV6AIKkAYEVknWUR03xBdyRoszfiAt8cGdH1m5UUY+fzhvGOG/vBqw RzJbgdPMQuh2ryNni9ogez+f2sG68EtXnIA/LNV3y9HvCdXN+tFgXOYHi2nfs4iiKdQY urKh/JMOhzg0OqSz6nPximMXnpLIWWpJO8I3ifNVPgwAaeEFSASRNf4CngC90WaW2oGf zNCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fTH51wNSMQ8QZN8Ilqb0JWOzs194Nfs3G8p5yapzPnI=; b=bsZKPn/lmQNWJuM9Sf/fnozUL1aJKmdVDV3PqiJlAy4tt57Y8SAoAMq5jYQRRGixIv x97ikwpQFKGO/ssPU6O3RnYgR/bV5IpT+z8+Jks1Ge/8QQUktA3fPWuX9xy428q1TQHP 3ZzAeTxxuqF1Ij+NvrHZx31uGltK++0XgJ8Q8y/mKbBg+ofcg5LrZS8tQTWKxMmgkklH wHT1V2Tep7mSw/ORdphNj/yL7MEamBwmU26PRgopz38Idz3H9xvVKFBV9d/WfokPWcas JwRi3WIAnXvIclYKvdLO5vUFkkiekBMcBMXonfMnEpDsasQO4BGfG75GE4itkyzk8ycZ wgWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qAUA5RVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx21si225451ejb.627.2020.11.16.22.27.14; Mon, 16 Nov 2020 22:27:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qAUA5RVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbgKQGX2 (ORCPT + 99 others); Tue, 17 Nov 2020 01:23:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:42812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgKQGX1 (ORCPT ); Tue, 17 Nov 2020 01:23:27 -0500 Received: from kernel.org (unknown [77.125.7.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7DA1C223AB; Tue, 17 Nov 2020 06:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605594206; bh=i6knV0DMO2RXQJYhiZxatZGtoKHulkxOl5sSaGDS0gM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qAUA5RVCTP0npaeRBIO8YpdBuUTgIPD0QBwHOr2UeiElqlVtKRczsIc13jS9qXhSM /m8cTkIY+QMvxEbuFwI36fTIAAvpIJ9fhQtB5SdUWJTnAGZetOklMyr9EQ9DA4BJIQ QteWhvERMCEW1EUrOIOHXVbp4uevZfdG2TI7hGQ8= Date: Tue, 17 Nov 2020 08:23:16 +0200 From: Mike Rapoport To: John Paul Adrian Glaubitz Cc: Andrew Morton , Alexey Dobriyan , Catalin Marinas , Geert Uytterhoeven , Greg Ungerer , Jonathan Corbet , Matt Turner , Meelis Roos , Michael Schmitz , Mike Rapoport , Russell King , Tony Luck , Vineet Gupta , Will Deacon , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-snps-arc@lists.infradead.org Subject: Re: [PATCH v2 00/13] arch, mm: deprecate DISCONTIGMEM Message-ID: <20201117062316.GB370813@kernel.org> References: <20201101170454.9567-1-rppt@kernel.org> <43c53597-6267-bdc2-a975-0aab5daa0d37@physik.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43c53597-6267-bdc2-a975-0aab5daa0d37@physik.fu-berlin.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, On Tue, Nov 17, 2020 at 06:24:51AM +0100, John Paul Adrian Glaubitz wrote: > Hi! > > On 11/1/20 6:04 PM, Mike Rapoport wrote: > > It's been a while since DISCONTIGMEM is generally considered deprecated, > > but it is still used by four architectures. This set replaces DISCONTIGMEM > > with a different way to handle holes in the memory map and marks > > DISCONTIGMEM configuration as BROKEN in Kconfigs of these architectures with > > the intention to completely remove it in several releases. > > > > While for 64-bit alpha and ia64 the switch to SPARSEMEM is quite obvious > > and was a matter of moving some bits around, for smaller 32-bit arc and > > m68k SPARSEMEM is not necessarily the best thing to do. > > > > On 32-bit machines SPARSEMEM would require large sections to make section > > index fit in the page flags, but larger sections mean that more memory is > > wasted for unused memory map. > > > > Besides, pfn_to_page() and page_to_pfn() become less efficient, at least on > > arc. > > > > So I've decided to generalize arm's approach for freeing of unused parts of > > the memory map with FLATMEM and enable it for both arc and m68k. The > > details are in the description of patches 10 (arc) and 13 (m68k). > > Apologies for the late reply. Is this still relevant for testing? > > I have already successfully tested v1 of the patch set, shall I test v2? There were minor differences only for m68k between the versions. I've verified them on ARAnyM but if you have a real machine a run there would be nice. > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer - glaubitz@debian.org > `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de > `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 > > -- Sincerely yours, Mike.