From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BBD0C433ED for ; Tue, 20 Apr 2021 15:06:10 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40745610CC for ; Tue, 20 Apr 2021 15:06:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40745610CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qYn8KZ6tSrfNGjh1DU1FdcIdWhuAluB1LOEP5g+LqOU=; b=NPUqiyYIPRYesx+ZYmqilFbWI dEjjIOpvtqV5r973vwjTYB88lYE/ghJfxOzWLLz41oIxj/8TCMCOSR3rl74ofBgtoPWZiu3gfzBlP SX48YaZuN4oE1qbXvIj00c24Or4yBOQIW4g7Xts0qpQUnSvXp9riU6A9ndPB4L/7P7BEBfDztCMkl NhA1A8wlQR1LN7KsvzJpRVSSpIePkow6e9BcrdMAEy34bss4INSbmPJcd4kJbbOxwE+ueDfGQcITy mLuL1UbLKNGjRtjBLbYJP0rfOm7X0PShrY21ITlpe9+FpsyNWIVJrrn/WALr5LsEbXcltMdGkGY06 EAVJetajA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYruP-00CPla-Vd; Tue, 20 Apr 2021 15:03:26 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYruM-00CPl3-PC for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 15:03:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=dgGaBjRyRuweNOzpSwA+Gqj1YJ0ny3Df3ebrWnIkVxs=; b=w6bpXR68zkXGw4tX5sgvbwndy5 tlXlmD/jYS2uCGqCLyjNTovPnpeQ7pT5jBttUfT0Y/JMF8/iyUwvYAQJq+sb9jsm/P8E1IUi8Tsnb auYMKpv7MxlhSpwfymWXgfTcC+NdslLzNqlvpxoaNz6D+5UX3SCQfrhkOwr104wcyPnRXcYdFO7EG 1R/jxtqaupZ7XhDt9AXABzep8TlbUIA2DoMAdnQL15/iX1wwRS6riSCUWXQWIYQCIbryTMHxTJayk nWF8V3J+gPSH5moDSWIhJYmmRUP/a7R0vz51hVx/790GqxkHaS4gzSPCiIztADH8jj5bWDxbmF6n2 uJi6N/QQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYruK-00CDbm-Cz for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 15:03:21 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB1B9610A1; Tue, 20 Apr 2021 15:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618930999; bh=j2AhiOXhAEFdSXlVtOmuTch74/ss0CH34AqlDj2lObw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rghGQ4Jms/10w+c2YUoA0xR7pEvFY+pxR5xN1nGHNOtIWuVhOZjS4OjDGWh0wTPzI RUuP17zgJlqsGRhFIpV2eRuid/0uqrYF74K5VpG4lVFZWkqrPIcbIkHikAMeITJKVU WhjGYkyswCKkggInHbmvW57ScJAZxQ3UUloLx6rEPnUsWD6H6pql50reuV5IONOLNM seMsNftgoixkTpCGEgvGDiOb+PlXgfV+0OMBu9tnscaCRp61/9BC0qt1zQ9w1w4Rdr 1n0zGLpmgjzZrjQpdUQCNSL1blMLFdzLl/ObWLC+ohd+RDp4p1ZkAn5AS3/acz9zlU /SNxFd6Pbb/Jg== Date: Tue, 20 Apr 2021 18:03:11 +0300 From: Mike Rapoport To: David Hildenbrand Cc: linux-arm-kernel@lists.infradead.org, Anshuman Khandual , Ard Biesheuvel , Catalin Marinas , Marc Zyngier , Mark Rutland , Mike Rapoport , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v1 2/4] memblock: update initialization of reserved pages Message-ID: References: <20210420090925.7457-1-rppt@kernel.org> <20210420090925.7457-3-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_080320_492991_BFE91752 X-CRM114-Status: GOOD ( 15.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 20, 2021 at 03:56:28PM +0200, David Hildenbrand wrote: > On 20.04.21 11:09, Mike Rapoport wrote: > > From: Mike Rapoport > > > > The struct pages representing a reserved memory region are initialized > > using reserve_bootmem_range() function. This function is called for each > > reserved region just before the memory is freed from memblock to the buddy > > page allocator. > > > > The struct pages for MEMBLOCK_NOMAP regions are kept with the default > > values set by the memory map initialization which makes it necessary to > > have a special treatment for such pages in pfn_valid() and > > pfn_valid_within(). > > Just a general question while thinking about it: > > Would we right now initialize the memmap of these pages already via > memmap_init_zone()->memmap_init_range()? (IOW, not marking the > PageReserved?) Yep. These pages are part of memblock.memory so they are initialized in memmap_init_zone()->memmap_init_range() to the default values. -- Sincerely yours, Mike. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel