Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1826828imu; Wed, 12 Dec 2018 05:08:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/X7FbIv5XeNz43SuLMO2M1/dRg0imB+ibHG4j7caN3nap6YFUuBP1vG56YUZPY2ntGH9xJa X-Received: by 2002:a17:902:33c2:: with SMTP id b60mr19751690plc.211.1544620112680; Wed, 12 Dec 2018 05:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544620112; cv=none; d=google.com; s=arc-20160816; b=fJRgEr1nSv/hXreaYvOVEq+B+5ZZrvMX6JFukBpWfTiy+aJnukSCGoKV/E7snRZmog qnARLKL2tzdQ4KpCSXvcVTi2wfijBloXW7CLJS3/qx7we9j0Xm8GpRlgonXYOQFhmmRF G7Twdiesyz5i3GxaGZ5ud6J6NH27B1sB3A7gWKIOAr14Xokwcep2w9v+TlE4f0BXtA48 JShdEt/WCQXDa8RIisulDmLtxdfdSkdWpY4v7Sf3GMv/AiXfQXAYmVLQFK9heCOVrrzf FnnaFRB+kVoYcG0QDQ2BDHiMriKOcyKLvNBuz4ZUqF2B9ukjJYQLe62gB1cOmC8zNLOH xIvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=mvGh9ap4XGo07IjHUmfbm/TOzu4xepOcSK//4RrMSiI=; b=cYo91Og/44rItlZV012fRvxE0/uXvmDAT4GFpFMcuSy3txkQlwVrM2YElQGS6nTj19 LlrlKDDeo6H2iEzuY5CWq5MPSURnYYeZZ2rdZAqouiRrnyLW0mZAedZBFgpN6gp8x5+W COk4yth4p09r32LnrHEjdKMjIsgl5HUIfGL9tmqPV4wa0QCqPoDnC9wicxnFoOmQRbhO YYkXrQOwCkSJzkVt0pYf5dgJej7otfvh9q9LIBf15/s8wjVpSt62Y0BdWjny/rrCTqu8 xHjvgChocVPZYCElceoxFr8NB8uyBFJfzl548GK+Fes4kIgcDq61EtVo/yDe15LxY3Vx Eerw== 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 q15si14256364pgm.420.2018.12.12.05.08.17; Wed, 12 Dec 2018 05:08:32 -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 S1727490AbeLLNFZ (ORCPT + 99 others); Wed, 12 Dec 2018 08:05:25 -0500 Received: from ozlabs.org ([203.11.71.1]:43999 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726248AbeLLNFZ (ORCPT ); Wed, 12 Dec 2018 08:05:25 -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 43FH9G67rBz9s4s; Thu, 13 Dec 2018 00:05:22 +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 Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/8xx: hide itlbie and dtlbie symbols In-Reply-To: <8a48b395c3468f8020ea56af679530854b090e4c.1543404405.git.christophe.leroy@c-s.fr> References: <8a48b395c3468f8020ea56af679530854b090e4c.1543404405.git.christophe.leroy@c-s.fr> Date: Thu, 13 Dec 2018 00:05:23 +1100 Message-ID: <87ftv2x5d8.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > When disassembling InstructionTLBError we get the following messy code: > > c000138c: 7d 84 63 78 mr r4,r12 > c0001390: 75 25 58 00 andis. r5,r9,22528 > c0001394: 75 2a 40 00 andis. r10,r9,16384 > c0001398: 41 a2 00 08 beq c00013a0 > c000139c: 7c 00 22 64 tlbie r4,r0 > > c00013a0 : > c00013a0: 39 40 04 01 li r10,1025 > c00013a4: 91 4b 00 b0 stw r10,176(r11) > c00013a8: 39 40 10 32 li r10,4146 > c00013ac: 48 00 cc 59 bl c000e004 > > For a cleaner code dump, this patch replaces itlbie and dtlbie > symbols by numeric symbols. > > c000138c: 7d 84 63 78 mr r4,r12 > c0001390: 75 25 58 00 andis. r5,r9,22528 > c0001394: 75 2a 40 00 andis. r10,r9,16384 > c0001398: 41 a2 00 08 beq c00013a0 > c000139c: 7c 00 22 64 tlbie r4,r0 > c00013a0: 39 40 04 01 li r10,1025 > c00013a4: 91 4b 00 b0 stw r10,176(r11) > c00013a8: 39 40 10 32 li r10,4146 > c00013ac: 48 00 cc 59 bl c000e004 > Signed-off-by: Christophe Leroy > --- > arch/powerpc/kernel/head_8xx.S | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S > index 3b67b9533c82..8c848acfe249 100644 > --- a/arch/powerpc/kernel/head_8xx.S > +++ b/arch/powerpc/kernel/head_8xx.S > @@ -552,11 +552,10 @@ InstructionTLBError: > mr r4,r12 > andis. r5,r9,DSISR_SRR1_MATCH_32S@h /* Filter relevant SRR1 bits */ > andis. r10,r9,SRR1_ISI_NOPT@h > - beq+ 1f > + beq+ 1301f > tlbie r4 > -itlbie: > /* 0x400 is InstructionAccess exception, needed by bad_page_fault() */ > -1: EXC_XFER_LITE(0x400, handle_page_fault) > +1301: EXC_XFER_LITE(0x400, handle_page_fault) You could use a local symbol, something like: beq+ 1f tlbie r4 .Litlbie: /* 0x400 is InstructionAccess exception, needed by bad_page_fault() */ 1: EXC_XFER_LITE(0x400, handle_page_fault) cheers