Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5601677rwn; Mon, 12 Sep 2022 11:28:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR41it38CldYSOcu7dA/sExLui3g+WKatECrrEQSD+MC9ZeBkkvMc5+I/Na0ObREn75rbVwJ X-Received: by 2002:aa7:c1ce:0:b0:44d:d5b4:adf5 with SMTP id d14-20020aa7c1ce000000b0044dd5b4adf5mr23862466edp.182.1663007335602; Mon, 12 Sep 2022 11:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663007335; cv=none; d=google.com; s=arc-20160816; b=Vec0+oIhtkI0cFbgYNKYtFpkXxsENLrtXqiJrwiVZCNIb3LFTMaDY/4wlUj2PzNyMb J/4isBGIwrRvskQq6tCuMm/6EDQuO/b/pD1B5jfCMN5izf87xAX45iqQKo+L6u8Ywaxh gxolEuC9mVpY8VvxJFfpv41o1iyqhyzznDhzfkKLSCk2PhaXpSlN/76tgb0/Rx4SNIiH +gFJ5sJmouk3ANabVPT/Usy0d6JhnDxXFwDJ/AFdLmktCudZRLyFBf+DWGoGqqqJSUcg e2X4yMg+TJqAwLovafsp1j3CvCEEoCN7GZHQcR+kLH9zC1sF9VXnmBkHHHeMTmkO3MfD MEpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=krOgoVxwfTTiN1DsCbbELdSz8T1/ug820utrPBGbV+I=; b=TQHY2+gcYczEQCiTEtz4mozJrN5j9Ts8Imn8jazibgRlNXXMmtqJczc7KUib8Ts68i g1KY2X6ODY9vrDIrXP4ks8WVQbW30qXNP45VKkhmPlMXwCJooBEdpIhUl5dXTWyx4Pgz px3Il15nP5sgUq+GmW8thvk0jFlHIgrLBOaDtNVmjAysrBX52DBfDQpuGs3XIgCh7ndK PNiwyzZKvFnBObuV93i7/SDYFiYYZnyyHiXnoXQHlZwNpIbaSD2J506/PSI59l+xbte7 AQnduN1XaYiIvJqPUETnq0J5NXe15ZKcx1B1a8dyvZei3f5Ygtjr75LlPNut3lLqO68q 0T2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bbbi3kXh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056402271300b00451ad3926d5si4028031edd.328.2022.09.12.11.28.29; Mon, 12 Sep 2022 11:28:55 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bbbi3kXh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiILSKB (ORCPT + 99 others); Mon, 12 Sep 2022 14:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbiILSJk (ORCPT ); Mon, 12 Sep 2022 14:09:40 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5456ED52 for ; Mon, 12 Sep 2022 11:09:30 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d12so9335079plr.6 for ; Mon, 12 Sep 2022 11:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=krOgoVxwfTTiN1DsCbbELdSz8T1/ug820utrPBGbV+I=; b=bbbi3kXh+LuJ615H9/uybCphjVG9PAN1wwm41NzOSOv+PgbEvdPHXSa/FUVuNSX9rF cB35qq0zyXJFhMRWzip77xbxMugOe/lnqgHG02o/U6PABq7jAyVJo8WkRqikgUWx82gh dhVsA+MMAdP09T3YjlDMYRAX0+zXzJxFXC8SHN333GxgUBHMYHd8srOQMgcxkNZJ71yK +V8aM7TWpFRJyvy10jiXA+/A+60P1VY43ycrGU0XA7FXO3AwTGT3D5d6h2XOCj0Nlmlz i6LFPmnRpVRHzrV/hIcNEO22P7kfgXapvN5dcK3PfRFuBYu1kFtrpqBVfUUvYBhcd9xW lYMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=krOgoVxwfTTiN1DsCbbELdSz8T1/ug820utrPBGbV+I=; b=O6SStfgpAcQ2psoCmU6vyXdltjmvPQfXZ4w0QH/xJ/WxI6dxyvIr/HxdFtbYUktLBu MjoDQYi4HShFIaBAaP6J4+P079VsDn7w8UdjMS6HIDb/4KT/lTznU9HEN8FHe7kltdSc Kpkvc4lqy1WLgH8HtfGZpiB2V+uJKlKnKJM3OuGKR2GaHRKoxG3+Xpk/WyKEHPbNbWlB IhGYaddRv6Oxj5r8Kc0PaY4gPVDB3aUftELT1JQCDV8GPDCCco3dpwOm768iD08DaW5e tDULiZjHg3d4ttuP04tR6a3YBg49Sv627y22TXekYaETWS3piS3DNeBTzyN8dujlb8Cu uJPQ== X-Gm-Message-State: ACgBeo3eMwJ3Qo0/y436BDKvkEhFeWttG3dy0GPtf5krxoQ6oFOZT9ny VXxUrGUAAix6KMswPMNXsO40ZWMOQFz0Nx5yvuo= X-Received: by 2002:a17:90b:1c81:b0:1fb:887c:f82e with SMTP id oo1-20020a17090b1c8100b001fb887cf82emr25159974pjb.92.1663006169735; Mon, 12 Sep 2022 11:09:29 -0700 (PDT) MIME-Version: 1.0 References: <20220901141307.2361752-1-georgepee@gmail.com> In-Reply-To: From: George Pee Date: Mon, 12 Sep 2022 13:09:17 -0500 Message-ID: Subject: Re: [PATCH] Report support for optional ARMv8.2 half-precision floating point extension To: "Russell King (Oracle)" Cc: Catalin Marinas , Robin Murphy , "Kirill A. Shutemov" , Austin Kim , Ard Biesheuvel , Mike Rapoport , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Sep 12, 2022 at 8:05 AM Russell King (Oracle) wrote: > > On Fri, Sep 09, 2022 at 04:05:53PM +0100, Catalin Marinas wrote: > > On Fri, Sep 09, 2022 at 09:57:39AM -0500, George Pee wrote: > > > The details are here. I originally thought it was a compiler bug > > > because it first showed up after a toolchain update. > > > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106763 > > > > > > Since FP16 is an optional extension, wouldn't it be beneficial to a > > > user who compiled some userspace float16 code using gcc > > > -mcpu=cortex-a55 which ran on a cortex-a55 with FP16 extensions but > > > SIGILL'd on a cortex-a55 w/o FP16? > > > > (please don't top-post) > > > > My point is that if the kernel doesn't have full support for FP16, it > > shouldn't advertise it to user even if the hardware supports it. If you > > fix the kernel to properly handle FP16 on supporting hardware, then the > > HWCAP part is fine by me. > > Presumably, the only CPUs that are going to support FP16 will have > non-trapping floating point, so the support code shouldn't be entered > at any time to emulate a half-precision instruction, but only to > handle the lazy restore of the thread's floating point registers? > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! I didn't see this until after I submitted v2 of the patch. Let me take a look at the fp emulation code path. I had assumed that CP9 handling would work just like CP10/CP11 does in entry-armv.S and wouldn't need any special handling.