From nobody Fri Dec 19 02:17:31 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6FD71EDA38; Thu, 10 Apr 2025 07:47:36 +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=1744271258; cv=none; b=c44izcxMDO+Fvwf7sR4YCXCvXN0gomMbhKxxfxf4c6OYORg8foreCdNj6j+p/ZmcET/pTSNQ08MUHIiIfdXo5bJodQQg/O7H2dyj71wgYxVZnaXaySdgGm4KMP0EBHhKRDq2MdJ0vuB5NKhuvfdoDNvmnAGPGZS3sYE1fNyMpBE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744271258; c=relaxed/simple; bh=wx6GJBpIuuDSlDCK//6yhPNpbjlWcv3R4CsOmqw6DUk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VPT3SGk24c3LcJKIOCmF/ik970m5RoVPzCN7VHjcmECotOCdl0DWcMdT5BctsLW1GLwJLrVgfvdkHX3/y5+NdNm3H/UgkOlHudHain1Z5u0TAIENkFQtOhTH0UzyIxDMJal4BP5pZ2Q1PM4tPzfhDV58ratl6tWmAM+pIWjSAXU= 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 41FD61E5E; Thu, 10 Apr 2025 00:47:36 -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 2BC0E3F6A8; Thu, 10 Apr 2025 00:47:33 -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, shmeerali.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 v3 3/3] tools/kselftest: add MTE_FAR hwcap test Date: Thu, 10 Apr 2025 08:47:21 +0100 Message-Id: <20250410074721.947380-4-yeoreum.yun@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410074721.947380-1-yeoreum.yun@arm.com> References: <20250410074721.947380-1-yeoreum.yun@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" add MTE_FAR hwcap test on kselftest. Signed-off-by: Yeoreum Yun Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/abi/hwcap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/arm64/abi/hwcap.c b/tools/testing/self= tests/arm64/abi/hwcap.c index 35f521e5f41c..a539eeb0bfc0 100644 --- a/tools/testing/selftests/arm64/abi/hwcap.c +++ b/tools/testing/selftests/arm64/abi/hwcap.c @@ -1098,6 +1098,12 @@ static const struct hwcap_data { .sigill_fn =3D hbc_sigill, .sigill_reliable =3D true, }, + { + .name =3D "MTE_FAR", + .at_hwcap =3D AT_HWCAP3, + .hwcap_bit =3D HWCAP3_MTE_FAR, + .cpuinfo =3D "mte_far", + }, }; typedef void (*sighandler_fn)(int, siginfo_t *, void *); -- LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}