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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EBA98C4332F for ; Thu, 17 Nov 2022 12:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bI+3iUS0xEVBH7oh4NHei//V/geWqudzQA29bXmUbhw=; b=eSlZirIS1MPeso D+ja7aCdcGKkP8g7uuoIOW2HI4W4GDhbFQPzfRAR02yTAmRuj356mBX27EE7k/Xb4vy09CmomL92D EOWQJPqJ0lfhJO7qMuu5cTJAksFiGF3epZFe5VWHvgj61sFWm7WaNwj1JbZJvl++at1Ow5fVq259G DQb61LA5FE3WXWoDoAfC1e06jYcH+MGQRJUyUgz3qUzAu0WvxKKzd+I7bLJUpyPBDRtfO12vNdpVh 7suX5LChRWUM4uhMoboYCJAD4ThW+ssGpKJZNPptBKHlqQvSG8cs1JwSpIE5rOGHNuKx5/nrNx9fz FOtd5mpJM/T/t1RAQBDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oveOb-00Dy53-Mf; Thu, 17 Nov 2022 12:53:33 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oveOY-00Dy3i-SO for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 12:53:32 +0000 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-Disposition: inline In-Reply-To: <20221117123144.403582-1-anshuman.khandual@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221117_045330_981522_BCA1119E X-CRM114-Status: GOOD ( 16.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel