Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3844918pxb; Mon, 1 Feb 2021 06:15:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+7UWOrmh36R41R8ei3dmEnjWJJYd0691GUEiJlzPDWNkP0vBa9z3Hc5me57CAve5rczJa X-Received: by 2002:aa7:c459:: with SMTP id n25mr18519827edr.214.1612188945207; Mon, 01 Feb 2021 06:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612188945; cv=none; d=google.com; s=arc-20160816; b=Tsq/JEFZn5ehkkglHf8TmgKehFSc2xxY4YhpXEnTS3M3kCxsNI9P9H16dE+xGW22cb Bkg3A/8zo2IW1TY4jrPKd3LdInYF9M9XMQSyAu8cRp3y2sBoH5SXOqr3go9U6K85d1qn KPHNDpGLLk/m1XIUX86Xq2XjF97G3T0HRKMT+ZMwqnKLURhup6VNGhcRGZilbNtMAHC/ pWejLEtDUewelgSLm+g2Y7nCj2G68OCR7WQviw7unjklqi6hcRExaNc0eOlV6ABeQV/f BoemWKZx/+tVF0NO1nhL5taFQbgaOISL8ZFjhhePl7eeavANbamJJlKzOInkTOu90rt4 Owsw== 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=yAwgV9tWStC5Nint20ANZCykZiB4oYnSISHvsjtdRnM=; b=LXhjRWUYcBkQotn+XnE6W6Oio0S5fvgv/KnJnSP7RbJNBA1vfZLL25CL0VkriuClYj np52TjY4Bfw8QfIPllh8DHNfE5BO3i3lNIFwOhz4f5WWvgQa0z+xMKVmBsn5H1myxOfO gJlk07AEbRhdqT1Tq4gm5H5TCrCdrWOZno4b/NIfarKyFh6/lZ2RXDED7cr2iND99toV QH7zCwQbxist3aBD4bgKOQE9UcvLa9ty7WAo4hjC+xBCx1y99nxWRvUzneT+P9/ClsJ3 TmMiEWJOZaxYQfy/F+/YCen5uhtcoyxF0BH73zPai6xH60EuzOZUlqdHoQ41GJ0Qia9o 48eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qz1IgX5S; 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 z88si8831355ede.280.2021.02.01.06.15.18; Mon, 01 Feb 2021 06:15:45 -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=k20201202 header.b=Qz1IgX5S; 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 S232394AbhBAONO (ORCPT + 99 others); Mon, 1 Feb 2021 09:13:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:52128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbhBAONN (ORCPT ); Mon, 1 Feb 2021 09:13:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2AC6364DE1; Mon, 1 Feb 2021 14:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612188752; bh=bhH1EtxkV570baZYIdO2ZQx3Qz4p1Kp0KAuVJO2Tg0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qz1IgX5S9ddahNwh/RMFVP9g2eA95R5fUDDf16jlgOlI3MsVoO4VA9seW8wX2S4KD MpLisyTUAc5Rg8lUCWrlafEFJ8DaADH5isQBfqXsOI2H7T6mMxvOwaAl14Kj72QPjt ktWG6uBPY/s+Zyx8MvJsgEkQK9APbNaEfmQCOisY1ZVDqFJAxuN2w8/cgl6+Kgn3+U v37PE2uqaT5tvwi7as8dS9lxxbVN5+bSsiLEQpmYuEYpS9jj16CqSzMP0Zv7DMJmnt CT4ZnJsv3du9axuLoOTVpKogG/QdG5AEKZ5nx/0UbPVHB6lbOJScOmlS/omikR7/Lx Lcdj/fDYJ3Qxg== Date: Mon, 1 Feb 2021 16:12:22 +0200 From: Mike Rapoport To: Baoquan He Cc: David Hildenbrand , Andrew Morton , Andrea Arcangeli , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Mel Gorman , Michal Hocko , Mike Rapoport , Qian Cai , Thomas Gleixner , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Subject: Re: [PATCH v3 2/2] mm: fix initialization of struct page for holes in memory layout Message-ID: <20210201141222.GH242749@kernel.org> References: <20210111194017.22696-1-rppt@kernel.org> <20210111194017.22696-3-rppt@kernel.org> <20210201093958.GD28734@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210201093958.GD28734@MiWiFi-R3L-srv> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 05:39:58PM +0800, Baoquan He wrote: > On 02/01/21 at 10:14am, David Hildenbrand wrote: > > On 11.01.21 20:40, Mike Rapoport wrote: > > > + > > > +static void __init init_unavailable_mem(void) > > > +{ > > > + int zone; > > > + > > > + for (zone = 0; zone < ZONE_MOVABLE; zone++) > > > + init_zone_unavailable_mem(zone); > > > > Why < ZONE_MOVABLE? > > > > I remember we can have memory holes inside the movable zone when messing > > with "movablecore" cmdline parameter. > > Maybe because we haven't initialized MOABLE zone info at this time. We already have zone_movable_pfn initialized at this point. So if there is a possibility for holes in the movable zone, we should take care of it. -- Sincerely yours, Mike.