Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7242313imu; Mon, 3 Dec 2018 09:46:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vch9B9nfVcAzSm4MEj3IEp3Kg/6UcqYFZYBWs5WxJ19EYjUY2GVH2sMNufetbwoTuVRFWX X-Received: by 2002:a62:2f06:: with SMTP id v6mr17052088pfv.216.1543859191885; Mon, 03 Dec 2018 09:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543859191; cv=none; d=google.com; s=arc-20160816; b=Y8iHroXMusw/KcYTStL+NAVkmHOEM+FnpqP3uJd7XEX1HjWI7kQazIQ9OcUjZ01PuW WB7k8I7z0WlchLzmJc6CkwVCQ6bKZDEPIhhYKo3Bw45Btj4WdxljcNXRZ8T8JdZvpehK RqqhJM3wGL3jD75hR4MyAzOZ1MPcHZkA3CSG+CSK/HX5qA/aMNNuhYUJ6CIst1In5pfp gtBphSNcb91kB7mE5RpmzTmR99e8sPgMvvptovzjAXf1xo+gBw+ChFuZhAunXvVTBs/r FITbNxAMfBFFPQ4KkEVpFu66rYCjT+o+Xs4ySFJT/dGHVKLAk0A1BvDtSKmOXizu8tWZ ebpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=mJmSFSCHztyLl6A9UUDfxBhw9WKpkCTzgcq0hmXp5sI=; b=qD+dr21WpteMtK2f4TZJWToGoB+EG+NJFmk+m4Y3Y/fcgckNgGsbfiNhacwzUZGDtg OjKcayJiM96auLgBipH+A5xfu7Ga/8eMLxOnGHCwwqcdJx9wS0+jxByW0X9Kf6E926mk PwFIfH3VQxMs7LPXV82Pd5wcQS/53lwFdPyheN5jy/Ax1U2s+YdEIVZWtGbhOjblYBg+ 9Y3KTIhaXs/CDBAOpBDFrdLkHE0o1nqczzB0qmOFcVMcBmd1PV8AqRWee6BnA5cQCKJ4 QG7vetzZFpemGYTNagZCQjyIUEmWrhuT6I5TlyE8jx/e3wJ/1pFCw5jN8nZtYkBMe3Fz 1rLg== ARC-Authentication-Results: i=1; mx.google.com; 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 y29si13361899pgk.376.2018.12.03.09.46.14; Mon, 03 Dec 2018 09:46:31 -0800 (PST) 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; 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 S1726834AbeLCRoB (ORCPT + 99 others); Mon, 3 Dec 2018 12:44:01 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:17631 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbeLCRoB (ORCPT ); Mon, 3 Dec 2018 12:44:01 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 437smq0SDrz9v0l5; Mon, 3 Dec 2018 18:43:55 +0100 (CET) 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 q1YpAMOjcO7b; Mon, 3 Dec 2018 18:43:55 +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 437smp5m9qz9v0l4; Mon, 3 Dec 2018 18:43:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4A55D8B7B8; Mon, 3 Dec 2018 18:43:58 +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 keSRY77Pu0Do; Mon, 3 Dec 2018 18:43:58 +0100 (CET) Received: from [192.168.232.3] (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8BB4C8B79E; Mon, 3 Dec 2018 18:43:57 +0100 (CET) Subject: Re: [PATCH] powerpc/mm: dump block address translation on book3s/32 To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , npiggin@gmail.com, rashmicy@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <26cc609706833f78e3195e3d35c0372b2f40cae3.1542181167.git.christophe.leroy@c-s.fr> <878t1uva0q.fsf@concordia.ellerman.id.au> <9cb14c1f-02ce-a2a5-94e6-95afb4d3e168@c-s.fr> <87o9ap2uif.fsf@concordia.ellerman.id.au> From: Christophe LEROY Message-ID: Date: Mon, 3 Dec 2018 18:43:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <87o9ap2uif.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 16/11/2018 à 11:20, Michael Ellerman a écrit : > Christophe LEROY writes: > >> Le 15/11/2018 à 12:46, Michael Ellerman a écrit : >>> Christophe Leroy writes: >>> >>>> This patch adds a debugfs file to dump block address translation: >>>> >>>> ~# cat /sys/kernel/debug/block_address_translation >>> >>> My instinct is it should be in /sys/kernel/debug/powerpc. But I guess >>> the other page table dump files are not. >> >> Lol. >> >> Looks like we have the same instinct ... >> >> But you rejected my patch https://patchwork.ozlabs.org/patch/750426/ :) > > Haha. My argument was that the kernel page table dump is not powerpc > specific, but this file *is* powerpc specific. Though I guess it's in > the same are as the page table / hash table dump, so it may as well live > next to them. I see you took the first version in next-test. It doesn't handle the case of 64bits phys addresses. v3 does. I just sent v4 which does to v3 the changes you did (__init and powerpc/ subdir) Christophe > >>>> diff --git a/arch/powerpc/mm/Makefile b/arch/powerpc/mm/Makefile >>>> index ca96e7be4d0e..2adad10b5856 100644 >>>> --- a/arch/powerpc/mm/Makefile >>>> +++ b/arch/powerpc/mm/Makefile >>>> @@ -47,7 +47,7 @@ ifdef CONFIG_PPC_PTDUMP >>>> obj-$(CONFIG_4xx) += dump_linuxpagetables-generic.o >>>> obj-$(CONFIG_PPC_8xx) += dump_linuxpagetables-8xx.o >>>> obj-$(CONFIG_PPC_BOOK3E_MMU) += dump_linuxpagetables-generic.o >>>> -obj-$(CONFIG_PPC_BOOK3S_32) += dump_linuxpagetables-generic.o >>>> +obj-$(CONFIG_PPC_BOOK3S_32) += dump_linuxpagetables-generic.o dump_bats.o >>> >>> BOOK3S_32 covers quite a lot of CPUs. >>> >>> But below the only check is that you're on 601 or 603. >>> >>> So is the 603 code going to work on all other BOOK3S_32 CPUs? >> >> If I understand function setbat() correctly, it should. >> >> See >> https://elixir.bootlin.com/linux/v4.20-rc1/source/arch/powerpc/mm/ppc_mmu_32.c#L115 >> Tell me if you see something I missed. > > I don't know those 32-bit CPUs at all, so as long as you've thought > about it that's good enough for me. We can catch bugs in testing anyway. > > cheers >