Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3242877ybk; Mon, 18 May 2020 22:55:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6Ym7iubh/+kpf0OSBRhh0WKgRCEyv5BsxXPP3ayATaC0lA/+afh1VZ14zqrFNVZq1xCZz X-Received: by 2002:a50:99de:: with SMTP id n30mr8942074edb.248.1589867725501; Mon, 18 May 2020 22:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589867725; cv=none; d=google.com; s=arc-20160816; b=gitrpVQY0NibhpFr+WHVc4PcvGkrLLQWW0syhbsfQdnZfnzR0q3TPH7dCKpCFNq7AC Hc92J7jrkeowqYQz6fNUe7zmOSLOKlpb9hPkZj+Ma7wRdtLXRvV1ULGmVsvEnqXd5h6G 5wi8SLqz/DCfjzbNPTUUe+43xOwB9GhsQ7mAS86QjWb32ZMN+Vyn3Yu+K9GxoiibhDc+ AkUVa21oREkHJRSDO/mg2RCSyRYWI6/Z1+u9eHMIIIr+V+CuXkrzAr6OYybA7z0AH9mP /6owt9JDEgK84guXLNGdvyjdbcYfdK9JZWithW6uHtctEFtCBcS3669RPtorRJtgDWho In8g== 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; bh=KNdpO8NifSefwDdcOkJU53zDusM9fQziG6TQi7ufzMA=; b=atkD9X8ZpDiK/EbTssgpReI2v2dolyHaSDhP//QEsGbbjRwJqMjRKZZr9p+EpIFCkr sm6U3M+5IINwK4gy17y42+n9rPP42PzSj30z1i0o0B28nKKFliQlgT/5XlxKf2XCU+DT RNrwXQc3n1TekvL1cN7QgWreqWpohz7JdySsq3pO27YOPJR/yyEiJLgQv9j0MG4Zi6ed q53bUVSOlQSddbu7GNAEuSLbShd3JLaEcR1s5xV/2uQtfNkZ30qy+TKdE3UmXYy/r3C9 bWDp2ssCngFy6mXqhZzFmvQ0G5aKLLFB24iq9NQE7qzPd96xMCiNprlC2UUwjfrdODhm il6w== 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 k5si5359739edk.415.2020.05.18.22.55.02; Mon, 18 May 2020 22:55:25 -0700 (PDT) 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 S1728478AbgESFtA (ORCPT + 99 others); Tue, 19 May 2020 01:49:00 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:39612 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728359AbgESFsx (ORCPT ); Tue, 19 May 2020 01:48:53 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 49R4gk0hBjz9txm4; Tue, 19 May 2020 07:48:50 +0200 (CEST) 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 CS6Sq1QsQltE; Tue, 19 May 2020 07:48:50 +0200 (CEST) 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 49R4gj6wfQz9txm0; Tue, 19 May 2020 07:48:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0EC6B8B7A7; Tue, 19 May 2020 07:48:51 +0200 (CEST) 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 s6khmcBZXGkS; Tue, 19 May 2020 07:48:50 +0200 (CEST) Received: from pc16570vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BE6238B767; Tue, 19 May 2020 07:48:50 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 9F72265A4A; Tue, 19 May 2020 05:48:50 +0000 (UTC) Message-Id: <6831f9eaa0ed896079353fdc54ac3a6cc8aeaef5.1589866984.git.christophe.leroy@csgroup.eu> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v4 08/45] powerpc/ptdump: Reorder flags To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 19 May 2020 05:48:50 +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