Received: by 10.223.176.46 with SMTP id f43csp453420wra; Wed, 24 Jan 2018 00:29:01 -0800 (PST) X-Google-Smtp-Source: AH8x224D4ZEusSvXxAJD6ZSJircT0dZ5Mk0qOmG3fQ5Ca2qmMFfOOEQ/iy9KqL8CapGA9rpc88sD X-Received: by 10.98.87.201 with SMTP id i70mr12516539pfj.143.1516782541381; Wed, 24 Jan 2018 00:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516782541; cv=none; d=google.com; s=arc-20160816; b=d5HJ2FfX3RxIRtPqZDx/hAF+DShjDzC8F8jDCu3azmOOlYyk5+CQL4X2pQKfxKYm87 qkXYzK9KtpbIOHFpmS5fftsrS1feDzCGQQrdShylIWHDDFr8Ry3pZZ1gIYuXlHVZ8VkW xRxdZLvBQiVr+ULjQUI0T7imjPjCaLY/E5GWHLxzmNQaeAo5AZ7RZrbjXcDdqudQtvr6 asRYjG7lYGIDP1xha98J6baRr0fV6rRTv9eZDawEAn37gA2FFQ//UFwJWilSiYEqYAin FKw9IrtpJ5q+iCznBnKz8vV4ffKgb0IHK5VBKmVwHsClFr8TP4paW8wHu+eOq6m4XtVF xHlg== 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=cIQ47jZjsehZRMwfhXsS74qYUBnrcIAHpJWbG70dS1Q=; b=enGh0b+B8GzaxjaUxNh4MpSzQ57YqIKsPcIcZU6oykxv0yQD0GkOidrmh3/w3V8T4i 0FkTbLHnKXDmLvvs66BApsJ9R5SRAM6GEzC0e9IoB+yTvs77Kg16y7DpGm+qyTqsx0S+ 3NwfRdz+vBZOAUTNZIm8h0Dr26IOPIJhewQNJbM6ivCjnDlATWVUPVtyKqvGkWi+kIZd sL4KNidpgkl9cIdv6W4E4ucKrq5LjGNyV6capoaXhDARWFU8AbiS/zMpNGrmrDiJI1HV x2vj/ynVwdoLhfVwJ0NfksgKLVtLo9/dMvFwbHdF+b2xFazmi22l3oV2ruP39LprGmXD 2VEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ompz72UD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si2003307pll.360.2018.01.24.00.28.47; Wed, 24 Jan 2018 00:29:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ompz72UD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644AbeAXI2P (ORCPT + 99 others); Wed, 24 Jan 2018 03:28:15 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:44176 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752166AbeAXI2O (ORCPT ); Wed, 24 Jan 2018 03:28:14 -0500 Received: by mail-lf0-f66.google.com with SMTP id v188so4049140lfa.11 for ; Wed, 24 Jan 2018 00:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cIQ47jZjsehZRMwfhXsS74qYUBnrcIAHpJWbG70dS1Q=; b=Ompz72UDTTbyKBmVharPusG07VYHxKZWVR2A0wSrWAMH5klCdlecO8fom7zrH7Sl4M oxzevqzbgoil+WpTB39gRSCC3gNkO8RHlJAy/xJXe8WJ2ppcw8rNhHUrRnxBERTphilh dqCCrFwR4q/nKJ5yjzXDuSARweoOd0l2YPMUwc+hj/l/KVyNRxgeDDAG+DFLw/+TGNm2 vHwIkmVGyeYu/0vSQg0gWozoepeXOW6guW0S0mNowanvWgwpPnTCfCTUFmB+V6do8rib hRT5MEiINlu220tzbrEmRJLPwHDwdEJbv3LZky4eRLyJD4rZ6/ARwkN22hMZ5+LMi5WD mKfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cIQ47jZjsehZRMwfhXsS74qYUBnrcIAHpJWbG70dS1Q=; b=CRe1gjwo3qO5jK/N1lj53SaKp2tDCAMKxl+RzubQsE67MPvFJjHjwD6BNEDg8nOzhh jI8GzqStjH+zMieJJK/YYgxxtUhxWjGpw3jFh8x8zkr2wxqKAq/mfZXUX/fVwNE3wmSJ kdGWWI4nnQ5BfS2Vd9N6FnGeZJ9y+W9rzuRFiyJ80MusEEYcu+HAmLN9XjpMtt4SFpQu lxHTQJ311DywBRUdNwa/tq7H5GMEd8un+/Aa497Zmqn5Eh5U5ad0zRiCT6MdFnQ+wldS gNFeLPpIBzcXgJUPxp//RfmGm9dnPJz3huwerbG07bsfkLeTtwVcp+j8vesXWI+fxAbE SuEQ== X-Gm-Message-State: AKwxytfyFLwWtGDtDa3TEBS3Z7+5LCzbyK+IYbUytWvhJpM4NyU8ypOV gm7dgKPBdvBWQ+6DRfzT7aw= X-Received: by 10.46.54.19 with SMTP id d19mr2747916lja.72.1516782492524; Wed, 24 Jan 2018 00:28:12 -0800 (PST) Received: from mobilestation ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id k86sm3407590ljb.23.2018.01.24.00.28.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 00:28:11 -0800 (PST) Date: Wed, 24 Jan 2018 11:28:26 +0300 From: Serge Semin To: James Hogan Cc: ralf@linux-mips.org, miodrag.dinic@mips.com, goran.ferenc@mips.com, david.daney@cavium.com, paul.gortmaker@windriver.com, paul.burton@mips.com, alex.belits@cavium.com, Steven.Hill@cavium.com, alexander.sverdlin@nokia.com, matt.redfearn@mips.com, kumba@gentoo.org, marcin.nowakowski@mips.com, Peter.Wotton@mips.com, Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/14] MIPS: memblock: Deactivate bootmem allocator Message-ID: <20180124082826.GC31120@mobilestation> References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180117222312.14763-15-fancer.lancer@gmail.com> <20180123235934.GA5446@saruman> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180123235934.GA5446@saruman> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 11:59:35PM +0000, James Hogan wrote: > On Thu, Jan 18, 2018 at 01:23:12AM +0300, Serge Semin wrote: > > Memblock allocator can be successfully used from now for early > > memory management > > > > Signed-off-by: Serge Semin > > Am I correct that intermediate commits in this patchset (i.e. bisection) > may not work correctly, since bootmem will have been stripped out but > NO_BOOTMEM=n and memblock may not be properly operational yet? > Yes. You're absolutely right. The kernel will be buildable, but most likely isn't operable until the PATCH 14 deactivates bootmem allocator. > If so, is there a way to switch without breaking bisection that doesn't > involve squashing most of the series into a single atomic commit? > I don't think so. There is no way to switch without squashing at all, at least since the alteration involves arch and platforms code, which all relied on the bootmem allocator. Here is the list of patches, which need to be combined to have the bisection unbroken: [PATCH 03/14] MIPS: memblock: Reserve initrd memory in memblock [PATCH 04/14] MIPS: memblock: Discard bootmem initialization [PATCH 05/14] MIPS: memblock: Add reserved memory regions to memblock [PATCH 06/14] MIPS: memblock: Reserve kdump/crash regions in memblock [PATCH 07/14] MIPS: memblock: Mark present sparsemem sections [PATCH 08/14] MIPS: memblock: Simplify DMA contiguous reservation [PATCH 09/14] MIPS: memblock: Allow memblock regions resize [PATCH 12/14] MIPS: memblock: Discard bootmem from Loongson3 code [PATCH 13/14] MIPS: memblock: Discard bootmem from SGI IP27 code [PATCH 14/14] MIPS: memblock: Deactivate bootmem allocator So the patches 03-09 imply the functional alterations so the arch code would work correctly with memblock, the patches 13-14 alter the platforms code of the specific NUMA devices like Loongson and SGI IP27. After it's done the bootmem can be finally deactivated. Regards, -Sergey > Cheers > James > > > --- > > arch/mips/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > > index 725b5ece7..a6c4fb6b6 100644 > > --- a/arch/mips/Kconfig > > +++ b/arch/mips/Kconfig > > @@ -4,7 +4,6 @@ config MIPS > > default y > > select ARCH_BINFMT_ELF_STATE > > select ARCH_CLOCKSOURCE_DATA > > - select ARCH_DISCARD_MEMBLOCK > > select ARCH_HAS_ELF_RANDOMIZE > > select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST > > select ARCH_MIGHT_HAVE_PC_PARPORT > > @@ -57,6 +57,7 @@ config MIPS > > select HAVE_IRQ_TIME_ACCOUNTING > > select HAVE_KPROBES > > select HAVE_KRETPROBES > > + select NO_BOOTMEM > > select HAVE_MEMBLOCK > > select HAVE_MEMBLOCK_NODE_MAP > > select HAVE_MOD_ARCH_SPECIFIC > > -- > > 2.12.0 > >