Message ID | 20230711090458.238346-1-anshuman.khandual@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp353238vqm; Tue, 11 Jul 2023 02:38:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhB2TWVe2K0E8mkbvzgyiAha6VfXuJfSP1vpRQaM2YvDkLBbOR7XvEG5eIrrVkIoep6U4R X-Received: by 2002:a05:6808:1b29:b0:3a1:c93c:6d28 with SMTP id bx41-20020a0568081b2900b003a1c93c6d28mr16628495oib.23.1689068296007; Tue, 11 Jul 2023 02:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689068295; cv=none; d=google.com; s=arc-20160816; b=PvR7xG2y8nWpOR3Kk0/Anzzc8e4JiRERqvrLFf9ZdEMpphQcmAAgZs4XuLn+hXy39B xC5VFrrt5JEnnDEHIuGwjMIFokyi+6zn3hB9H6AKEc1DoXDLkRzIk735Ulyzj6LZB5sz i3dIvnLq5w5C9yfi3aRVDenrb4/FsSK0Ys7kEQgNlsAk3WTYL96zRTd69y3Qrax3/jeT RqCk6Z2XJgIuEeZ/QOVXL0jux02zVcvDCCkaYiJ2corxEjRROF0R2dehLpSKnLtbYX/d cobgEmSbCzc+8I2VQd2D0kkQrso4k2oO8agaCQqGA/2j5SGoqI19Nn7PzTSTtFxw3Dv9 ThnQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv191-20020a632ec8000000b00552db08cd8bsi1136982pgb.730.2023.07.11.02.38.03; Tue, 11 Jul 2023 02:38:15 -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 S231320AbjGKJFL (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <anshuman.khandual@arm.com> To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771116477459281824 X-GMAIL-MSGID: 1771116477459281824 |
Series |
arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK
|
|
Commit Message
Anshuman Khandual
July 11, 2023, 9:04 a.m. UTC
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 <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
This applies on 6.5-rc1
arch/arm64/mm/proc.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 11 Jul 2023 14:34:58 +0530, Anshuman Khandual wrote: > Replace '0xf' with ID_AA64MMFR1_EL1_HAFDBS_MASK while evaluating if the cpu > supports implicit page table entry access flag update in HW. > > Applied to arm64 (for-next/mm), thanks! [1/1] arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK https://git.kernel.org/arm64/c/d0999555e306 Cheers,
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: