Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1025427imu; Wed, 28 Nov 2018 03:30:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/WfNG9Uqcp9+Ayf1TQVvtzzfJFVFzhJDn2uaAl1tMSUc2rT/03crS0Bk2x5QdVdSu8pjdNw X-Received: by 2002:a17:902:4623:: with SMTP id o32-v6mr36417313pld.187.1543404657912; Wed, 28 Nov 2018 03:30:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543404657; cv=none; d=google.com; s=arc-20160816; b=FdvYDlcUcv9P/SnEhEncJ5sBSX1VTinyByO4fOaW6BgdSG+DkKs91IX9fkVK6LK/fE u7raLxqM8360zse4SelEMEjy4ZUDoJpfQlJf13sn7ek1R3ITHLCcTpCljZC1cGjHRRzT bszF5qq88wkW/KtUR+OEHIBCjkPoGzfycpEUI8wu3nw0ouZDeJUI4v5m3MZA+5uAh4Bo JM2/Pa3x6qik6tRwVL2xp1LdZYeHzdRbYk8T1F6A3ydIHLrkwlgtpWWpsrzupDsJv1T4 1DKaGMKuziCQ9/Nwp+77Y1aFkeMdVhPllOK+1VJW61jgEtkoIb0WPVTiCBk5C4+kvZCb CaIQ== 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:message-id; bh=4gY2ppKdWXk1fP/AFwIRPjhJH5+zO1lwO19lf001flM=; b=DxrfuDWSbQ0O5fvn99kwjtZ+x4zXELuvWbzA2Ow9/vqR1bilQTYEPrtiB8HKXNZRO6 Hl3xLQpF+HGYNgY7cU2HQIFu9v5wY+zBIqIZmH6Q/UfoikIta+IHddJQTtiBJAhILGnp rzsIJoxFmScnQRtAivr1J4pCIHPIVftLoAWEgNxh3tGm2MTcvJtoG/WuRuqN0CenUuM4 J0fR4zS5EhZWca6qJxXvZcwg5XQqx62C9SmfXZdTULDbSMUhNYqvQ+WE5GcWh1stzlFk b9YsmOmDQK0drx82CMrTtQjFhPhq6O+Gnwyy3lxyK6skGyJQ3t4E7t7QQt7wd69r7nqs OWcg== 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 w22si6792808plp.301.2018.11.28.03.30.42; Wed, 28 Nov 2018 03:30:57 -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 S1727863AbeK1W3G (ORCPT + 99 others); Wed, 28 Nov 2018 17:29:06 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:16840 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbeK1W3G (ORCPT ); Wed, 28 Nov 2018 17:29:06 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 434dg46cBlz9v0RL; Wed, 28 Nov 2018 12:27:44 +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 i-Na3KwtQDAN; Wed, 28 Nov 2018 12:27:44 +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 434dg466WTz9v0RG; Wed, 28 Nov 2018 12:27:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E1FCE8B868; Wed, 28 Nov 2018 12:27:45 +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 HSUhIJEH4JJJ; Wed, 28 Nov 2018 12:27:45 +0100 (CET) Received: from po14163vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C31138B867; Wed, 28 Nov 2018 12:27:45 +0100 (CET) Received: by po14163vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 9F1A869B19; Wed, 28 Nov 2018 11:27:45 +0000 (UTC) Message-Id: <8a48b395c3468f8020ea56af679530854b090e4c.1543404405.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH] powerpc/8xx: hide itlbie and dtlbie symbols To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 28 Nov 2018 11:27:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) /* This is the data TLB error on the MPC8xx. This could be due to * many reasons, including a dirty update to a pte. We bail out to @@ -578,10 +577,9 @@ DARFixed:/* Return from dcbx instruction bug workaround */ stw r5,_DSISR(r11) mfspr r4,SPRN_DAR andis. r10,r5,DSISR_NOHPTE@h - beq+ 1f + beq+ 1401f tlbie r4 -dtlbie: -1: li r10,RPN_PATTERN +1401: li r10,RPN_PATTERN mtspr SPRN_DAR,r10 /* Tag DAR, to be used in DTLB Error */ /* 0x300 is DataAccess exception, needed by bad_page_fault() */ EXC_XFER_LITE(0x300, handle_page_fault) @@ -604,8 +602,8 @@ DataBreakpoint: mtspr SPRN_SPRG_SCRATCH1, r11 mfcr r10 mfspr r11, SPRN_SRR0 - cmplwi cr0, r11, (dtlbie - PAGE_OFFSET)@l - cmplwi cr7, r11, (itlbie - PAGE_OFFSET)@l + cmplwi cr0, r11, (1401b - PAGE_OFFSET)@l + cmplwi cr7, r11, (1301b - PAGE_OFFSET)@l beq- cr0, 11f beq- cr7, 11f EXCEPTION_PROLOG_1 -- 2.13.3