Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp674959qtx; Thu, 17 Nov 2022 05:07:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5uPpZQ5ftLvmoqMb+0ubaQ64L7OzJDHCdDDDzf78BvXv+tEaUlTV/gWLcoIXUr/OfLS8/g X-Received: by 2002:a17:906:ecfa:b0:78d:9723:d9c3 with SMTP id qt26-20020a170906ecfa00b0078d9723d9c3mr2038052ejb.316.1668690430215; Thu, 17 Nov 2022 05:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668690430; cv=none; d=google.com; s=arc-20160816; b=ioY1ahMk7cGkYq78EflmCAGdnoXtsOh/gpCwnj5bZE82mo4I+lotIxXLC/NkAG7oDe ikA4ct+mL1ll2KcNfNaGMx6WSXrznGlC/W2xNF4riksIDkF1o+4IheVCu8jJnmxgjepz MeopVarjPy5eRiMcC20thjmNgdIo+mi/EIH9i6vPX2DpiX3govkTiZxnJto227hAhroe L4p9nB8mZuzRKxZB9uwg82bZP1uUbEsaO8bZADNQ5K+ZB5AHm4k/4XMNLc1vjhaBt8n4 QI+gZCx/RFIIsqpEtnybkPv6XxBTq9dhp8CIjOPgh/M24vZc41WHPR+VA4VxII3unu+i WUnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FBkWlD3/kSNlYFi8rzIVMaYfMOkGOpdfsZgCXQnaR2M=; b=f4o50Ge0OTAg7k5+NVsk/ZizVU1TuHIZ1Tmz69kzNbyw2Qclh1K4XVX8a6NCuw1wrq M+rZMCO/zeTAJO95KK17Ix76Uot6YBrvbKIYvhZRl+en1PqRYfOqM+hcGlD9XukGDEoJ 28EviqaYYJKer0T5h8QY54Guwjm9Pwt+VYdfVvK7rLPn+UIWxijksRV/GJnxpxNYQCVf nKkQ/6tptbmnvkM7xUZKPQ5jsc+2EhxDONo62JfVUhe7jr7CPAwZc30Qi/XJ3fQtxxkH ELupwJkSaAb1BrG9mufXPc5WGVw6s8DRIFtfznyunkxCMIXdffQdj3af1eRi/dm96VuZ itdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt9-20020a170906ee8900b007ae2299a195si508885ejb.815.2022.11.17.05.06.47; Thu, 17 Nov 2022 05:07:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234248AbiKQMyA (ORCPT + 93 others); Thu, 17 Nov 2022 07:54:00 -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> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 >