From patchwork Thu Nov 17 12:31:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 21639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp373569wrr; Thu, 17 Nov 2022 04:35:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Vxv0eivZqkCxU1nslTkzR/E07vI2p/FrCLGL6GZCTEANQsKBTwvaQjnlGrg8dheZKFJTL X-Received: by 2002:a17:906:d1c7:b0:7ad:fd3e:7762 with SMTP id bs7-20020a170906d1c700b007adfd3e7762mr1937201ejb.717.1668688528275; Thu, 17 Nov 2022 04:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688528; cv=none; d=google.com; s=arc-20160816; b=ndQXpuqm5ICHj9vSrMVR2OG7DutodCLIELlUVBG3FOVTH1JJyIHDofe4JEaMarny2A zA9VIewsswd0GJ9XpT3w0+yiSsTzBaQaSega48c0j1nmC/W6N4oXr5AAaK8ukNbgSQ9r Ag4DLm69lplmA1Kg7Hxi0PMxsmZoqKLGkDijRlExx9+d0ycsXIU0q3wMtAbeEdTu3kEZ bQefJvt8yX8KbguHPANO+DP/n4Nf3YxE5Zq5gYHm+i5XoPnk6CSnPb8eS1TMetz1McMw 3vt5WeuD7FqBMrB2JWSk/H7cnfmHe5zi/dZqkDLSg0G89jj6sRaKyUrKQXMg4i4LRqLy 7OSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=35fv7OfIYgeeLr9+rtiW7WczCMlEk1Ccq46V+g5mFvg=; b=cjfFzNGRAzCv2igy6hYtscIpL10APYxuXksmDzuvxx6u1KIwj3rv17KhxBe91FyAwA u2hIC8aaXu7hm5oVCcatiuw/m1xQEVSGRKDj5z2E6iJd4679kDVQh8ifkyIg6/Ep0Hcv nwQGf35UlP19QTXi5eeIWmYTiBHIgkuJdnUM+IqKXnnvLaURay7+qYNXMVXDjuuZMWSv zm2kM3TZUrDEuh80L6i0bxxbMmCHNu4P+G7Lw6UZ1H9q4KOtEVTpWKeqgluP+vkTL8m3 s9+HyvQfRxG+2RPQkL7vjb+Aes5UQsRriauKp7Q7oiJSBJEcDLG7fgt9bFfhF2oG7ULC 0yZQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc18-20020a1709071c1200b00782ece08669si647101ejc.13.2022.11.17.04.35.05; Thu, 17 Nov 2022 04:35:28 -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 S240215AbiKQMdV (ORCPT + 99 others); Thu, 17 Nov 2022 07:33:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239427AbiKQMc7 (ORCPT ); Thu, 17 Nov 2022 07:32:59 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19BC574AA5 for ; Thu, 17 Nov 2022 04:31:58 -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 0530B1063; Thu, 17 Nov 2022 04:32:04 -0800 (PST) Received: from a077893.blr.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1ED053F663; Thu, 17 Nov 2022 04:31:54 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Mark Rutland , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] arm64/mm: Drop unused restore_ttbr1 Date: Thu, 17 Nov 2022 18:01:44 +0530 Message-Id: <20221117123144.403582-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749746741829657805?= X-GMAIL-MSGID: =?utf-8?q?1749746741829657805?= 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 --- 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.