From patchwork Wed Oct 26 05:58:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Daniel Kachhap X-Patchwork-Id: 13020174 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22EB2C433FE for ; Wed, 26 Oct 2022 05:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eiyU0R/j4UIA0mbO8e46RHWGdllZ4llWVr4AaJQ6YRY=; b=3XaXZotd+rpo7W QYS8HQ0C2BhKJR60FZ/UQ+KKWqJLgtKPy5+OC+7j8XIIXs53XyVElfH+Be3cV6I23XF/rplO9eCeM 6P0N/IuyNLyjAh+c5Sbiv0rs8O7hQNIPdbeNcSeASGQouKWLH3sFDpka3FlsNnA3brgOXfT5uBU4O STnzM7dcYIKTWd/rATZk7vgarLpsmNzpxG9I3ubUy6o2Y6fft43s8Y6YsgohYE8PovKNW/uAfTUs1 BvdzXjacCO2SLbSz16lF4v8TcF1SYfFk/+0za1kcd9xGuKb5fR1Stjn4DO+2CLXLLyVbnQtSW90cx I16IjQuqofEXJGCdgGGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onZQt-008AXX-41; Wed, 26 Oct 2022 05:58:31 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onZQo-008A82-CN for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2022 05:58:28 +0000 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 4F26E23A; Tue, 25 Oct 2022 22:58:31 -0700 (PDT) Received: from a077416.blr.arm.com (unknown [10.162.42.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 331CE3F7B4; Tue, 25 Oct 2022 22:58:22 -0700 (PDT) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Will Deacon , Amit Daniel Kachhap Subject: [PATCH 0/8] arm64: Expose compat Armv8 AArch32 features Date: Wed, 26 Oct 2022 11:28:05 +0530 Message-Id: <20221026055813.13484-1-amit.kachhap@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221025_225826_493590_69BF7ADC X-CRM114-Status: UNSURE ( 8.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi All, This series advertises the Armv8 AArch32 features in arm64 kernel in compat mode. A similar series adding such features (fphp, asimdhp, dp, fhm, bf16, i8mm, sb and ssbs) in arm kernel was posted earlier. The entire series is divided feature wise as present in Armv8 manual. The details of these features can be found in Armv8 architecture reference manual available from https://developer.arm.com/documentation/ddi0487/gb/?lang=en All the changes have been tested on Arm FVP Base Revc model after adding necessary model parameters. The different hwcaps added are visible in /proc/cpuinfo in PER_LINUX32 personality mode. The series is based on Linux 6.1-rc1. Thanks, Amit Daniel Amit Daniel Kachhap (8): arm64: cpufeature: Fix the visibility of compat hwcaps arm64: Add compat hwcap FPHP and ASIMDHP arm64: Add compat hwcap ASIMDDP arm64: Add compat hwcap ASIMDFHM arm64: Add compat hwcap ASIMDBF16 arm64: Add compat hwcap I8MM arm64: Add compat hwcap SB arm64: Add compat hwcap SSBS arch/arm64/include/asm/hwcap.h | 8 +++++ arch/arm64/kernel/cpufeature.c | 56 ++++++++++++++++++++++++++-------- arch/arm64/kernel/cpuinfo.c | 8 +++++ 3 files changed, 60 insertions(+), 12 deletions(-)