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=-17.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 D6EBDC433E9 for ; Tue, 2 Feb 2021 19:41:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AC15E64E43 for ; Tue, 2 Feb 2021 19:41:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239929AbhBBTlQ (ORCPT ); Tue, 2 Feb 2021 14:41:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239805AbhBBTkg (ORCPT ); Tue, 2 Feb 2021 14:40:36 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9192C061573 for ; Tue, 2 Feb 2021 11:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=NYshmekz59/ebL0OxMq6zkLH6bwNBE7fSIJ02hCxO5E=; b=zc0ecUaFXW8Aa8RR1aNJNkGVDs zAe61YUDA7DTro7PMIgOhMdWGPhl9OgEgdJolVxEBATKtuodxw20gBsZnzw7KhK1NsiyIPqOM9GW4 hMSDL2g5DsXX3ibmYra7FTmVqwQ/ZBhb/IDR44gDZtXJV+u+v3YWNLT+Bp41Scrv5vrBXS2aHvNBO K1n7ysLQ3Os9p226E8BdF0Oht1bK/t41j/92a5/l3G3VGfsb/SN7/yWy8kYRe6cBDNIUsnaKh5HRV bWQkqqOxyfnRKtyp3pRoVSu0vQcM2F7bvvFiRSLwx0WpWFrIaESy22l2d73hOgTaPyPNg/Mm5pwXT qQzs/31g==; Received: from [2601:1c0:6280:3f0::2a53] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l71Wg-0004IN-Ma; Tue, 02 Feb 2021 19:39:51 +0000 Subject: Re: [PATCH] arm64/ptdump:display the Linear Mapping start marker To: Hailong Liu , Catalin Marinas Cc: Will Deacon , Andrew Morton , Steven Price , Vincenzo Frascino , Andrey Konovalov , Mark Brown , Anshuman Khandual , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hailong Liu References: <20210202150749.10104-1-liuhailongg6@163.com> From: Randy Dunlap Message-ID: Date: Tue, 2 Feb 2021 11:39:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20210202150749.10104-1-liuhailongg6@163.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/2/21 7:07 AM, Hailong Liu wrote: > From: Hailong Liu > > The current /sys/kernel/debug/kernel_page_tables does not display the > *Linear Mapping start* marker on arm64, which I think should be paired > with the *Linear Mapping start* marker. paired with itself? just asking... > > Since *Linear Mapping start* is the first marker, use level=-1 to display it. > > Signed-off-by: Hailong Liu > --- > arch/arm64/mm/ptdump.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c > index 04137a8f3d2d..0e050d76b83a 100644 > --- a/arch/arm64/mm/ptdump.c > +++ b/arch/arm64/mm/ptdump.c > @@ -324,6 +324,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info) > st = (struct pg_state){ > .seq = s, > .marker = info->markers, > + .level = -1, > .ptdump = { > .note_page = note_page, > .range = (struct ptdump_range[]){ > -- ~Randy