Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp226591lqg; Thu, 11 Apr 2024 00:16:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3IU44Djon5LCtLkRYRxYsdUlXPPauNnQApWJHOMgzWLBqWbi8cWS4X7mn7EPaLoQNCHxudGaeaTP5wyxDZTm82yuOS6ytQ3SGZ+q0xA== X-Google-Smtp-Source: AGHT+IHewkfAqyA2kN7Z5iU1gsr++C0wsgm5Bojn0kobu0QZLs/EV13CUtC1gf0GWW0TWZ0u6kj3 X-Received: by 2002:a17:906:b819:b0:a52:2390:5728 with SMTP id dv25-20020a170906b81900b00a5223905728mr360788ejb.49.1712819765479; Thu, 11 Apr 2024 00:16:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712819765; cv=pass; d=google.com; s=arc-20160816; b=sTboWcl+TtpsEzeM0TpH0D2Z7R0m7qptXsbAETpX33t1HT5U25f65aw485Bw9n3gR+ 3lL9wXJq3+9YNPsYIJbompPB88ePvvU//7nttMjfRI/L+yXmDJWaFGuQZZru6FDDfCDw SyKt0F0eeZ7dpqatneNjxw2oSO9bB3CuCTqWomzcjRDkg5zRrPS6U/370YMH/y0vTLUl yMStA+Q06pxuykj2KPK93yG5Guon/jefJGCGS+XUJWE+1AVjyS4ivkgFKEq6MmIYxA3q 52XQM40jV6ElFCRfYkvK5/5Bb1WLPEM5b13vbhSMhSztZsIrOyJRCd8HIU0z3zhNSqCb nlCw== 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=EGxUFWIY3FhDr3OERYjKXmTSAvHQ47fM+usiXa4A2Co=; fh=GALnmKsRathxgEjHbD5gSJ4SbUA7t2UoDoFf0HEaYf8=; b=HKt6jZfrrx1y2DQoHeE8orHHWDed/owYN+AVW+WX5nvSGCB6HLLri5qcfRTf2E056e xtqEs6lNMCgXWIFcyAXLNpAW0HdccKILyzB5gSftFumWEUxZmDpoDItTSK19UHbhSSWW AQRjYqGAgladbszNYHC5QPqQTxSSeQb9OsKxrTFqABByK4w88hDLGOLhafRzeHXS1AM/ BVtunf64g+prfCEuv0jCN450c1dZ3QFNBTRnyZqbKGjOxxYb7PAFH6XoGVkr/7yQBuuo 0dBKgWIWsbqD3oxFD1ZHFtFLKaZYEoKpxH3F7q9sB49NyGTq4CT1eyLEF/35dzwaaLOi qdTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PoTjX5JU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139947-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 d27-20020a170906041b00b00a51c5474fb3si462568eja.912.2024.04.11.00.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 00:16:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139947-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=PoTjX5JU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139947-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 3723E1F21225 for ; Thu, 11 Apr 2024 07:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D9DF13DDC3; Thu, 11 Apr 2024 07:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PoTjX5JU" 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 C4CA463D; Thu, 11 Apr 2024 07:15:56 +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=1712819756; cv=none; b=lRTPhAt1f6YJwPHO9NkC6mJEQhz00U/Ez91iTb338UAHD6q19PQxEIiKxxGfJRiAhhY1SFHsrqH1puu0M4haTpAGDaQXdqr0e41jMh4SwiMz4CMbbCpHFUgT0DCgSiWnRz/O9zcQk4J8l2V4kijVT+5dboU5HGfFBWd6k00OWQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712819756; c=relaxed/simple; bh=EGxUFWIY3FhDr3OERYjKXmTSAvHQ47fM+usiXa4A2Co=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MyKFHolpue8BiJhsh/AI/asY6Wwx8I5PgTK1gGlln6YE5vrGuB5FREzbs6x2nUI7BZQyPehayd8UlYTpJR0xMMlu8QZsY3tKZSg26007Tt2NKJdufkW5/CYc7+ijpTB/K+LWoTx3tbp2SRuFAY9fSrAeX3nKGvv6pUVgHkBOZpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PoTjX5JU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3C20C433B2; Thu, 11 Apr 2024 07:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712819756; bh=EGxUFWIY3FhDr3OERYjKXmTSAvHQ47fM+usiXa4A2Co=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PoTjX5JUmRzsaa0P9y56kJydskXtPGFPN262bWdaHgDQod2o3roC0PZCNerABsCwG bfYoknQIk2nufau511D9CeAz99/c+XBDYy9O7yS9Z1jFNFtUA7xvKQxJ/mBKdpOcAQ 8oBKA5LroCCkdcvSrmvcnHz8S4wEMgGzlbJBgQOBAwfoqFEvq51qHBY4tBRmieeKdp K1V/z2yZw+dZ7cxWukX9RlSxbg26oONq6miKxZS20ViA44IL5h1YPGHEH4QM1NDmps q4uBHpt3fB7RefgLPmbmEkh8QFaXUgnwKcsoM6Ruke9SxJbcWtDtjMPnbo5XIn7C6E 5gAsmHwkNvlMw== Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d8a24f8a3cso35625111fa.1; Thu, 11 Apr 2024 00:15:56 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWrA+GcYGtmGo5jFBzRGVVqOYE67safUu/mkyLoBD2mX67rtbixn8vJrd2NrQDjrVP+dXRZnUudI/sZHZscMtUEBVfsuA+LMMyP0sl0+hOJd+KUdqmZZQRBsmxVoN0nNuRS6g3c5XX2ZA== X-Gm-Message-State: AOJu0YzTsuzoZEWAdmkBwpMjtZPAe7w9SMph0oy8/xL+TgzvXoZ1sXdl 80qsmm3CsrwZyc82OzlIzHDJffBKNOwPmhL54bKRVIDiXLIBv0LWC5lH2PlOEp4DLtgPjLZJV8l 4BuLj1q/iDCmhiuwv4yZ2dYZPyn0= X-Received: by 2002:a05:651c:211e:b0:2d8:d8b5:73d4 with SMTP id a30-20020a05651c211e00b002d8d8b573d4mr2830394ljq.4.1712819754902; Thu, 11 Apr 2024 00:15:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240329072441.591471-1-samuel.holland@sifive.com> <20240329072441.591471-14-samuel.holland@sifive.com> <87wmp4oo3y.fsf@linaro.org> <75a37a4b-f516-40a3-b6b5-4aa1636f9b60@sifive.com> <87wmp4ogoe.fsf@linaro.org> <4c8e63d6-ba33-47fe-8150-59eba8babf2d@sifive.com> In-Reply-To: <4c8e63d6-ba33-47fe-8150-59eba8babf2d@sifive.com> From: Ard Biesheuvel Date: Thu, 11 Apr 2024 09:15:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT To: Samuel Holland , Arnd Bergmann Cc: Thiago Jung Bauermann , Andrew Morton , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, Christoph Hellwig , loongarch@lists.linux.dev, amd-gfx@lists.freedesktop.org, Alex Deucher Content-Type: text/plain; charset="UTF-8" (cc Arnd) On Thu, 11 Apr 2024 at 03:11, Samuel Holland wrote: > > Hi Thiago, > > On 2024-04-10 8:02 PM, Thiago Jung Bauermann wrote: > > Samuel Holland writes: > >> On 2024-04-10 5:21 PM, Thiago Jung Bauermann wrote: > >>> > >>> Unfortunately this patch causes build failures on arm with allyesconfig > >>> and allmodconfig. Tested with next-20240410. > > > > > > > >> In both cases, the issue is that the toolchain requires runtime support to > >> convert between `unsigned long long` and `double`, even when hardware FP is > >> enabled. There was some past discussion about GCC inlining some of these > >> conversions[1], but that did not get implemented. > > > > Thank you for the explanation and the bugzilla reference. I added a > > comment there mentioning that the problem came up again with this patch > > series. > > > >> The short-term fix would be to drop the `select ARCH_HAS_KERNEL_FPU_SUPPORT` for > >> 32-bit arm until we can provide these runtime library functions. > > > > Does this mean that patch 2 in this series: > > > > [PATCH v4 02/15] ARM: Implement ARCH_HAS_KERNEL_FPU_SUPPORT > > > > will be dropped? > > No, because later patches in the series (3, 6) depend on the definition of > CC_FLAGS_FPU from that patch. I will need to send a fixup patch unless I can > find a GPL-2 compatible implementation of the runtime library functions. > Is there really a point to doing that? Do 32-bit ARM systems even have enough address space to the map the BARs of the AMD GPUs that need this support? Given that this was not enabled before, I don't think the upshot of this series should be that we enable support for something on 32-bit ARM that may cause headaches down the road without any benefit. So I'd prefer a fixup patch that opts ARM out of this over adding support code for 64-bit conversions.