Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp762258imm; Fri, 29 Jun 2018 06:05:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVEyAhPeMwMlkuyPypJBLibiaFp9IUPoYBiMhKHvL6DTzvBj6EGzAA2KgQYb+OKxs0cSSt X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr14727370pls.321.1530277503447; Fri, 29 Jun 2018 06:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530277503; cv=none; d=google.com; s=arc-20160816; b=eL/WrjWC/50auCbflL2bkNnaIBAQFTEhyo/8AKdBnN9uLeJY7LuRmNCbIMAR7mzCRq nRd1op4UZEakim13tPgjyRqbzNr3uz1WpeuHEp9k7r+BnQDKyK9Z/TvkJXU8L8E1PUc4 g9+YgYPWY+l/c9mfrV17GFzWjc9J0vYWSE/FI7yBFOpGKcGRZMmojPzEgo2elUMnyhHU N2oajsHZ8p0SJ3+NofLQpiOIsz+b8tfFNcEqxLiqqysEM/3pEvRXCQLums+v9WBJprVv nvditU23ftbYSWxiHj2InKkqupUQSRhNZIBH86j8OneeCqhacbfYiyIpvO38zx6F1nYB lalQ== 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:arc-authentication-results; bh=xSV51KkfVZxuYS7RIYtZDEzMZfrOf1jDxKvlZ3kWzy8=; b=K5HaSTKRHrMMqouO5b0WYzewHZS4Np9OcEs9U2tO6YJluhVoEzHzIIQUMAVLb8fKFL wrDFlET8ILRGNlr4XVRK15LfWaweg33OQqDRG7CZ+5Nqrhzd37avCkTy2bzCTjLzB/b9 keGd66HcB3GQ/1QBCyxsc66oUz587hOw8olv0b1+yvsCH3csiWIpzLoyTkHymHnLPHpn YPRZR1PkCSIxt0xIuyrWKBVhMavbBmF0Y9VzbzeUUNQ9rGLmQY0tiNXnXSF42PeZPcYT 4V/J4LHSxjod0W7zfqSu5/ju4gf4cKqguWrez+NzrZjvrLV+vnqAiNCMQOkw2HaEqmUO mzSA== 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 w123-v6si5570742pgw.360.2018.06.29.06.04.11; Fri, 29 Jun 2018 06:05:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932734AbeF2JoH (ORCPT + 99 others); Fri, 29 Jun 2018 05:44:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:41232 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932085AbeF2JoE (ORCPT ); Fri, 29 Jun 2018 05:44:04 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 45F91ACC9; Fri, 29 Jun 2018 09:44:03 +0000 (UTC) Date: Fri, 29 Jun 2018 11:43:58 +0200 From: Michal Hocko To: Mike Rapoport Cc: kbuild test robot , kbuild-all@01.org, Richard Henderson , Ivan Kokshaysky , linux-alpha , linux-mm , lkml Subject: Re: [PATCH] alpha: switch to NO_BOOTMEM Message-ID: <20180629094358.GE13860@dhcp22.suse.cz> References: <1530099168-31421-1-git-send-email-rppt@linux.vnet.ibm.com> <201806280311.v9maSSpW%fengguang.wu@intel.com> <20180629092359.GC4799@rapoport-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180629092359.GC4799@rapoport-lnx> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 29-06-18 12:24:00, Mike Rapoport wrote: > On Thu, Jun 28, 2018 at 05:38:29AM +0800, kbuild test robot wrote: > > Hi Mike, > > > > I love your patch! Yet something to improve: > > > > [auto build test ERROR on linus/master] > > [also build test ERROR on v4.18-rc2 next-20180627] > > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > > > url: https://github.com/0day-ci/linux/commits/Mike-Rapoport/alpha-switch-to-NO_BOOTMEM/20180627-194800 > > config: alpha-allyesconfig (attached as .config) > > compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 > > reproduce: > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # save the attached .config to linux build tree > > GCC_VERSION=7.2.0 make.cross ARCH=alpha > > > > All error/warnings (new ones prefixed by >>): > > > > mm/page_alloc.c: In function 'update_defer_init': > > >> mm/page_alloc.c:321:14: error: 'PAGES_PER_SECTION' undeclared (first use in this function); did you mean 'USEC_PER_SEC'? > > (pfn & (PAGES_PER_SECTION - 1)) == 0) { > > ^~~~~~~~~~~~~~~~~ > > USEC_PER_SEC > > The PAGES_PER_SECTION is defined only for SPARSEMEM with the exception of > x86-32 defining it for DISCONTIGMEM as well. That said, any architecture > that can have DISCTONTIGMEM=y && NO_BOOTMEM=y will fail the build with > DEFERRED_STRUCT_PAGE_INIT enabled. > > The simplest solution seems to make DEFERRED_STRUCT_PAGE_INIT explicitly > dependent on SPARSEMEM rather than !FLATMEM. The downside is that deferred > struct page initialization won't be available for x86-32 NUMA setups. I am really dubious that 32b systems really need DEFERRED_STRUCT_PAGE_INIT. Regardless of the memory mode. Those systems simply do not have enough memory to bother. Deferred initialization is targeting much larger beasts. -- Michal Hocko SUSE Labs