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 95C881547C3; Thu, 3 Apr 2025 17:28:03 +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=1743701285; cv=none; b=jQy5P1+3iGh8vXiHYwZEiCxeskb35llE6iOeI9uYx4qxkR7OxPw7XGGKf9brUtkEZW71LfDlQSnbJDCuXJjZ8WjCnztNSc7SvRnTAkAj4UXt0ngyZZfVxI2BlL81ZGgSmdrnh2pzDEQkka+W728uzAPJ3aFaJ3ZYtBJMpPhTtis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743701285; c=relaxed/simple; bh=BV+gNen3qvEmhMZvOXrTqKED8oZH7+Obarx19a/WXqw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UyaxGAT2Gkqyi9XwbET2xmA58lMBgyQVvv5d7JTX97/PXR0AtCNq41eHaf9eBs34Svr67leUzyHQUzjQ4L5K+z3VkDXS/Ql4hylPsWR+LqEyAttfJydgNiC6KD8t9Dr2TyfDdh/E0VqzD1CVyd7DZhGzkMs7zQYwO6N9ogfytFM= 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 67BA9106F; Thu, 3 Apr 2025 10:28:05 -0700 (PDT) Received: from e129823.cambridge.arm.com (e129823.arm.com [10.1.197.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E38103F63F; Thu, 3 Apr 2025 10:27:59 -0700 (PDT) From: Yeoreum Yun To: catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, anshuman.khandual@arm.com, joey.gouly@arm.com, yury.khrustalev@arm.com, maz@kernel.org, oliver.upton@linux.dev, frederic@kernel.org, shameerali.kolothum.thodi@huawei.com, james.morse@arm.com, mark.rutland@arm.com, huangxiaojia2@huawei.com, akpm@linux-foundation.org, surenb@google.com, robin.murphy@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, nd@arm.com, Yeoreum Yun Subject: [PATCH v2 0/3] support FEAT_MTE_TAGGED_FAR feature Date: Thu, 3 Apr 2025 18:27:55 +0100 Message-Id: <20250403172758.67106-1-yeoreum.yun@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The FEAT_MTE_TAGGED_FAR feature provides support for reporting all non-address bits during a synchronous MTE tag check fault. This patchset extends the reporting tag to include not only the memory tag (logical tag) but also the address tag via si_addr when FEAT_MTE_TAGGED_FAR feature is supported. Since v1: - add hwcap test for MTE_FAR feature. - add MTE_FAR doc into elf_hwcap.rst Yeoreum Yun (3): arm64: add FEAT_MTE_TAGGED_FAR feature arm64/mm/fault: use original FAR_EL1 value when ARM64_MTE_FAR is supported tools/kselftest: add MTE_FAR hwcap test Documentation/arch/arm64/elf_hwcaps.rst | 3 +++ Documentation/arch/arm64/tagged-pointers.rst | 11 ++++++----- arch/arm64/include/asm/hwcap.h | 1 + arch/arm64/include/uapi/asm/hwcap.h | 1 + arch/arm64/kernel/cpufeature.c | 9 +++++++++ arch/arm64/kernel/cpuinfo.c | 1 + arch/arm64/mm/fault.c | 7 +++++-- arch/arm64/tools/cpucaps | 1 + tools/testing/selftests/arm64/abi/hwcap.c | 6 ++++++ 9 files changed, 33 insertions(+), 7 deletions(-) -- LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}