Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1826429rwn; Fri, 9 Sep 2022 04:50:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Zk5Msp2gO9vuqFLsT2MW7D46f4zkDSb3+fOdPNOULQd8YD5YGx8QTIB8zLSsu1hHSh0Sl X-Received: by 2002:a17:90b:4acc:b0:1f5:7f05:12e8 with SMTP id mh12-20020a17090b4acc00b001f57f0512e8mr9036497pjb.92.1662724258439; Fri, 09 Sep 2022 04:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662724258; cv=none; d=google.com; s=arc-20160816; b=h1d2dmo1k8q7zQxiiIUzFuXg93cs3lV0XCdr6NDkHUDF3XU+/qB/fPXiPy/+rQqQJz kHaW5CpRVKxMGB5vEao6zDFj8GR7WO0MNdKbcHlKHoVAXMaWlUQ3TZ/pA3j9ID2XV7Gl XEfix42/hQAT+eOknpiPmn9g4G+oTP7O5gHWMq9eWtfKMBy6JrJukLXZKUHJotd3DQnd CvsDIdQAvqzXVycdELOQ/qj4sqJKC9ComUxKRS1bmqng7ZeWGty8Ljjhbn0UtQmMxqmj dzlgRdvnGI51HyIs+BINzCd3Go8Tas2e+CvZssdw0CfgDjegzdFLfBi+CkhEtnuWwOag K6vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QJh4I7ljiyypZaBNNdxRUO0I2NdlWdl6h+IJ5nn3Vg4=; b=AwBz27ZSOOTLkTZk+tnyH0IdoPhXfEwgbEWr2yKmoi1F7UQDmJFu1TtklJcK8yu+8j grClqehovyDgz6/3p1b8cxCCPU3/a87axzYT4F7SvXRUf8ILI9JZJ54WRP7hS5p1dmkL tTmfzfeoeJxVdt9/z1VqDMnTnwXWe55YUrckJMBEsxIri4hW5dyyyX4O1hxKc8XLzxyN ewG7JNHvdBvG9tn7yHJd2H2ULrl9ncECOIQR6Ouq7UaP45cw7VzfC2IHHLNUQTeyEULB xwdlQWAXiw/dUUJlPTmXbV0ZGizsC/U5BG77IuezDpJbNj+x+h2Aq60BY6k4r2UoAo1h lnMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j70-20020a638b49000000b00420f9b6a69fsi365035pge.28.2022.09.09.04.50.46; Fri, 09 Sep 2022 04:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbiIILkP (ORCPT + 99 others); Fri, 9 Sep 2022 07:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbiIILjl (ORCPT ); Fri, 9 Sep 2022 07:39:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7871CD for ; Fri, 9 Sep 2022 04:39:22 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 4531961FC5 for ; Fri, 9 Sep 2022 11:39:22 +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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901141307.2361752-1-georgepee@gmail.com> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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