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.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 3D974C47088 for ; Wed, 26 May 2021 14:58:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 062B9613BC for ; Wed, 26 May 2021 14:58:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 062B9613BC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com 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=bombadil.20210309; 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=QVepOA5lNXKW7t+SOT1MoCoZztkTHHJrPj82TO32s1M=; b=zsbji2oETm95A2 +s91nlMXjoujVUM1H/pIqEoi3HgKogUDgPO2Y45lpac4NJck188PwcJ69EXMZlpiLb6MiU1VUOPED mN0Qvj4wVhS/Ua4qdmlTuMCxQvvGICfvCEOnukL69Ld3QBQXmfCj1i7qa3vNSpRP6ocC+WYDfFMJa XDqoIKd7eMk0ddB86OsZ++vdBaYhmkSM0+PvtW+JiUIN8YNT5p2Kb3xtt6ig5eMa6b8BMQoVwbr3b VXY67yzNfrW76COA4m6+P89OLr7OfC2BJe2XfpkUUDxKhDnUGNGOhyJGdWgdLUTIG1ARwyg7gJoE1 O3qg+9A/x9g1g/rWeKmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lluxg-00F7V3-Hg; Wed, 26 May 2021 14:56:45 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lltD5-00EGNP-Do for linux-arm-kernel@lists.infradead.org; Wed, 26 May 2021 13:04:32 +0000 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210526_060431_529355_36B13DA1 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel