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 B4384ECAAD1 for ; Thu, 1 Sep 2022 14:14:24 +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:MIME-Version: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=DM5VWcZdqCsVXInl+hmTfgBe+OSy5pwuKIr6Bbpf940=; b=jHWXHUAuKypBwO 7dp5u/Ro+TVw6WHri3lJrNZA2j8RWd52X3xObH9sKUTLQiMgdH0BNq1kRPshmmZ1yOIdMgDkt68qZ vNoYfbYiQYahEg7656DKielu0UWWJiR/XX4B0db8ngE1LCyDt1pzvBAn1mQQDj3HUpGtIKzMUavpI 14eyaX5zCqtDI4kNHyVHsOm0dPbQZyt/KAjvOn4h9CD6Jfwh/xYlzKna3VZs6/U886mjs7753om0h 5VffviagI+FjSLskiuJ+oxSI/erCKf4Z3sXneC4GEfrN+CLXOI/z5BPS36EcNZqUVRmvRQ5ymflkE o/We93htc8N1Q90G6iNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTkwY-00COFL-MR; Thu, 01 Sep 2022 14:13:18 +0000 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTkwT-00COD3-BZ for linux-arm-kernel@lists.infradead.org; Thu, 01 Sep 2022 14:13:14 +0000 Received: by mail-qk1-x72f.google.com with SMTP id h27so13307779qkk.9 for ; Thu, 01 Sep 2022 07:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=APMqnyoY0nzwphEpGCTZBJOoOWiMPGTG1aZK6bI1QcI=; b=qkCFrjsmebyb54+NCL6rtevKjwdPTqM4Sj1iaN8gRR5Gzi03K+hGmPt8ObbrmOhiH8 hwBuVfdGIwOmBHcn/p5CIhDJr4QWI+vipz7eYrcFbChvucC0f+h8KBtnl9gE+IRp2yij WRtvh0q+Dp8hOOKUy/2h+1z++bCqOscOHKlFeG72N2MzcTAV9a61nZldb1wfAobs8Z+s /VxBXpHmM3zi6c2ZkCmx1G3qYAUpjFofiynI3Yo1Z40eDt4ta6YcMk5hxKVgR6lUvHjg nZjaK/Z9i3gWwP5nOi0FmhuhH1zRXPu4SGibFwxCIh1hfqjpG5yJVrABvqMHweYtRbmh Q9AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=APMqnyoY0nzwphEpGCTZBJOoOWiMPGTG1aZK6bI1QcI=; b=ZhgoTxHn5XjxfEOLijjUth2nBt1uYH+W0luQZqhTfTL2M7YLkmPd9mlRjY+sOkGwFR rHHnp03ogyUI3uK6i43nitqbAwf1R47MHzUDDW0RipTbrbRk5O5vQxC4hojvjPsN+wWN b2P19TDb5SeZO6Rr1pShWQPJlUUiT9D8InGYhwEADq+6n1t9NCVx/zc5C5hac1y49Wna 9F3EPSGYU9dSh1QZE4m3s37GW8KINgLy48cSaMKeZ6CH4SzX02Kpbv5KYUzt4+vILU7H uvNH45rkipMKjQMZlT0mRGpHSQCzPE65YBkAxVAZ6032abrvKZ/IxCzDLI5wDWNKp7nR NRfg== X-Gm-Message-State: ACgBeo3vrfLqECZ4hRnWQM+QIo6wGKjwp3uxhQS/wKcor8u+zD1Weai4 trR1EuYoeWiO86Y1qFXm3q8= X-Google-Smtp-Source: AA6agR4gg1lLt1Axu2UH/+p5DFKH13Q7nHvZQIAdCtqiVwZwasPpyuzbg9QdUpqJLDxpCqkTEY0ALg== X-Received: by 2002:a05:620a:4482:b0:6bb:c315:9597 with SMTP id x2-20020a05620a448200b006bbc3159597mr19648718qkp.423.1662041591059; Thu, 01 Sep 2022 07:13:11 -0700 (PDT) Received: from gpee-next.corp.roku ([65.125.88.5]) by smtp.googlemail.com with ESMTPSA id de21-20020a05620a371500b006b9c9b7db8bsm11815579qkb.82.2022.09.01.07.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 07:13:10 -0700 (PDT) From: george pee To: Cc: george pee , Russell King , "Russell King (Oracle)" , Catalin Marinas , "Kirill A. Shutemov" , Austin Kim , Ard Biesheuvel , Mike Rapoport , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] Report support for optional ARMv8.2 half-precision floating point extension Date: Thu, 1 Sep 2022 09:13:05 -0500 Message-Id: <20220901141307.2361752-1-georgepee@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220901_071313_438804_C688DC7D X-CRM114-Status: GOOD ( 12.57 ) 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 Report as fphp to be consistent with arm64 Signed-off-by: george pee --- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 1 + arch/arm/vfp/vfpmodule.c | 2 ++ 3 files changed, 4 insertions(+) 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) /* * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2 diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 1e8a50a97edf..6694ced0552a 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -1249,6 +1249,7 @@ static const char *hwcap_str[] = { "vfpd32", "lpae", "evtstrm", + "fphp", NULL }; diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 2cb355c1b5b7..cef8c64ce8bd 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -831,6 +831,8 @@ static int __init vfp_init(void) if ((fmrx(MVFR1) & 0xf0000000) == 0x10000000) elf_hwcap |= HWCAP_VFPv4; + if ((fmrx(MVFR1) & 0x0f000000) == 0x03000000) + elf_hwcap |= HWCAP_FPHP; } /* Extract the architecture version on pre-cpuid scheme */ } else { -- 2.37.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel