Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp278343imu; Fri, 16 Nov 2018 02:23:07 -0800 (PST) X-Google-Smtp-Source: AJdET5ec1SC8S3lEiXQbz2c2BcnEpTPwyblkJNHlzvO5/bc+juGZjOs/a6erAF2wJharlk4Gf0Km X-Received: by 2002:a17:902:7281:: with SMTP id d1-v6mr10098349pll.284.1542363787018; Fri, 16 Nov 2018 02:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542363786; cv=none; d=google.com; s=arc-20160816; b=x9VGdLVNuokGNPSms00G/9jsYK9px7lXmYBKW2nMmEtrirwsm6A7P8H/bCxOw9a1SU +8qBF2+IHd4e2np0hwH43zCD5ovdBBC9yCTfCzmKKMxjN3Uk/E3XWhMhueuJP8Icqm0R r88wvYI7xjoLgsEdf67QCHk4vU6WyxEfA28xCkPY+koqr+Z9zAUANDO7oTBjuHHjC0/m /WyFdtpUkfVs6ES3QbHOglbAun/OprcSV09FsWk0VC9TumcsEx4tVqaCXdf9aHv612ve MjNNzuMQKNUxqkcIuAYXtJO4G4/F6o5VZQMaANq7pqIewFYm/iWCVXfulXJZFnNRSseB LMJQ== 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:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=CfA8a68w8tDoUGJW/Mdo1fXJ6HLQ2lpuxh+PxcSdoXs=; b=Lmi/6jZy6HLHPpb4wFHmtxx9tk8IzcqiotnXce8/vGTv6PI8LDZM/hq7EIJamZHBf2 +KyEHVVOTlpm55Osl5GJkK4CwWgEVaCfR/U64IRDxfiB6z9zQzk9nXZZ7SeOHkYnzU/B 2rnyHeRisQdps35MhRVFnxq1OPsNl1BwagbNKXwDiU0kp3c2QgorL6JyAm7shBTlJMTG P8NN3uPdIPazWF/yGEBK4OUeEvvsjq77s1DarZlBRgEOpCL8ZkS0A5OWqxjKKx3oIxhG nz0y/pYct0NVCYBT5kPOpIJXOXEiPGJeTjxIWx9ZYLlf5RXQrBjh+TTX/ruRRsNmDjlA HnSw== 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 p9si27114342pgc.448.2018.11.16.02.22.51; Fri, 16 Nov 2018 02:23:06 -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 S1727615AbeKPUcl convert rfc822-to-8bit (ORCPT + 99 others); Fri, 16 Nov 2018 15:32:41 -0500 Received: from ozlabs.org ([203.11.71.1]:49779 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727446AbeKPUcl (ORCPT ); Fri, 16 Nov 2018 15:32:41 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42xDlY43MJz9sBQ; Fri, 16 Nov 2018 21:20:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Christophe LEROY , Benjamin Herrenschmidt , Paul Mackerras , npiggin@gmail.com, rashmicy@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/mm: dump block address translation on book3s/32 In-Reply-To: <9cb14c1f-02ce-a2a5-94e6-95afb4d3e168@c-s.fr> References: <26cc609706833f78e3195e3d35c0372b2f40cae3.1542181167.git.christophe.leroy@c-s.fr> <878t1uva0q.fsf@concordia.ellerman.id.au> <9cb14c1f-02ce-a2a5-94e6-95afb4d3e168@c-s.fr> Date: Fri, 16 Nov 2018 21:20:56 +1100 Message-ID: <87o9ap2uif.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >>> 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