Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36561618rwd; Tue, 11 Jul 2023 02:40:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHi5EDl979wuCmNDhpUgeNQXW7nICeR/9ZcQ+xU7aSMOLAoi01IUKsccbVtPG92YwddOmFr X-Received: by 2002:a05:6870:2051:b0:1b3:54b5:ac6e with SMTP id l17-20020a056870205100b001b354b5ac6emr18063229oad.50.1689068418830; Tue, 11 Jul 2023 02:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689068418; cv=none; d=google.com; s=arc-20160816; b=S0Sey1QL6Td6kXmNLX7+d4Rgxxuf/UT55JAohswXQ5/1TfD+Tdd8ba9OVQgxeXUx6A kgteTO6/NrZz0s2JVv5OtLDruKp/kuUu0SJCk4ERlL7LFwaLnHvq23zUPWTKmOihI3TJ 4+qwrvM9zxyyCMORMfi0ZasJkzYqPKtWGr9cahU1ZOpQVqTzk1WIW624VPV46L63rZ2r purHgM4YkEUw73JWALgFzjO+VJZFB6HZT/xKar/RgImp5nUXzI6wyG4nKbL9AzRLQBNG G7l4p4jVUn98TNvZJZ4soJLe7eDcTKBeiK0pU+LE+kv16wYdAexC8WbUfVA+A9KbWQ8T 0ttQ== 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=y8C+qpuLKSay9PPpAWkxB942GU8hxzdpfFc4/4yF5wk=; fh=U8K3qHs+T8uVvB/AIq8BBm0skH4usQEfR8seXp8jemM=; b=uDeDSXXOXbi2ns1Z9XMcyroijlyrzAf1f5Tu1lsI63y8rwLzHxAqLS19m35E6UudJl ZQfRsRqJ7GFThRLuwjb1jY8PKSCqvmaHLcdFRvn4Z03kNdL+AIq2Ft1tz6jMNyvfYSQx cg5Egj/sGmbJS6GEujGdfKesxzwtRQ+EKts1EnAz7nHKfpdANLVwrb0XhtEf3SfRQkRj EX/rlwbOOn/EVFwjrhwdHDOtJKY4qATDH6qHav50a+ql4NG+71QQMS5g8+b/eB74kty6 3Y8LsuikDq1EFZ7DC2QN+HYqHP1E89oZV7oTmfRUfi8Ixgu/VkZSunfiiLeeD8wz4JtN zFMQ== 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 gz19-20020a17090b0ed300b00263e46aa26asi8896835pjb.18.2023.07.11.02.40.06; Tue, 11 Jul 2023 02:40:18 -0700 (PDT) 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 S230318AbjGKJFL (ORCPT + 99 others); Tue, 11 Jul 2023 05:05:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbjGKJFI (ORCPT ); Tue, 11 Jul 2023 05:05:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88CBA94 for ; Tue, 11 Jul 2023 02:05:07 -0700 (PDT) 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 5F8D42B; Tue, 11 Jul 2023 02:05:49 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.47.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 627AF3F67D; Tue, 11 Jul 2023 02:05:05 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH] arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK Date: Tue, 11 Jul 2023 14:34:58 +0530 Message-Id: <20230711090458.238346-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Replace '0xf' with ID_AA64MMFR1_EL1_HAFDBS_MASK while evaluating if the cpu supports implicit page table entry access flag update in HW. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- This applies on 6.5-rc1 arch/arm64/mm/proc.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S index 2baeec419f62..14fdf645edc8 100644 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S @@ -447,7 +447,7 @@ SYM_FUNC_START(__cpu_setup) * via capabilities. */ mrs x9, ID_AA64MMFR1_EL1 - and x9, x9, #0xf + and x9, x9, ID_AA64MMFR1_EL1_HAFDBS_MASK cbz x9, 1f orr tcr, tcr, #TCR_HA // hardware Access flag update 1: -- 2.30.2