Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp2835479pjo; Mon, 16 Mar 2020 05:36:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vskSSIyIMrgkjp/GXmtW4CDFk/VOgF7OfoHTRicAWZBgh+OkQcGV5YHooFtVEDcsGQmFkn1 X-Received: by 2002:a05:6830:1513:: with SMTP id k19mr21054850otp.276.1584362209094; Mon, 16 Mar 2020 05:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584362209; cv=none; d=google.com; s=arc-20160816; b=GODQBaIQFrvlJpfHCc5XNmpfWGlydqbBbKK7x8A+nrXttdj/FMNVwAm36U3Cca1E66 EheJERhW9IXRlsJLCX4oafUrESCC5YdZp98JaLiQ+ONJhVevD/Tc64oUKZl+QqRE+7OA K0//nH/2l9efpENYIH9A+JPoT1auBsV50nv3gCHeSCsYhNeKHmiIRxE5Mo20aHQ9ScFW 7842Yy5rlXPvIwAFfNctDlR8fKd5NWOBenjU3Uee3FmKLpl+YNOx9+jma93jjKBita89 kdYgxN4disbQtkwpMDKkCfctL6MVrxLzH5UEjMQ7qC/xU7apty5QcoBIBaYrU/gqFhrZ JKBw== 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=e+HaGRwJA4h1ZHHXQXo2FxuOxEHgrouWi93xpDPcAQ4=; b=GP0WGjNxe0xn+ZLnl1iYPJtbRhR3HAXPdzGtSvpPmkSFkwYLxyJdd9mlo7+wzXMxtd 0IfvO/UpnVstdaPeXX0nrqK0eFN4LwA2St4h/ExPRFE6ggGxzQ4s8uflu5DQEbfiSrf3 S47hvSDEjK6WiJtjO1PPmpR0o7392eL87AZmEScSXPDvTadEYa0ls//I2G23SFqvj8qD 8LFh1pIcOvIakdqhjHfAcnFmFPrB6aIn2FtoHlzkSFW61uyr40Tr//Mi1xvWO96cCVhw U2sUs958hM13UJPM/gAxqbDsK4Xi2DXNxpZl+Vt1iLTkZ80bCdUnwclJsP1mLWNcWu2M 4ZWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="FJzh8th/"; 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 d19si3899615oic.28.2020.03.16.05.36.34; Mon, 16 Mar 2020 05:36:49 -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="FJzh8th/"; 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 S1731118AbgCPMgD (ORCPT + 99 others); Mon, 16 Mar 2020 08:36:03 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:37771 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731079AbgCPMf4 (ORCPT ); Mon, 16 Mar 2020 08:35:56 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48gwkt4J4hz9tygr; Mon, 16 Mar 2020 13:35:50 +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=FJzh8th/; 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 GMjIff4u6kXW; Mon, 16 Mar 2020 13:35:50 +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 48gwkt3GnDz9tyg5; Mon, 16 Mar 2020 13:35:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1584362150; bh=e+HaGRwJA4h1ZHHXQXo2FxuOxEHgrouWi93xpDPcAQ4=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=FJzh8th/kQwomINA2rAb5azdSOxpiN3RYxSnOk92vK4bIZvutaMyY5XVL7XOj+cvD kZF0KBAuJ8Ki0Xx6XLP7sl2CC6K2jQvnz3iRS8zVmA6GzMv4+i4DPk5EOf3Iat04/R OVD4YlBUu0eq9MABQ8IC7xJrmQPLRCb5I03nCBpU= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6BFAA8B7D0; Mon, 16 Mar 2020 13:35:55 +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 fmTFYGXM8RnJ; Mon, 16 Mar 2020 13:35:55 +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 4C7948B7CB; Mon, 16 Mar 2020 13:35:55 +0100 (CET) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 4162665595; Mon, 16 Mar 2020 12:35:55 +0000 (UTC) Message-Id: <4f0be21691f2d8d02efb63766f0a548375efecd2.1584360344.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 10/46] powerpc/ptdump: Add _PAGE_COHERENT flag 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:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For platforms using shared.c (4xx, Book3e, Book3s/32), also handle the _PAGE_COHERENT flag with corresponds to the M bit of the WIMG flags. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/shared.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/mm/ptdump/shared.c b/arch/powerpc/mm/ptdump/shared.c index dab5d8028a9b..634b83aa3487 100644 --- a/arch/powerpc/mm/ptdump/shared.c +++ b/arch/powerpc/mm/ptdump/shared.c @@ -40,6 +40,11 @@ static const struct flag_info flag_array[] = { .val = _PAGE_NO_CACHE, .set = "i", .clear = " ", + }, { + .mask = _PAGE_COHERENT, + .val = _PAGE_COHERENT, + .set = "m", + .clear = " ", }, { .mask = _PAGE_GUARDED, .val = _PAGE_GUARDED, -- 2.25.0