Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp275803pxb; Wed, 13 Jan 2021 03:25:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzA8ZyxkkbT5bKhJpAGtz2AB8N7M28RUnZpyJFNCqTGjN6adoss02mNjTqHpEfnYfkS3d5G X-Received: by 2002:a17:906:3593:: with SMTP id o19mr1172005ejb.377.1610537155366; Wed, 13 Jan 2021 03:25:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610537155; cv=none; d=google.com; s=arc-20160816; b=FRZG4T3k8yx1cHvKsblTxPFNhD9MomwIJo7tbgFc450ChHIORnbYY8iXjZR1TEYPTE hmBUAOTGT3SEKXN3UsczfyIpTnOpEnEZaGuRKunBRyYqSlxpLjmfdXl30AS3gAVDqbPG ZmAfg1U7wFY9zeKmk65ZLNPy/4RzVihq153oZDu+jJKwqInfknAWI7lsltp5fNllCUWN 1cuwyh7nFDW29kFA9plPt6jd4HgUaY4SrPeE566Hu4crlJCj3tj8w2fDSClH/GknlTlZ +vArAsVelaXr+DfmIiaqblL88001NznAVzGW9OqzuLRCDJWbtUD56SCpCgAyk79QgTLr 6Kng== 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=T1/ZETlJjTrovyIiYxTnRb0dfVB/j5qjaqejrR2G1H4=; b=tGmPAsmZ6IQE8mdgIlU3CJ8ceWKS7AKmK15GJ9ZqLMzdx0wPV9DNuodN/n63w700fH Mth9pENqwQCS//hF5sfqg0SWG9QEmp+oKpzagMWYrAxbamfHq5cHOC/tcPdGhLFTSvGa UnZssy05eIz68ynlOAw/7QA7AkWU+8fdRdFAvW532DVJhvFkhObQuTStpakeTSbXz4W6 vFWRmZ99KdkTCnG1AcXSfVdZRjxvq+Te9+QMASuSHkkGLpGcISlx1eYzHhWBxxhqauU+ U5nwq48B1xvEDv54l0YQyndX2zkOJlMIWxfpZwS0zoLeG/qUkCLJL0oXM3C6LteaykMJ d4RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZQggGfq4; 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 r9si753549edm.110.2021.01.13.03.25.32; Wed, 13 Jan 2021 03:25:55 -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=ZQggGfq4; 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 S1727098AbhAMLYN (ORCPT + 99 others); Wed, 13 Jan 2021 06:24:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:44592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726908AbhAMLYM (ORCPT ); Wed, 13 Jan 2021 06:24:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77B8A2336F; Wed, 13 Jan 2021 11:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610537012; bh=0NYgjzOjhml2lGW631C9LPIJcfCrwDvm/lToJKYk97w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZQggGfq4UfTT6N0VnGCvSlr57fPvQX3aWyYIUSBLbuQN1ynmtCxF8707RmjryVg4i VftYT/t7B9TaAPWH8D47dD5t4RVcFCCoBQY7yGCsB1C8IMtv8pjz/b+t3Jr3u2kg36 EEOh8rAZSBgPENFUATLWdpQNGLYiU8RuSLQBtrz6aAs+m3ETRHRPdK0clYH3kCkCSt bIOs5hpRjqeAVGR3mVD2kTbZg9r17upjwjHr8wUiO16gE6fI/RDRzhEiip/MfjDoqo m9qLMdCswtMDkRIKn6vFmyboWMo4+rfp9eHtVYoIkmtCn0j2YFn4br28KDhhaLfFqF dM1VnzAOYdXhg== Date: Wed, 13 Jan 2021 13:23:22 +0200 From: Mike Rapoport To: Oscar Salvador Cc: Andrew Morton , Andrea Arcangeli , Baoquan He , Borislav Petkov , David Hildenbrand , "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 1/2] x86/setup: don't remove E820_TYPE_RAM for pfn 0 Message-ID: <20210113112322.GG1106298@kernel.org> References: <20210111194017.22696-1-rppt@kernel.org> <20210111194017.22696-2-rppt@kernel.org> <20210113085644.GA24816@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113085644.GA24816@linux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 09:56:49AM +0100, Oscar Salvador wrote: > On Mon, Jan 11, 2021 at 09:40:16PM +0200, Mike Rapoport wrote: > > From: Mike Rapoport > > > > The first 4Kb of memory is a BIOS owned area and to avoid its allocation > > for the kernel it was not listed in e820 tables as memory. As the result, > > pfn 0 was never recognised by the generic memory management and it is not a > > part of neither node 0 nor ZONE_DMA. > > So, since it never was added to memblock.memory structs, it was not > initialized by init_unavailable_mem, right? Actually it was initialized by init_unavailable_mem() and got zone=0 and node=0, but the DMA zone started from pfn 1, so pfn 0 was never a part of ZONE_DMA. > -- > Oscar Salvador > SUSE L3 -- Sincerely yours, Mike.