Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3141242lqo; Wed, 15 May 2024 00:24:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCFi1SMomrRDS8phhFEEqR7UZ7h17Hqh/9HfhqKh5cjy0pELFvvt+E2LPU4hmmo/FgUYfr32FZQwpwUiCed5ksKalfojw2MEhqpqEmCQ== X-Google-Smtp-Source: AGHT+IFtHX3iP0zz1QZFZ2cSAIjihFWDe6yPP+MlE2vIB6hvFnc5foeGg+Hd5Z/tn/lFf5o8H9O1 X-Received: by 2002:a17:906:7f99:b0:a55:b272:ea02 with SMTP id a640c23a62f3a-a5a2d67b044mr1024362966b.75.1715757845342; Wed, 15 May 2024 00:24:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715757845; cv=pass; d=google.com; s=arc-20160816; b=Motyt8xkQ7YVFbpeolORe8Ud4UxNBiaHg/0K0LZu17O9BKg1htY3JZfBeujjBOnl/x /cBXsbcvO7QwQOo+ejlpdUKWChMWWsXoDb3REPRbKV7hmUxIjaLtmfL6IgGPgAV5TwRy 7PKhFDvUmYtSI3knm1s/O7h6aLrXI6+t7lwVwPICFyPyXUogJHbO4xGimLrkNuKEAhy1 F2K00emRcl/TIhRwI+RDAJ7q2Aaj15sFbzhLnVsBMFAd9hrFSTEhjv91IrUAkaDsFcJa NI7e9qFVFHoGpT8boRwi7TuugAWrL05KNFiXAtIxJHXKTKRUaMUfqqz6keAnuf9/9iuW tAiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=M3aNIUS/o3NVAWfRhvCBiPK/382AOQRHzzaolp0MKbQ=; fh=vKmvYnNP3GzWjyaDFfNei3+Oj2vzKfTMRoX/3wSmpII=; b=FIdjyUwreM+hZrhTthH5IZEl91BTLscA0y/eKIV90Usf+SIjEeQREb+wo6bwmHaAx4 RvazjovFlHXqVO9+Hr1iLUoEv2d7LHorULhlw5TO9v9poVnQj3v1kf1BjcKQBrYV8a4L eWO/l7RvWVyRfwtyWBmYLy5lNaL+GFdaGCPqRM7rNPSid4mBCXAZGgOitx+EmNOwmXGl CSweTPYEP/Pjnw3iRD52+DSKsRlcTgFhYdAzHNaLQunyf+imwPMBfovsayuXqhsrBVAO 7lnQpY4ouuksZsnVwijE83DS0uN5+foPq7PPyBqQLvl1rmVAkG45hm6Q3tFfigAAn9+6 vsvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QxHewemv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba55c8si742054666b.615.2024.05.15.00.24.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:24:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QxHewemv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 18DE51F21494 for ; Wed, 15 May 2024 07:24:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6CDB45BE1; Wed, 15 May 2024 07:20:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QxHewemv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF140446AD for ; Wed, 15 May 2024 07:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715757605; cv=none; b=HY58gW/MXxd6XXC9np4PxFcOkGoZTSCVuD/4O1XZTF5T2x985nO2rAQ9DTGRRe8kpg5qkKKOYtjbOXzXI2GIPexUnhkiyKlgmW0HDD37M1ccD+UhJ7UCz3w0KXFsaX7sejuIPoayXJHyr50oOV5RoXA1x+tU2vgenoeuk2jSOpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715757605; c=relaxed/simple; bh=UrQpKGbOOg+j3V5gFRHRGwgFt0fiIcqplbYRMxsH9uQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jzTI9RwPx2diHQ9hWG0LL8xocgt+rwTx1RTo0y5nu76UGIhoyipt539QSOmmZeAOvJGTRklgR1COPcKg+zd54tG4LVafqns8ODYHHJCBHe9K5W8eSIymMYB+BXbrQ9RpeR83wKTvFQtJ2sktLbGu4+6GrB1lEJ0n4XOQUaWC8xI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QxHewemv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FB0BC116B1 for ; Wed, 15 May 2024 07:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715757604; bh=UrQpKGbOOg+j3V5gFRHRGwgFt0fiIcqplbYRMxsH9uQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QxHewemvHPJf7qz+BJNh9ddTjkvQ5+kDxQDgCNsF7XVnZnFL7MgZths0xFW1lMdpg NAZ0r0DxNaIaj5zY+mKl/l7tgvJzQCosBYkZloG/8kusnGl+uvNHYwCMQi2kbi1Rmy cyUI7db8vL9H2r/vKrNpFx7bPZdu6HFb+rUuOj1bdcVZUIwKmrHlX6rv09BA/XRXE6 7fdvBP4f9nOrNi0bWX+OcfALs5UNz9kkrQtuHWU5XfcgMPpmnlG7kKsE+zs0OryZ7T dyWTo9uKkTRUgWSEIi4TjJCCH1te+DpDlKwX7fDnHF/ZMcUJ4kRbJcc5Cz8eDg1XgD V/KAofisAZt7Q== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-52192578b95so7597718e87.2 for ; Wed, 15 May 2024 00:20:04 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCW+uXcd6Hpg2MqrGhkW+aIvZclonVdIg9fAQlWxgZILZivL/75lauwPYrBXRDFi0iGbAlZazkp90YGlBPLHhw3+C4jlpQrkENiwW6fK X-Gm-Message-State: AOJu0Yz43JJGJvIhnA/8VKLOfmtMSDRoDYXAOFna8uBkDF/7/Mo8j4mD OgYvjEhgC2YNoPxy8TA2KpQ610bPHIUDi6VgvM3StbxwKhs78I/8kxiDaPwv5KSdV5/Ej4kQSGF 3dXkT4BzEtzMuypBi6Zu1g0nFT2k= X-Received: by 2002:a05:6512:238e:b0:523:8cc2:e01a with SMTP id 2adb3069b0e04-5238cc2e125mr1200355e87.2.1715757602884; Wed, 15 May 2024 00:20:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240509013727.648600-1-samuel.holland@sifive.com> In-Reply-To: From: Ard Biesheuvel Date: Wed, 15 May 2024 09:19:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: Do not select ARCH_HAS_KERNEL_FPU_SUPPORT To: Samuel Holland Cc: Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thiago Jung Bauermann , kernel test robot , Andrew Davis , Arnd Bergmann , =?UTF-8?Q?Christian_K=C3=B6nig?= , Eric DeVolder , Rob Herring , Russell King , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" On Wed, 15 May 2024 at 00:48, Samuel Holland wrote: > > Hello Ard, > > On 2024-05-09 2:39 AM, Ard Biesheuvel wrote: > > On Thu, 9 May 2024 at 03:37, Samuel Holland wrote: > >> > >> On 32-bit ARM, conversions between `double` and `long long` require > >> runtime library support. Since the kernel does not currently provide > >> this library support, the amdgpu driver fails to build: > >> > >> ERROR: modpost: "__aeabi_l2d" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! > >> ERROR: modpost: "__aeabi_d2ulz" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! > >> > >> As Arnd reports, there are likely no 32-bit ARM platforms which can use > >> the amdgpu driver anyway, due to lack of features like 64-bit > >> prefetchable BARs. Since amdgpu is currently the only real user of > >> ARCH_HAS_KERNEL_FPU_SUPPORT, drop support for this option instead of > >> bothering to implement the library functions. > >> > >> Fixes: 12624fe2d707 ("ARM: implement ARCH_HAS_KERNEL_FPU_SUPPORT") > > > > This commit is not in mainline yet. Could we just drop the original > > patch instead? > > No, like I mentioned in the original thread, later patches in the series (for > example bbce5cac4f5a ("lib/raid6: use CC_FLAGS_FPU for NEON CFLAGS")) depend on > CC_FLAGS_FPU being defined for both arm and arm64. > > arm can't select ARCH_HAS_KERNEL_FPU_SUPPORT because the contract of that option > is not fully implemented, but in my opinion it doesn't hurt to keep the part > that is implemented. > Fair enough. But that still doesn't mean we have to add the 'select ARCH_HAS_KERNEL_FPU_SUPPORT' only to back it out again.