From mboxrd@z Thu Jan 1 00:00:00 1970 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 6EE53ECAAD3 for ; Fri, 9 Sep 2022 11:40:50 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=m5wxfg7KP11qSDP6G9uB/xZqIvlPjeVw3Hd2YdGwvug=; b=wqpncT83SQkSQi 5BXlPZgzpwyhAI+bHguEbKiuQW1a1/yHkbxWGG7kE506gaDOctKJm9m9/cV+C9g44hMG0wA153xMc 35M7oyuwxD1xQSY1nA1gW5H88+GAvyU6EfhBof476/uQUhBP9JTGw1axdhFLoQPI82+1D91BqwN7A LxiMq56bz2TaGAlNXrSXcYnLu5jRzARxqAn1wc+mQH6bbZq7iF1iBiUscoNI6/8PazzG7x0O1/YZg 470EFtvrmHsW6jGfMb66UDbLHwC/quXWvyldreqjfTixidRZLRXLVhakUxulKxLqEJzPEStebBXDy K7x+SdcA17tC9XOHP9yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWcM4-00Fmhr-9L; Fri, 09 Sep 2022 11:39:28 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWcM0-00Fmgg-NU for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2022 11:39:26 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 417CCB824EF; Fri, 9 Sep 2022 11:39:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 066AFC433D7; Fri, 9 Sep 2022 11:39:19 +0000 (UTC) Date: Fri, 9 Sep 2022 12:39:16 +0100 From: Catalin Marinas To: george pee Cc: Russell King , "Russell King (Oracle)" , "Kirill A. Shutemov" , Austin Kim , Ard Biesheuvel , Mike Rapoport , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Report support for optional ARMv8.2 half-precision floating point extension Message-ID: References: <20220901141307.2361752-1-georgepee@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220901141307.2361752-1-georgepee@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220909_043924_924415_E176DE4E X-CRM114-Status: GOOD ( 16.69 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 01, 2022 at 09:13:05AM -0500, george pee wrote: > Report as fphp to be consistent with arm64 Do you have a use-case as well? It may help deciding what to do with this. > diff --git a/arch/arm/include/uapi/asm/hwcap.h b/arch/arm/include/uapi/asm/hwcap.h > index 990199d8b7c6..f975845ce5d3 100644 > --- a/arch/arm/include/uapi/asm/hwcap.h > +++ b/arch/arm/include/uapi/asm/hwcap.h > @@ -28,6 +28,7 @@ > #define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) > #define HWCAP_LPAE (1 << 20) > #define HWCAP_EVTSTRM (1 << 21) > +#define HWCAP_FPHP (1 << 22) I think with ARMv8 features on the arm32 kernel we tend to add them to HWCAP2_*. With such change: Reviewed-by: Catalin Marinas I'll leave the decision to Russell on whether he wants this merged. An argument may be that people still want to run 32-bit user-space and even if they use am arm64 kernel, we can't add a COMPAT_HWCAP2_FPHP until we have the arm32 counterpart. An alternative may be to only add the uapi definition under arch/arm but without any functionality (so never exposed to user). The arm64 kernel could expose it to compat tasks. So, if Russell is ok with any of the options above, please also add the compat arm64 support ;). -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel