Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1620460rdb; Sat, 2 Dec 2023 03:19:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxYNuLl+bPQy/IOShWDQBoBjzxMGu3mgTJ9K8fbkOSc2uASKvev2AudLHn8yDOOrizWLO0 X-Received: by 2002:a05:6830:6788:b0:6d8:1c20:85c3 with SMTP id cs8-20020a056830678800b006d81c2085c3mr1278542otb.20.1701515947498; Sat, 02 Dec 2023 03:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701515947; cv=none; d=google.com; s=arc-20160816; b=a+JA2qTWuEEzSMdGw5cB/zHaDt4t1MLMuNfmlBsnMYMJ5IwD3vSyeDKMCARf9oGg9z YLE7wtvxp3jegcKyqPS0umG5UrjBmf0mrJxPWU5GL4aRrxReteBwZIbVxydrpTkQACik 6XndjCwhtYl+geX6lfyeip6H4TpiOo5zP5ek2Je3oPoqOC1GSsMt94sSlCGOtGxMB2Zp 0OgTIUJNsy3YyJLculH3pPw3N2RO3v+zkrlaGEf9wyujajWAkOkM3802FgVSmnn9lGNP YpNyJ1lbJDg7CLgsjWAml390fDnxwDDFuEaj4HetaihU8n9RS2c788FB4nk8ziN38Q6t a8ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EJ168aVq5QXOtHooxbH+odPbZ9pENqVHXwP/aZSJoxY=; fh=bDOokcvo9jmFLggH8BO0Isgx+ixlObzLLJXrkmRl+Cg=; b=LqsKw6kIKWmPIwJLd7HuMrciOhXAxMrIior+Bp0qmTplum4zaopLK1wOh2zJBO1eUC witIMGLe5OCYoG6F45sps21QQ+9MioQdcPN5VByrbJNvMRxXKqvGQ15wnoexEOkNKKOj rydHP0FhrV/iCxlK3+oGfU43h7KPr5Jh5tha4BoDMlOB95o9IQakwm3/pl9vxrZeN41g mn1CgNUGSLydgngDqVcdSk3LgBRl6sn4O2MDny/iFmT4uBZvTqXZwZYZ1aSEZyQcDUul pQG+p2tyb3uGOfWETDm9bitHui93SNqm0vv7VDPJIoFKy1QpJAdDFRvw91V1t7KuCmJ7 jGtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YeVnEhLb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j2-20020a056a00174200b006ce0b841a66si1859404pfc.291.2023.12.02.03.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 03:19:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YeVnEhLb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 225DC806139A; Sat, 2 Dec 2023 03:19:06 -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 S232487AbjLBLS4 (ORCPT + 99 others); Sat, 2 Dec 2023 06:18:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjLBLSz (ORCPT ); Sat, 2 Dec 2023 06:18:55 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDDE318C; Sat, 2 Dec 2023 03:19:01 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50be9e6427dso263849e87.1; Sat, 02 Dec 2023 03:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701515940; x=1702120740; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EJ168aVq5QXOtHooxbH+odPbZ9pENqVHXwP/aZSJoxY=; b=YeVnEhLbgyDw3B1XXHHKA8yp6osJqjS6IR1AHUCfiKPszypzFQ+bKI1Y0IXI0Xha5n R0o7bQDcyc0mbhq2i/KnfP7wYJpmoX6q2oztruhfFr3qD/4WziQTKW/6/xexXKYhcASd nl9bgaDbkrUOzhWPg+bA1dhfZjK8wqP+Nxv8NDLrNsG8NdKU1WYRtMbSs9pwsiJ19MYL n+ZIrIyPHg4X92OGTHMg/nSP+bEociJObRA5VoQ+TP9oDKMhyJ2P9Bek4aD8HozjUcdk 61yFU6NqdOmefVywLIA7aH1dE6/B4l5ZZOfrrBdzheFry7lIx6IrdeDQWyUT5fcITsRi L/lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701515940; x=1702120740; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EJ168aVq5QXOtHooxbH+odPbZ9pENqVHXwP/aZSJoxY=; b=p1wUj96fQmmKy/hnmFU+p9s/pNc49imNS4KxjxdEW6uNJQ/E+N/oKoTe7KAkT6grpW pclyd8aupC8Fmj4U3W08eJnXdG1YVRMBs7pm8rEg63iIwhGo2c+F1oZWkiqvus7ajx1o AJueupfmwPcWM0SZRGPJrlBnfznFygc0hvMVqOvucdy5DGU9G1JNNhBerIxMD322/4Ra zmRL+w4jYES+8U5Ux/+kCM2i16UlZemtHBtJdRRZnvA94Ae5coW9p+OWwPJ6sNRZJ/7I heCuty4ZN5iUJncHgPRrc+0JDihqza7q4KHVak2OiY2bHrHFBfuBdeBOoVpRVBpoy/FT OhLQ== X-Gm-Message-State: AOJu0YweiEk7sphsTYLeFeHDlLA163IuTM5ga8rpz6elOnjY/HAdBhaD XQ1hbsrHFC0SCx5nTb/sYcU= X-Received: by 2002:ac2:5e63:0:b0:50b:d764:8024 with SMTP id a3-20020ac25e63000000b0050bd7648024mr1399573lfr.87.1701515939941; Sat, 02 Dec 2023 03:18:59 -0800 (PST) Received: from localhost ([95.79.203.166]) by smtp.gmail.com with ESMTPSA id z10-20020a19f70a000000b0050bc4ed121dsm692406lfe.254.2023.12.02.03.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 03:18:59 -0800 (PST) From: Serge Semin To: Mike Rapoport , Andrew Morton Cc: Thomas Bogendoerfer , Jiaxun Yang , linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] mm/mm_init.c: Extend init unavailable range doc info Date: Sat, 2 Dec 2023 14:18:52 +0300 Message-ID: <20231202111855.18392-1-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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]); Sat, 02 Dec 2023 03:19:06 -0800 (PST) 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 --- 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