Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2126692rdb; Sun, 3 Dec 2023 03:58:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVJt3Bbvdnp3RrupHtVNIWXBvtNv88iVEO5IG38SL/m6Omn1knID3NYKDsTLvV+hFWMoZY X-Received: by 2002:a17:902:8506:b0:1cf:da41:7292 with SMTP id bj6-20020a170902850600b001cfda417292mr2473744plb.45.1701604715092; Sun, 03 Dec 2023 03:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701604715; cv=none; d=google.com; s=arc-20160816; b=DckQvfWwiLmz96X5aL4vAYITA5FKHCUQpA9RJ8ht4qSRetgEmSHY/BL7ZO0yfAcORY CFhpTmss6lCYL4A+8GuLIDPj/BCzgomxwhbh1JuxQ/C1R0/8c4gVqLUz3EO0xRejN/9H w+d/fV++PSZgQQI7QjjTw+1DwL66Epy+vLWstiZf8nb2vEXkuWHyh18GFb2rE2BWOX65 M8Y24JBvXrQbai8enj5KLXdYKMKG17UN7Xa7tLv/4iBLJCfETPDpxxQ9EHqYNCgDatiL Q8cGeMKMCz5WronQ7xdE5FInTKCobBKO1C7A1kN2S2GWdlZnqcNRa8vBrDkzK3Y4N1EN K7iw== 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=SrPXBpvHY4KdrtjINePfD8UPOr4sgdZKZ9V18j5Q8mM=; fh=goCvsrUastm/hbQD9AWUpoV3N6EI84uVVWkNAjCKUFk=; b=qt7rq0j3FI5VxIX75D519HhlizMBwYCm3Qx2j7mwWgKXyIxX7qi3alqC/4kMCnpdP8 /RyZ6I8hdLv0zEjz+2aEua+3bvNtkFLALceG1slRBd8Ua08w7nZDe33IkfImQcrSJu+z mEXqShn7yMtbdzdSI8Qy/f0CodQnJ46t39WSZyyHaQEaFCsmCh04dnMO+DMhOQSUCoZa puyBsxSd5kbSueYlvy/2mqc1+XhVChfX23dz/xEKnr+vwoAVUx76bPcTCnUjH7whAAPk FDTJ1lQ3xCCvE5YR3PIgzlIeAn/JTq/5vUFUAbtJNlmxlJjY7IXhgvz0+mulrSPEJtpv UYEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SUojLJ0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id pi17-20020a17090b1e5100b0028103a8ad9csi6595943pjb.68.2023.12.03.03.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 03:58:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SUojLJ0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F2FA4809848F; Sun, 3 Dec 2023 03:58:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231744AbjLCL6Y (ORCPT + 99 others); Sun, 3 Dec 2023 06:58:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCL6W (ORCPT ); Sun, 3 Dec 2023 06:58:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56EAFE6 for ; Sun, 3 Dec 2023 03:58:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7623C433CA; Sun, 3 Dec 2023 11:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701604707; bh=pziQ1U7QdvFt6jazsNDQct2z9qMxwW1lVib4eO04oAE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SUojLJ0D+hYzFpx4UrmEnt9hX3wdMqFvaPaScNdRJdBUkFxOK1TgiKTlQA2imiz1s Skxn+cTAEJn+ljsDkSEMFy6RotyZEf1HHA+eExaEgkxR6pz74CYXB9ujxCIn52F6bb EnmjraVq10aj62PL9SvsO/gowrBB7a1dSx5kbhdE6egTVL+10D8duPz3mFV3GtQtLI dvdAxoXf2IXlKZXq4LV+TN9wB1Hrw4UD9xL6+ONRE7YxrMg11jPbRzh4x9d5lpsAUy LV7TN9ebLHkYgrT6QIOORyT7xIYLG+w40wV+i5W9Lw+BSooqjNZRKsM2MJdJPMsZl6 7jI5bQTF5NFtQ== Date: Sun, 3 Dec 2023 13:58:15 +0200 From: Mike Rapoport To: Serge Semin Cc: Andrew Morton , Thomas Bogendoerfer , Jiaxun Yang , linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm/mm_init.c: Extend init unavailable range doc info Message-ID: <20231203115815.GM636165@kernel.org> References: <20231202111855.18392-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231202111855.18392-1-fancer.lancer@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 03 Dec 2023 03:58:34 -0800 (PST) On Sat, Dec 02, 2023 at 02:18:52PM +0300, Serge Semin wrote: > Besides of the already described reasons the pages backended memory holes > might present due to having non-memory regions covered by the contiguous > flatmem mapping. Add such note to the init_unavailable_range() method kdoc > in order to point out to one more reason of having the function executed > for such regions. > > Signed-off-by: Serge Semin Reviewed-by: Mike Rapoport (IBM) > > --- > > Link: https://lore.kernel.org/linux-mips/20231122182419.30633-6-fancer.lancer@gmail.com/ > Changelog v2: > - The holes in the memory are actually justified by having the flatmem > mapping model. Change the patch and the log accordingly. (@Mike) > --- > mm/mm_init.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/mm_init.c b/mm/mm_init.c > index 077bfe393b5e..824bf53e8253 100644 > --- a/mm/mm_init.c > +++ b/mm/mm_init.c > @@ -796,6 +796,7 @@ overlap_memmap_init(unsigned long zone, unsigned long *pfn) > * - physical memory bank size is not necessarily the exact multiple of the > * arbitrary section size > * - early reserved memory may not be listed in memblock.memory > + * - non-memory regions covered by the contigious flatmem mapping > * - memory layouts defined with memmap= kernel parameter may not align > * nicely with memmap sections > * > -- > 2.42.1 > -- Sincerely yours, Mike.