From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7BB63201 for ; Thu, 11 Apr 2024 01:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712797334; cv=none; b=Pi960cFTGGTsH6x8+HkZbP9xQN8ng2LqK98FNXZ0XYBzYvAcUjtKZsVhrTf7FapwAVEwZAF2oVVOM5BTSFG6tCrhixtX/8qyEAHLAOvy8U3524JFf45O9sMNg6aSobQqso3N25j29hamxYNTnKUqimukmXsltJkZQ+nsXfXzTCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712797334; c=relaxed/simple; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=S44Kh4lBmnEpDThWMieu6GKXmox5EufNjab1jZ/Eqg/H9IGjEeotlfdEC3hXzHdl2BQ4O28DVbvNAKLKGNu2m9+coB54zwtPp4Ec7EryQk4P2hBpY1Sg+6YNTo3g6B/7gbmhO0lasLHFlI3js2qBPwCkrBR2N2Qf/yrueo19Uos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ErkRUmks; arc=none smtp.client-ip=209.85.215.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ErkRUmks" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-5d3907ff128so6035972a12.3 for ; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712797332; x=1713402132; darn=vger.kernel.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=ErkRUmkswlG2WpWs3Nv1ctlIYWScrZti+1b+RMFRtawck0PArWsHFGqS2LbufRED3Q vs9kmAdxrLeZQT8WSLv4dJGorzzy6Po/6wGcR8RuwpOlUSK1in+eBBUXBj2g9oPeU1Wn ZFL/jkdWRE9DDnW735csFbN5sNgyGHFrtYZrif8FwK1uziNT7ddxyTRLp32h4IfoajJ1 mX0nlVoveEiNv/hFp1JXlGv7cHRgTQHoLxOIYW90bV0HnVo0lEjmZeVIxhAInHTqqSi/ 6icYq+SffD2i7bUcUKJQwG9hzRBMe2BrCcriKOpyuPrlzKVxSvzjXmRuaUYuxSRceBZ8 9lzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712797332; x=1713402132; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=a6XcrzQ+F/7oxw9HBYIzw4vsQN/EYC64rfFkRoPM++EKPy403H7nkKDH7/Q67kBucg pGh2/sDLUzhdwl13GgKJ4gxYsU1RJtaMNIc+4Kkv/pwPbinym3IkmaLxkTmUDegW6Ryv CABGaB/eahyzr+3d4xLtt54+ImMlvSSf47lc3wIwBvkkD3zCJ0Qey8mDO8Ybp4xkeIuF eL/GdkfAgBIv5wkYaS1Or6TpU6B58w/2P/esk0AMsgQ9W1CI0BZzvIUEdMJasr25dteC zXfJDuiUvZ0ftXrGcRIKaNPMAvxNb4Tbg84Mdf/ujIXEMnWWjmSL+jhUt7N0OvoVwtZ3 /kBw== X-Forwarded-Encrypted: i=1; AJvYcCW2bUTMdpzTNT6xiLlwlb7y+kF3kujgiXCErgxJyNrrKq3gHAAdXOFh/vCjZSlbpW5avx2cA6GKo+omRXboRDNMYIzQmUM1K5Qjwnrp X-Gm-Message-State: AOJu0YyWWJNCQYpg9z2ssJ4O+pYn3vYfkEoRE9MKzu8YoiA70JCn+/5Z 6Dg7ETMDVWzPJPjPXAloh0D7jqCK/AnwGv718ewBfn00bfbgh5qJMHGr4Dos8dk= X-Google-Smtp-Source: AGHT+IFCQFsX0y012c0RYVyy1pzruF/1YvRQvQO3mIZBA6xLw4Uhegn+z6nHl9NsGJg7fqoOGUPO2w== X-Received: by 2002:a17:90b:3643:b0:2a5:608e:1012 with SMTP id nh3-20020a17090b364300b002a5608e1012mr4531315pjb.21.1712797332116; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:fcac:9b42:fe81:c62f]) by smtp.gmail.com with ESMTPSA id q4-20020a17090a68c400b002a22c8e99afsm248176pjj.12.2024.04.10.18.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:02:11 -0700 (PDT) From: Thiago Jung Bauermann To: Samuel Holland Cc: 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 Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT In-Reply-To: <75a37a4b-f516-40a3-b6b5-4aa1636f9b60@sifive.com> (Samuel Holland's message of "Wed, 10 Apr 2024 17:47:27 -0500") 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> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Wed, 10 Apr 2024 22:02:09 -0300 Message-ID: <87wmp4ogoe.fsf@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hello Samuel, Thank you for the quick reply! 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? -- Thiago 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 84A57CD11C2 for ; Thu, 11 Apr 2024 01:02:23 +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:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Lm4n2LEbweCBz1lX3GGXuAYRsXbCwFnAN43kBmQXbVc=; b=dw+bk1DdXteVc/ 8lOdIZ7EBSMrHwqJ4RQtSGg4c1BOmhrRPveN1kmoOPFl6diN74MRBBk6ifGJjAOdMq71k23lAtyRO n5vwZpW8HPKsgudr5zXFJCScmNz7Z0JXV8aZPpadG/kDrkdHehFOWQrjXaMfAbBJoXlPjM5wV/TWH Szs45uqiH+BeWYJR3beIeYe3DQ5rrsiimjERtoyieVm9DB/+iLOGHPd6RmIgy5Aa0csXw0wOM1kLZ jl9SqUifK24b1RmQBP+i+cloz3mgW82WUPSaC3WuMUmbOgo3SnsVWQiSefBWlBEtBEm3MkedMbIkY /59K46zYH7u6aT9FyE/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruipW-00000009l3p-0cSm; Thu, 11 Apr 2024 01:02:18 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruipS-00000009l2l-3Cli for linux-riscv@lists.infradead.org; Thu, 11 Apr 2024 01:02:16 +0000 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2a54fb929c8so2177555a91.3 for ; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712797332; x=1713402132; darn=lists.infradead.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=zSI/UJZmukzYk7dQMCfhQF4XooezOwFhhL4zJblr1pHjo9rxaVc3HfXkIGfPNbF5Hv MIhDqj+mv14Hjj/vjMxCeU8EmM0XGB7tbC224wUumbJ+DhRbL6QarzIxxidhzxV5nf+R NH95kJV7766mVIqo9mjVckbKtqmXKAUEaRqAWHex8aC0POOw08kkF6u55AKOxvU2Ordz qDANcBdqUrWxUJ/6CDAPCiELEZCA+NyDHKo0UkldzSbc64B0aB6tD3tyFGQCQWnUWHma ZgBp/CEKAhjE1d+y9sYWMeOH7B1RthnAKL3Cf9VUJoyhRJJC7/C6IwtJRz/z3iCflNG3 ZN3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712797332; x=1713402132; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=njVI5gPTmAJzLrResu7kdrt/CwWMa+cyYG2PuMpZhbtdFX2vadwGlLU1Fn+C1zZWU4 1fKxKv8SU2tKrGKs2ODsGS3UVAXi/Ycvws1wZ+KfYe1cMPJ/SMInTnJnPbaGE4UQmLQO 4LIPoWAfAV+FloD0vbCIqk8eQFtFbxcp36L3KkBBx8sArfVCn/27eAxEJniRlJ2Ppswi k4jd6OzaocTMhNBCMrVibiaKpiuPicqfp1GK0Fb/2bkv6/hLniQ7XoPvwmZWllSOvmRF 6mNR3kjUR9AvNsmR+YCeK6EbQ9fln5MO0AESSjAkkOfDpzgeCL41jFcHt/A7yfOBmAjY cmgw== X-Forwarded-Encrypted: i=1; AJvYcCUGr2yp0qliudR6a3EhO/7VXCToFAtQuiMcYo0gSFNYDY0v7JzD2SEtvug0qtF/XnlSatYaxBHabRs4dK1MjyOiSg2RCdqqwzFR1xYCqbpi X-Gm-Message-State: AOJu0Yzo5XcK2hPgLWv0Oezmj8psFFCNNQBBCTWJAu1DKcJCedoXwctF AjHV21UOfnGFvI7jUIQ6ppsAanXr6msoq+O8TRqQl2U/Y3JhDj17KZPrv1aK6FI= X-Google-Smtp-Source: AGHT+IFCQFsX0y012c0RYVyy1pzruF/1YvRQvQO3mIZBA6xLw4Uhegn+z6nHl9NsGJg7fqoOGUPO2w== X-Received: by 2002:a17:90b:3643:b0:2a5:608e:1012 with SMTP id nh3-20020a17090b364300b002a5608e1012mr4531315pjb.21.1712797332116; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:fcac:9b42:fe81:c62f]) by smtp.gmail.com with ESMTPSA id q4-20020a17090a68c400b002a22c8e99afsm248176pjj.12.2024.04.10.18.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:02:11 -0700 (PDT) From: Thiago Jung Bauermann To: Samuel Holland Cc: 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 Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT In-Reply-To: <75a37a4b-f516-40a3-b6b5-4aa1636f9b60@sifive.com> (Samuel Holland's message of "Wed, 10 Apr 2024 17:47:27 -0500") 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> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Wed, 10 Apr 2024 22:02:09 -0300 Message-ID: <87wmp4ogoe.fsf@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_180215_231387_AEB28691 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hello Samuel, Thank you for the quick reply! 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? -- Thiago _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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 1E6C9CD11C2 for ; Thu, 11 Apr 2024 01:02:31 +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:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A5HttBtAXV/lZrN5haETIJXdUqAuP6fjOs8rZL9cNdU=; b=tq+fDteGActoTG 2o8BEIFadPJC9x491SNjKcz9FNPSOWeEiduRTAkq7OTH4zIJ8MZd2X0jzDWXpmJKknIYwegDyF79v j99UMxthDRTe//0le3j1FxElFroWqo6RfiI8vmeN9PFmZuRSqiqqh8M3vvUdz2Iqt+LgbuquTlp0J g7fAMbC77xrM6eqMI6/v0dAsHN0Qu7JpelOO72IBjf6Pdm/J84hTBA52efVBe9dTJly1VULp7ZKg/ gyUwbiyhSvL3lFE1i6tRqut7nAa0RMq41AqNsibsYrk76+DxiPnFJcjQ5PCta1UdhoStEwmopBCNJ +Htd+4RZNJEX+XN18P4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruipV-00000009l3h-2JNO; Thu, 11 Apr 2024 01:02:17 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruipS-00000009l2k-3BRs for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2024 01:02:16 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5d4d15ec7c5so5756426a12.1 for ; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712797332; x=1713402132; darn=lists.infradead.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=zSI/UJZmukzYk7dQMCfhQF4XooezOwFhhL4zJblr1pHjo9rxaVc3HfXkIGfPNbF5Hv MIhDqj+mv14Hjj/vjMxCeU8EmM0XGB7tbC224wUumbJ+DhRbL6QarzIxxidhzxV5nf+R NH95kJV7766mVIqo9mjVckbKtqmXKAUEaRqAWHex8aC0POOw08kkF6u55AKOxvU2Ordz qDANcBdqUrWxUJ/6CDAPCiELEZCA+NyDHKo0UkldzSbc64B0aB6tD3tyFGQCQWnUWHma ZgBp/CEKAhjE1d+y9sYWMeOH7B1RthnAKL3Cf9VUJoyhRJJC7/C6IwtJRz/z3iCflNG3 ZN3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712797332; x=1713402132; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=J6trS0MnIlQYmmLOOu+ZjIET9Cz+1I15uEdi962Q8HRMZYLNMoWye0IGCKxWqXLQk5 2A+tRxrLvsjQc3f9P3WtLNRQIOtqWswfo7sxC3DbFdcTPHKYnjFMXlycY3qWgCSI34t8 xDT+4deIxmKfgEJtimdTYprvptBZECqIRPOQaAdhvdmX5W2rUyVplLaGnpqtfgiQG5kO 2n8XD30MfsMzl6eAfaYNL99uplB2cum5FBzf+VaHU8h+jihly0CU/JQ/bDtjKrxj0mHm 1rfCS7+cyPDRfGXAdflSnSNRg45RsG0xPfe8sm7G5yPQOxElxTtfmJE6LlM3lKiX2veu TSxw== X-Forwarded-Encrypted: i=1; AJvYcCVRCN8S/TtJcf2BZnyzGX0z4KvC1s+zDSgI7vkETfxU9PtJ6vnrQpW31Dje7GktZnM/xXwG6ePOQUOhNOFeCEe2ZmaNwSJvz/vqlxHnt58I8WFqhgQ= X-Gm-Message-State: AOJu0YwY8Q2M4iHM6llPCFGgB+y1eUoaPK4m4aS1g5We28AJ9jT9RVlp PpXknt21J3cizV1KaSgVuQT4ktZK6q6gJg1/4LZ67UgORcNI9iR48i5WPS2G5JQ= X-Google-Smtp-Source: AGHT+IFCQFsX0y012c0RYVyy1pzruF/1YvRQvQO3mIZBA6xLw4Uhegn+z6nHl9NsGJg7fqoOGUPO2w== X-Received: by 2002:a17:90b:3643:b0:2a5:608e:1012 with SMTP id nh3-20020a17090b364300b002a5608e1012mr4531315pjb.21.1712797332116; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:fcac:9b42:fe81:c62f]) by smtp.gmail.com with ESMTPSA id q4-20020a17090a68c400b002a22c8e99afsm248176pjj.12.2024.04.10.18.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:02:11 -0700 (PDT) From: Thiago Jung Bauermann To: Samuel Holland Cc: 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 Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT In-Reply-To: <75a37a4b-f516-40a3-b6b5-4aa1636f9b60@sifive.com> (Samuel Holland's message of "Wed, 10 Apr 2024 17:47:27 -0500") 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> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Wed, 10 Apr 2024 22:02:09 -0300 Message-ID: <87wmp4ogoe.fsf@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_180215_228764_9E13549C X-CRM114-Status: GOOD ( 13.24 ) 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 Hello Samuel, Thank you for the quick reply! 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? -- Thiago _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 914B8CD11C2 for ; Thu, 11 Apr 2024 01:03:01 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=xNMmRbOw; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4VFLz76H9nz3cPm for ; Thu, 11 Apr 2024 11:02:59 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=xNMmRbOw; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2607:f8b0:4864:20::52d; helo=mail-pg1-x52d.google.com; envelope-from=thiago.bauermann@linaro.org; receiver=lists.ozlabs.org) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4VFLyK0PJhz3btk for ; Thu, 11 Apr 2024 11:02:14 +1000 (AEST) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5d3907ff128so6035973a12.3 for ; Wed, 10 Apr 2024 18:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712797332; x=1713402132; darn=lists.ozlabs.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=xNMmRbOwfIvmBJkCoGS4+zS5xIFSu1zfPW3QdND+7nRJhPlEZrw3GJ3T3pA3g1Ksrn sP2G5AKw2Cj3jpmnIVxkn1v1Jb6wDfk6pK4QWLIYj2Ouey8qEcy9cdqnv5xH7MYVkX0n QM/XS9EHLfUvayv4lZSkbKJPSofoR5WWGk7eJPUekTsVbozV8bAn5wPqHO66oKK5Q3b4 V7+IDdFobFui8lxCNJr4GCkBoArdtgHZ3zcobfRYTKt7i1gvzio67aNZJgNdwSPYB2as kL5iu4Xyz2KF9u+wkxMQr4JMhbnriwhIX2w1/uoIU3GuOz9sCU65Tj70Utbf+Ada1UGV 0N2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712797332; x=1713402132; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kLD5kpB2LP2j5uUBOjlchyyyLOgJsQ4KSunDLcwJfvc=; b=Mi7j3gfZo/Bas7/z8862ITNz9Tx/IozTBGsazvz/LpB9SqyMIR3bW2cytak8XshKDq t4jrs5kd80qOseKvBSqsOjFPUW4VVKu+wwGuHvae3QSgOmvovCdvtcHziC7WHAfNdQPz A5BfBJ1thKSFNKuD0i+82ZMgouvbcXFs5yI4xpqGGthHvuVnHnNdistSfIF3SRt2nDw7 OOd6ZJy1JOhtTbuK9R84f/UDfa+qwcVevidJRtRPEtCiidDweBkzk2meoAyiARkPkZps LQtJMtFdhmcV/uslY/XcPL5D+lLvDdg9VnfT6iuYVUQEPndzjiS2zTtDpzHeVklrpg50 JaQQ== X-Forwarded-Encrypted: i=1; AJvYcCWSrFFfyLm8o0NH/NYYAMdRCtyCIFGPZ5/BPCPWIurrE9noMJ4T4iLFtF8N2Ly+B3He7EoswYqYM9K3DgK269JFzDKr6GMy6gbQqilp2A== X-Gm-Message-State: AOJu0Yw/fBQXhHpfc/6pOR78L9Vb+3uCedlf9LV1AF6LeZYacQdJAw3H +wK7C6s+LuZHSaYp7GZCz/oCeDv8A180C5ZOjWbG5jl8eYYkZ9VeuC6ocq+nF4Q= X-Google-Smtp-Source: AGHT+IFCQFsX0y012c0RYVyy1pzruF/1YvRQvQO3mIZBA6xLw4Uhegn+z6nHl9NsGJg7fqoOGUPO2w== X-Received: by 2002:a17:90b:3643:b0:2a5:608e:1012 with SMTP id nh3-20020a17090b364300b002a5608e1012mr4531315pjb.21.1712797332116; Wed, 10 Apr 2024 18:02:12 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:fcac:9b42:fe81:c62f]) by smtp.gmail.com with ESMTPSA id q4-20020a17090a68c400b002a22c8e99afsm248176pjj.12.2024.04.10.18.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:02:11 -0700 (PDT) From: Thiago Jung Bauermann To: Samuel Holland Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT In-Reply-To: <75a37a4b-f516-40a3-b6b5-4aa1636f9b60@sifive.com> (Samuel Holland's message of "Wed, 10 Apr 2024 17:47:27 -0500") 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> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Wed, 10 Apr 2024 22:02:09 -0300 Message-ID: <87wmp4ogoe.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Christoph Hellwig , loongarch@lists.linux.dev, Alex Deucher , Andrew Morton , linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hello Samuel, Thank you for the quick reply! 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? -- Thiago