From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E1F9C4167B for ; Thu, 17 Nov 2022 12:54:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234846AbiKQMyC (ORCPT ); Thu, 17 Nov 2022 07:54:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234528AbiKQMxa (ORCPT ); Thu, 17 Nov 2022 07:53:30 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6291C12612 for ; Thu, 17 Nov 2022 04:53:28 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7FEBE1063; Thu, 17 Nov 2022 04:53:34 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.70.181]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 13FBC3F663; Thu, 17 Nov 2022 04:53:26 -0800 (PST) Date: Thu, 17 Nov 2022 12:53:24 +0000 From: Mark Rutland To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/mm: Drop unused restore_ttbr1 Message-ID: References: <20221117123144.403582-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117123144.403582-1-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 17, 2022 at 06:01:44PM +0530, Anshuman Khandual wrote: > restore_ttbr1 procedure is not used anywhere, hence just drop it. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Mark Rutland > Cc: Andrew Morton > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Mark Rutland Mark. > --- > This applies on v6.1-rc5 > > arch/arm64/include/asm/assembler.h | 11 ----------- > 1 file changed, 11 deletions(-) > > diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h > index e5957a53be39..f13bc52ab347 100644 > --- a/arch/arm64/include/asm/assembler.h > +++ b/arch/arm64/include/asm/assembler.h > @@ -619,17 +619,6 @@ alternative_endif > #endif > .endm > > -/* > - * Perform the reverse of offset_ttbr1. > - * bic is used as it can cover the immediate value and, in future, won't need > - * to be nop'ed out when dealing with 52-bit kernel VAs. > - */ > - .macro restore_ttbr1, ttbr > -#ifdef CONFIG_ARM64_VA_BITS_52 > - bic \ttbr, \ttbr, #TTBR1_BADDR_4852_OFFSET > -#endif > - .endm > - > /* > * Arrange a physical address in a TTBR register, taking care of 52-bit > * addresses. > -- > 2.25.1 >