Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp239101lqg; Thu, 11 Apr 2024 00:52:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq/gEB441tx7l4n1sfUuqTRRx/dunLZWfD5YI6j9ZH1Kd752u4oz991X0hcpfk2l2RFu7ZO0/FR+nCwN2Rf9jlhCkL4Rk+DF8QXRamIg== X-Google-Smtp-Source: AGHT+IG7hAt8KqmJQEesTeu8FefHt2Kcn/kkk2PCrxrHaZfvu+7w5t6oalUs28IRG0uzA4te8VUG X-Received: by 2002:a9d:7f94:0:b0:6ea:767:9dc5 with SMTP id t20-20020a9d7f94000000b006ea07679dc5mr5403250otp.3.1712821923114; Thu, 11 Apr 2024 00:52:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712821923; cv=pass; d=google.com; s=arc-20160816; b=Af3/W1EFP+sq8IvV630QbtZPRsJP+zQ5vn5MYkWA8LXDA/33chGzz1JmKxfaK8/ZMd I1pnD++BBWNgy2M7KBBApZKWW02NnzdvBIt/rCt5vcPJc6VakFrfEmPhcR3gpRjvMJTs byUikGiYnsWdY+jp9lUMSHR7lxdp3s7tJoTcZyp6bURv+zNPgc0rFzBJDDSP7gvCCVNS mXsCwblAdmnPRefMLG270x14xZmo1UFJx8ixzSMQSy/Me15WKMU9Uk6ZJOR0F7NWT+zF WXRdiOTcxQhcjiPGTwgWcXfGEsR9YlZBCCEWn050vREZHCIlVEhx97n99Xvh1zsvUk8v YxfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=ss9obh18SkiQHEXzh7qcLFdvdlxpa80B0Z7MJyyJWOs=; fh=qDUnij7U6lXxcErFXHaIFoReVt2XFHPFhE8yy4Mr9Z4=; b=Dv25MRP7RYFUOUHrn4IAEuyOkCsfaBi25kKVQBZqglftYI08Uu7AEZI/437P5l6eQv NcSrKbmGiGgUOmHltVHaWuLFZtw/Hyvmq0ihoeSYmfdlxwaDp09G8pDdOifvv/vXS2d4 NC8qGAmQSyknkfrOkOEaleCdP1aFcjagawJY20kErKBCTB2hha4knxLvyk8Y19k/Rk44 3c6mVK1r+NgTcHT+tqdQkeSbbCpaZICen8sQapIcs5n1uSuk6y6xrc/Qoo9r7fvimROj VGK/MWd19RvxJe7puVyrUoUbsjKU2x4yKyL9+AnT+lK1mTzFxzxkApgPLgMyR2L7YdFc u3ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=fAFRq2a4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DzSFGGOr; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-139971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u20-20020a63d354000000b005f0793e3ca4si810753pgi.275.2024.04.11.00.52.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 00:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=fAFRq2a4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DzSFGGOr; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-139971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 32DA3B254D3 for ; Thu, 11 Apr 2024 07:32:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34F8F13E416; Thu, 11 Apr 2024 07:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="fAFRq2a4"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="DzSFGGOr" Received: from wfhigh5-smtp.messagingengine.com (wfhigh5-smtp.messagingengine.com [64.147.123.156]) (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 8A15713E407; Thu, 11 Apr 2024 07:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712820712; cv=none; b=hSnhnWhShodI7T9aFqlS+GL6OLNz4DdlIB/Q7kkI0OdfgpfY30hC0ikcYAjqRa837hKPhwOjpAxSqE5/ZMs9k4PZXK6pppSMWS+Zcj+kkGT/qAMoyM1nHMG/Xc5wnCGohkO+2SHTm1ZSYgw0HwQXCUvdQ5aAG7G4uEY5DO2ySko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712820712; c=relaxed/simple; bh=q5rsC/05nhzdHrqrF7mVpbW5ArjHrqlJx/EHmQo3OnI=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=HgrBE2pCtYLSm8+giKhZuuMTJQRjh+iV1jVYD/MnCjnGgomRUikJNlCcBfwGuXAHti1XfGOow5EpR2/iAuBp7X08thFjXNvAMLSz49H2n6zSdyTipFDoF/OjT5H81OqWt000+0UoW/hvDVvORGCTCO4BobZF+91dE7EnFXpTyH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=fAFRq2a4; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=DzSFGGOr; arc=none smtp.client-ip=64.147.123.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 81E2218000CB; Thu, 11 Apr 2024 03:31:48 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 11 Apr 2024 03:31:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1712820708; x=1712907108; bh=ss9obh18Sk iQHEXzh7qcLFdvdlxpa80B0Z7MJyyJWOs=; b=fAFRq2a4RR5m0uoGjxvbSDZhhg XBLt22beIqBHO1PhCVLZIYorAfbGnpIs6i0KjnrNMag6CtHF8mAtIX4+g4JkM/y4 oNakw3qvrAtMITJTRe3dP5XCRbSlUNRMtgb+FJogTSdTceTcdRzappHrax+eWmGC C48KZTiW2+745Tpmz56zPJgFu5sXmnDOXQgOHhBxECqtppJaW42Os3TNEDRkpPfI 7xKy28dP14Q+rdv1IglqoN1MM2Wo71oJ88dpxu76wssTF5yL3dssA5ZNSuq2aEsa sQ7EBo/MLbjI9e+DTEeltLlDImftLLOUzlWPomQgt5r5GI+C7bz29lbepBoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712820708; x=1712907108; bh=ss9obh18SkiQHEXzh7qcLFdvdlxp a80B0Z7MJyyJWOs=; b=DzSFGGOr+zqR4sfSmeOxAZvA6tvMP0LGFanC2+BgYdJy +4hbOwbt0daWkKElaJ7hw1qTgNt7659JrHfKx7+c2NRv2nXqcVlsOuvhc37YXOZ6 /5MKG6iTFCQ6aufnWu+0iv1mQHtdHJ4K9QX9ZNac5sLfv829dYcU7OrtBhvzAPeJ qvI5fpyEZjo1rJqt0In+B4EMVZTz3BIN6xIPeqBy76lVWIdHpPj7mI1hWq7dyIWT CnWqJQpCHMCE2NVdUfy2AgXYjJNlhFvPsLF/BoiRix4BR68kBN/e6viA7DoExAkP 1lsK1ob4cyEjdsraiMT0hwoBXzOe78DNkW/8wTm9dg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehjedguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5E761B60092; Thu, 11 Apr 2024 03:31:47 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: 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> Date: Thu, 11 Apr 2024 09:31:27 +0200 From: "Arnd Bergmann" To: "Ard Biesheuvel" , "Samuel Holland" Cc: "Thiago Jung Bauermann" , "Andrew Morton" , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org, Linux-Arch , 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 Content-Type: text/plain On Thu, Apr 11, 2024, at 09:15, Ard Biesheuvel wrote: > On Thu, 11 Apr 2024 at 03:11, Samuel Holland wrote: >> On 2024-04-10 8:02 PM, Thiago Jung Bauermann wrote: >> > Samuel Holland writes: >> >> >> 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. I have not found any dts file for a 32-bit platform with support for a 64-bit prefetchable BAR, and there are very few that even have a pcie slot (as opposed on on-board devices) you could plug a card into. That said, I also don't think we should encourage the use of floating-point code in random device drivers. There is really no excuse for the amdgpu driver to use floating point math here, and we should get AMD to fix their driver instead. Arnd