Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp195530pxb; Wed, 13 Jan 2021 00:59:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw2mRICPEGdr8ijZmi3wxGrnUXhXcVgIm8j2Y/h2hkba2UZ/vP6Lej5QISR2TQFxaVlcOS X-Received: by 2002:a50:d685:: with SMTP id r5mr985193edi.248.1610528374420; Wed, 13 Jan 2021 00:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610528374; cv=none; d=google.com; s=arc-20160816; b=i58oIEE/du6NhcR6xYTGQGFx1hdxeXX+RDgWmtvN7KggWV90XKntpxnyS2uIf5XU+m abteiIDu5/rMAVNGXlXDxfFpUFC+vY/Ki7GK89H7o8kl1StrNx2Y31aTZHQuexIQkqxw 6GGDFE3ExcsJzZhFtSfw/apoQnCJMr3avdvsZgLyU4RpBHoJJJvk+V2Y3RzZNqfD+UqQ vzY9Zg6qBJkyBCwP08j1dKxCOp+uq+Ipx4dy5P/PVXWlYk2hBU1VpOt+hvJtdsuInzt1 BBhImqd+Oe75A6V20oYqYVVJrS8AM3xDgysMyHDMaHczSqXprsp1I17HQ5iZ3ucTTkxQ /98w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wH8iOBZAHDaZpDc04sGq5yTOQ67ktCyXWuNacNkXka0=; b=CGsTg05U7qU/5jm1VCxYeowcUPWWHfHOexo8/kNnZTbVQvVE7FR1XjV3twwc0rtD0A pKqlchV98jLaqOknZ7QobEGg0d6/19ubyGiaF7d+NjevklfXoc2wxbX15DmJxjn9M103 5+/6mCHqR2EkszVCKE2AjzoSje9x0h1e0XDYgkLtw4SlpxwSuH8xXngKfq0cO7qy7tgi JME3fo23xCIuXDCqlQDLjdOO7JfWP9ZTvNVXkr4b1M4b0kAJJQZVpuWccmWw57ltK0/m Q3qienrPAepTLZAj0TBCjeWXipEz11TqBUWCIur9Qs2PzlqByZ0zZoA3RuJohF33e1TL RwQg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si660968ejz.538.2021.01.13.00.59.09; Wed, 13 Jan 2021 00:59:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727102AbhAMI5d (ORCPT + 99 others); Wed, 13 Jan 2021 03:57:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:48696 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbhAMI5d (ORCPT ); Wed, 13 Jan 2021 03:57:33 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1F116AA6F; Wed, 13 Jan 2021 08:56:52 +0000 (UTC) Date: Wed, 13 Jan 2021 09:56:49 +0100 From: Oscar Salvador To: Mike Rapoport 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: <20210113085644.GA24816@linux> References: <20210111194017.22696-1-rppt@kernel.org> <20210111194017.22696-2-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210111194017.22696-2-rppt@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Oscar Salvador SUSE L3