From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19CF41DB34C for ; Wed, 25 Feb 2026 03:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771991497; cv=none; b=vEId+UkVv8AT0ItgIcdytPdQvhm9KL7nmX/1dlUOsJllmWENgyCS9XFvOAjFlyH9erCXLNPPGWQIwAg27HYJftx9j8TezuchCwpnGtZK3bx/b7fPGuG5iSGxoluGpOgmwK+yTF9ulCcPiLcrxssbIBU10wBq547n00SvltZ+7b0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771991497; c=relaxed/simple; bh=YqZ+a/U970z5ISNf24OAIt0os6GEweMqka6DgV3p/yw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aT4sJKsPM+KT9AjGGV01HJszdNlMJk7j1hD2Hys1EUOdg9H8WbbSO/hNR5C3vPOvZW+U9kpkFWXp5RcQSXNm4NVkJhwFZaXOvYSI8NjwP5SNIQg/4CDEbgfKlGc/b/hS2rkxg2eggO2oIqXmf4JuCW7uhbCS8f9Ng0oG4asIhqM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 B7AAC165C; Tue, 24 Feb 2026 19:51:26 -0800 (PST) Received: from ergosum.cambridge.arm.com (ergosum.cambridge.arm.com [10.1.196.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4F3413F7BD; Tue, 24 Feb 2026 19:51:31 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Ryan Roberts , Mark Rutland , Marc Zyngier , Oliver Upton , linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 0/2] arm64/mm: Drop TTBR_CNP_BIT and TTBR_ASID_MASK Date: Wed, 25 Feb 2026 03:51:23 +0000 Message-Id: <20260225035125.1159907-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Directly use existing tools sysreg format field macros TTBRx_EL1_CNP_BIT/ TTBRx_EL1_ASID_MASK, while also dropping off now redundant custom macros TTBR_CNP_BIT and TTBR_ASID_MASK. With this change in place, there are no more TTBR_EL1 register based custom macros left in the tree. This was discussed and suggested earlier. https://lore.kernel.org/linux-arm-kernel/aRb8ezhQd0c0jp9G@J2N7QTR9R3/ Series applies on v7.0-rc1. Cc: Catalin Marinas Cc: Will Deacon Cc: Ryan Roberts Cc: Mark Rutland Cc: Marc Zyngier Cc: Oliver Upton Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kvmarm@lists.linux.dev Anshuman Khandual (2): arm64/mm: Directly use TTBRx_EL1_ASID_MASK arm64/mm: Directly use TTBRx_EL1_CnP arch/arm64/include/asm/asm-uaccess.h | 2 +- arch/arm64/include/asm/mmu.h | 1 - arch/arm64/include/asm/mmu_context.h | 2 +- arch/arm64/include/asm/pgtable-hwdef.h | 2 -- arch/arm64/include/asm/uaccess.h | 6 +++--- arch/arm64/kernel/entry.S | 2 +- arch/arm64/kernel/mte.c | 4 ++-- arch/arm64/kvm/at.c | 2 +- arch/arm64/kvm/hyp/nvhe/hyp-init.S | 4 ++-- arch/arm64/kvm/nested.c | 4 ++-- arch/arm64/mm/context.c | 8 ++++---- arch/arm64/mm/mmu.c | 2 +- 12 files changed, 18 insertions(+), 21 deletions(-) -- 2.30.2