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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 0DAF8C47088 for ; Wed, 26 May 2021 13:04:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E41D4613B4 for ; Wed, 26 May 2021 13:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231911AbhEZNGI (ORCPT ); Wed, 26 May 2021 09:06:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:36418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbhEZNGD (ORCPT ); Wed, 26 May 2021 09:06:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BBA0611CD; Wed, 26 May 2021 13:04:28 +0000 (UTC) Date: Wed, 26 May 2021 14:04:26 +0100 From: Catalin Marinas To: "Qian Cai (QUIC)" Cc: Mike Rapoport , Andrew Morton , David Hildenbrand , Anshuman Khandual , Ard Biesheuvel , Linux Memory Management List , Will Deacon , Marc Zyngier , Linux Kernel Mailing List , Linux ARM Subject: Re: Arm64 crash while reading memory sysfs Message-ID: <20210526130426.GD19992@arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 12:09:14PM +0000, Qian Cai (QUIC) wrote: > [ 0.000000] Early memory node ranges > [ 0.000000] node 0: [mem 0x0000000090000000-0x0000000091ffffff] Maybe de-selecting HOLES_IN_ZONE is not correct for arm64 in all circumstances. In a configuration with 64K pages, MAX_ORDER is 14, MAX_ORDER_NR_PAGES is 8192, so a 2^29 address range. However, the above range starts on 2^28 boundary. SECTION_SIZE_BITS is 29 in this configuration but the corresponding mem_map[] in the first half of the first section is probably not marked as reserved as we'd do for NOMAP. -- Catalin