Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp570677imu; Thu, 13 Dec 2018 00:11:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/U01DYtO8GFZMODZjXCJo5qCInGdS/IZPmLiRvbt44Ho51rp9iNytrfvA3Tsf9viqED15qD X-Received: by 2002:a17:902:7005:: with SMTP id y5mr22925152plk.7.1544688681288; Thu, 13 Dec 2018 00:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544688681; cv=none; d=google.com; s=arc-20160816; b=tohKOQxMVcVxY9Yef54CDhwRcofLbyp/hLSOUnKWfhEbOMpPa/VsPdO89uB44qVgjW AzcvJomHe6k2g58dw9+Bvgk+NVf4v4wd//IvOZvIDZUAvlUUzC0wgSkgdg+zHK36aR51 9ZHDD6CBldOMGvLnKfM7Pw/quS3e4R9Duso1eRDuWTG/MriaIx/RyHdSQ1fR2ARv0djC LJ53NuPdn+hm/RhbxU7TgNiO0uW5ojOOlOFXoMbrHBLFNh11J+8YPVx/T8g5GTW4jjYF xoc3k5Uvi/8rZBPJGS4IuMFTz4cYJQbdqLPhPshFpOsp1ijTCJDmCDN0AiTePlYw/tWr ECcg== 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=LljmE/LPoxYPQ+SDJveuvH1gHW6vy8BnqAsNaE1nqAw=; b=aFm3vbV78ryeIwHQrwYHNz4LeLp7Csh75AFi0RQ8NvpgiDp3Y591sBqNhYOaOzQmh8 ekAx9aEg7qCKNoXBX0Wkdfjx7TyGhD2tD8nQbqkxmrKHNP3G8oEtgRs6w7/gGo0Qrc0U B6EQtOSBU6qUhSR3BG1/TibnFBqHUElqIMRDiegxpHmbWYIqVv4u7p0awCGhxyiz9F3K dtNpyGNsjl0TyjzcQljT7h7LLW6IUi0QdUJFi1Bthld0bewPFMCHKdZeJ4cPPMUUR7v2 BIGeM/LnzwbGwKkbef3AhXcOFU+HDcPlmXQalmNRTO+tTPRru/BwvWXAzCT8uD3hZ9hZ NAIA== 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 x32si1040438pgk.309.2018.12.13.00.11.05; Thu, 13 Dec 2018 00:11:21 -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 S1727194AbeLMIJs (ORCPT + 99 others); Thu, 13 Dec 2018 03:09:48 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:29195 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeLMIJr (ORCPT ); Thu, 13 Dec 2018 03:09:47 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43FmYh2T2bz9v0fr; Thu, 13 Dec 2018 09:09: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 fAPraMlzkj8R; Thu, 13 Dec 2018 09:09: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 43FmYh1w79z9v0fk; Thu, 13 Dec 2018 09:09:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 200BA8B862; Thu, 13 Dec 2018 09:09: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 Jui947cLBaEW; Thu, 13 Dec 2018 09:09:45 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A3FDF8B754; Thu, 13 Dec 2018 09:09:44 +0100 (CET) Subject: Re: [PATCH] powerpc/8xx: hide itlbie and dtlbie symbols To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <8a48b395c3468f8020ea56af679530854b090e4c.1543404405.git.christophe.leroy@c-s.fr> <87ftv2x5d8.fsf@concordia.ellerman.id.au> From: Christophe Leroy Message-ID: <3da93325-bb9a-1a09-68b3-43923b7fea5a@c-s.fr> Date: Thu, 13 Dec 2018 09:09:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <87ftv2x5d8.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 12/12/2018 à 14:05, Michael Ellerman a écrit : > 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: Thanks for the tip, I sent v2 Christophe > > beq+ 1f > tlbie r4 > .Litlbie: > /* 0x400 is InstructionAccess exception, needed by bad_page_fault() */ > 1: EXC_XFER_LITE(0x400, handle_page_fault) > > > cheers >