Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp2838372pjo; Mon, 16 Mar 2020 05:39:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtIAVZEYoledHQb3hTkcMM7Sd3v7IF7tuVhLiwVKbtcCWuAbBBiwT88wzUopiUJ1NWG5AZR X-Received: by 2002:a54:4816:: with SMTP id j22mr17608818oij.162.1584362395215; Mon, 16 Mar 2020 05:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584362395; cv=none; d=google.com; s=arc-20160816; b=W52b4F5jRJQGQnprRYK/QQf3lWEomwiAU5wa+dhSNilUboZxF3JQE5sk8N9I4xlNll fuf819tUkpEMj4oGUXWJnc3pe1ei/LFT+T2NPHD8XGkPlYwSA9PouvpaRwHMvtDkGD7a KbeE4Ag/RO7xxYqalan2r6QQh1XMQebP0Oy9ZKkw/2WyGamUq67kCj40GyPKEwApmgQP AVFEeVZznmDIRza12Dl1q6u5IqcqBGD18JaPiwHxed9vDFqWkGbV6qEWCBoykYKvls/I L2yViqdNcpRKGqx/M38vZoAytrHxqtmsReNf11P3c4N+HVYnxbNkbAHtcNU105sog+Nk Vp6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=gzZVOWgzxd34wapiHopX2ztrtdLZUIb2o3vS+Xq7Kp8=; b=niJTZPOm2eeOziLHrnE2lGagfHJd4OjT8oAGZxCwQbAw2txpo6s6fCx3oYMWkFhVD3 VwWcfJWJuOI81dmS0N0VgWUf0x4A560o7YREjQ/Wb7Q8B775jQv+UeiCchvSsxaDDis9 5NYR/02UdksMDH2vVmxdVzX4Ok2Ed+kBr2qh4tfXLL4zxFHOrq0f/jBm/7G0wCc9DEVt IATaXLk5e9y3vOdKDAqf3e2bmd3uaFOK7j/teSIFm7pNJIApzrmo4Vb8C+as+wfWP7QR ZmwI4CVjfAHXiFcE3n9yizaHcZCC2Ddw8Hk7iICZd6gpriKrvBTGvD/PydJ979RoloYo RGKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=PGZm67Ua; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q27si7949711otc.310.2020.03.16.05.39.43; Mon, 16 Mar 2020 05:39:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=PGZm67Ua; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731107AbgCPMgC (ORCPT + 99 others); Mon, 16 Mar 2020 08:36:02 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:58171 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731058AbgCPMf4 (ORCPT ); Mon, 16 Mar 2020 08:35:56 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48gwks5mQyz9tygW; Mon, 16 Mar 2020 13:35:49 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=PGZm67Ua; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id HzA4Qt75hKQS; Mon, 16 Mar 2020 13:35:49 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48gwks3Qh2z9tyg5; Mon, 16 Mar 2020 13:35:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1584362149; bh=gzZVOWgzxd34wapiHopX2ztrtdLZUIb2o3vS+Xq7Kp8=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=PGZm67UaLpL792dtn0rgDfIMk1uG5V8KY8oSNKSRWuY6gyg+Fzoq3GWueBiLXvMkQ btKHsh8WCDURj7TizCHAwpLWcvnuqDm2hS/ITS/h8Si76bb8CIO5HtDpasspmIhfbd JdSQF/LokNtGixOH6tFgWOK3ZQk2QTc/3942drUE= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 66C048B7D0; Mon, 16 Mar 2020 13:35:54 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id H7_Ae7NLUSoE; Mon, 16 Mar 2020 13:35:54 +0100 (CET) Received: from pc16570vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.100]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 44BCC8B7CB; Mon, 16 Mar 2020 13:35:54 +0100 (CET) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 39EF965595; Mon, 16 Mar 2020 12:35:54 +0000 (UTC) Message-Id: <65d666efd5a65c2c6f18627cadf4b90245fc7d7f.1584360344.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 09/46] powerpc/ptdump: Reorder flags To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 16 Mar 2020 12:35:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reorder flags in a more logical way: - Page size (huge) first - User - RWX - Present - WIMG - Special - Dirty and Accessed Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/8xx.c | 30 +++++++++++++++--------------- arch/powerpc/mm/ptdump/shared.c | 30 +++++++++++++++--------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/arch/powerpc/mm/ptdump/8xx.c b/arch/powerpc/mm/ptdump/8xx.c index ca9ce94672f5..a3169677dced 100644 --- a/arch/powerpc/mm/ptdump/8xx.c +++ b/arch/powerpc/mm/ptdump/8xx.c @@ -11,11 +11,6 @@ static const struct flag_info flag_array[] = { { - .mask = _PAGE_SH, - .val = _PAGE_SH, - .set = "sh", - .clear = " ", - }, { .mask = _PAGE_RO | _PAGE_NA, .val = 0, .set = "rw", @@ -37,11 +32,26 @@ static const struct flag_info flag_array[] = { .val = _PAGE_PRESENT, .set = "p", .clear = " ", + }, { + .mask = _PAGE_NO_CACHE, + .val = _PAGE_NO_CACHE, + .set = "i", + .clear = " ", }, { .mask = _PAGE_GUARDED, .val = _PAGE_GUARDED, .set = "g", .clear = " ", + }, { + .mask = _PAGE_SH, + .val = _PAGE_SH, + .set = "sh", + .clear = " ", + }, { + .mask = _PAGE_SPECIAL, + .val = _PAGE_SPECIAL, + .set = "s", + .clear = " ", }, { .mask = _PAGE_DIRTY, .val = _PAGE_DIRTY, @@ -52,16 +62,6 @@ static const struct flag_info flag_array[] = { .val = _PAGE_ACCESSED, .set = "a", .clear = " ", - }, { - .mask = _PAGE_NO_CACHE, - .val = _PAGE_NO_CACHE, - .set = "i", - .clear = " ", - }, { - .mask = _PAGE_SPECIAL, - .val = _PAGE_SPECIAL, - .set = "s", - .clear = " ", } }; diff --git a/arch/powerpc/mm/ptdump/shared.c b/arch/powerpc/mm/ptdump/shared.c index 44a8a64a664f..dab5d8028a9b 100644 --- a/arch/powerpc/mm/ptdump/shared.c +++ b/arch/powerpc/mm/ptdump/shared.c @@ -30,21 +30,6 @@ static const struct flag_info flag_array[] = { .val = _PAGE_PRESENT, .set = "p", .clear = " ", - }, { - .mask = _PAGE_GUARDED, - .val = _PAGE_GUARDED, - .set = "g", - .clear = " ", - }, { - .mask = _PAGE_DIRTY, - .val = _PAGE_DIRTY, - .set = "d", - .clear = " ", - }, { - .mask = _PAGE_ACCESSED, - .val = _PAGE_ACCESSED, - .set = "a", - .clear = " ", }, { .mask = _PAGE_WRITETHRU, .val = _PAGE_WRITETHRU, @@ -55,11 +40,26 @@ static const struct flag_info flag_array[] = { .val = _PAGE_NO_CACHE, .set = "i", .clear = " ", + }, { + .mask = _PAGE_GUARDED, + .val = _PAGE_GUARDED, + .set = "g", + .clear = " ", }, { .mask = _PAGE_SPECIAL, .val = _PAGE_SPECIAL, .set = "s", .clear = " ", + }, { + .mask = _PAGE_DIRTY, + .val = _PAGE_DIRTY, + .set = "d", + .clear = " ", + }, { + .mask = _PAGE_ACCESSED, + .val = _PAGE_ACCESSED, + .set = "a", + .clear = " ", } }; -- 2.25.0