Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp171940lqn; Thu, 11 Apr 2024 18:54:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVT2rz6ecaPODfLge4ZvZt4TueN0vi01ZU8zm9vnVUot/4jMIFZqfA6CHxYlXryX7MX+cr/oPyxbX5KDeCaI7s1syLjiKGrDFdnTJM+Kw== X-Google-Smtp-Source: AGHT+IFhQNCxv9Zm5yJTLWDpFET17eiYSoOJm3RBeywztEq/zsGbg7Lg4HmFgDsNvy297v+QWKjR X-Received: by 2002:ac2:4a61:0:b0:516:c1b9:316b with SMTP id q1-20020ac24a61000000b00516c1b9316bmr901170lfp.15.1712886887590; Thu, 11 Apr 2024 18:54:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712886887; cv=pass; d=google.com; s=arc-20160816; b=tYweTKJP1lO8AH8250JtTO8gM3wRFlSs4+Ma1iiEFes6LtGKN87TayPh0cOwQmi/vy qO51GLvgPbOAFxe4bhB1HohzrkiVHNWYn3HT53+1ddc/fEgiAk6X0JGhrCrYC0j5/pt9 dFiPfzq0es/MfRQ4TNOFmq9XvgZ3BA4MW6SQy/cdasRSNxjl/2PPDHOQQj8Z21+Ejl2D JfAdzC/k4XDNt9GiZh5UI/aAgmBVJRMUu6c8Pe4tPxZ5ml6Eg5F92pW40JL1EH38Y+FW ecJ8O5+2J/E1VSTkliQrXnFikEil3tXowWKiw7ZLW9iCJjZDTPfsTe89LdiDc6PxYnai oBFA== 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=y4vlt8TB9yDjErxa7aoPppj34TQs7XIg9OjF7nGdMbk=; fh=AWo/c3Kyd8Q6nXW7d00yXI+A4bRjKS7sut0gmGtvTSo=; b=mMXzk5J11fxM4Jl7kbxp6IugTfw8iiG9iFv/iLzC+N3JZWmj8pvM/Wuo/XGKkL2VBl Fs2Ztehpw7/ixOfvoIF6plEEr8rFyEju6eo1W2XMs/u+SJXjErcZSryRbpuiSNSbaMY6 yGuXqJysdwNkAPzJtlTHOesCNPbJCWIx+yHw3yARN1KS2GQx8gflWc2IS9sdmJC6SVGy vg0EMozz3tZe6U5P5N2fs9IbwTgzHd3KMUzI9di2PZpw4cl0IcCJrskcXS0FSQOmmd/x 0pVnfWNA+jCMkD+3lfv1rC+AXeW7CObCirxGhGdoncUZ0Apfr+Xyxa+hVVK8k78clcQH fV4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kdbONLGY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-141790-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141790-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t18-20020a17090616d200b00a4e05f6a457si1237430ejd.935.2024.04.11.18.54.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 18:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141790-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=@gmail.com header.s=20230601 header.b=kdbONLGY; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-141790-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141790-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 3EDAA1F23726 for ; Fri, 12 Apr 2024 01:54:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70F79D299; Fri, 12 Apr 2024 01:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kdbONLGY" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 1E20C53A7; Fri, 12 Apr 2024 01:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712886879; cv=none; b=iYBbYQt28FoCSqdBBqTaD9j3Nju9meZOoJv0gPImf0lKIRs15ox87HhJ4YNu+jjtho9KzvUE2pUONx0//EYfyjzBJ/reKR1FLmVmfPAolLeiukDocR4vv5at29wmHJbWjZdMzS2lJsng1pnKGnzOqvCpwF+KmSu7JhhL5OJRRKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712886879; c=relaxed/simple; bh=y4vlt8TB9yDjErxa7aoPppj34TQs7XIg9OjF7nGdMbk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gIGvdWT8BE5Yf+wceiyPfbr4z7uWtdzjoB//mOuIyjZr4Kw1o+zPEseQr8U7ZnOxFbXuu9/vCEptHFPcFszmKPjOlary1qRwfhg8UzE3TMx92fjnM0AMwRe6xxdnb0ybflM7b4oIkdRGBf1DcWRzgmTjynQ8PMPtHBGDsm+Byx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kdbONLGY; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-346b09d474dso363183f8f.2; Thu, 11 Apr 2024 18:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712886876; x=1713491676; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=y4vlt8TB9yDjErxa7aoPppj34TQs7XIg9OjF7nGdMbk=; b=kdbONLGYw2QldU//Gv4Ys+kJRUEYyE1Wkx9stlBiRwEA3BetUjUy7y2Gg8nnVxHtvC 0pXPmsdzzacgTPR9NmR993Ump2WWYyJwdG5+K2EZ2w2s6nY3MvjLgexU6tX8Hx7by4XB 2B+UzHDbNTYp+uZBVmCa30o1nTv3LWe6wdDXjpCb6LK7C0+ypf/UBbG8bbnHipw8hUTJ 8bzTRflt74OEd3O2RYQHuuk2PQh6Bexe+QuEdkpo4Mb83IZlaO0FhWRy4nulfPId7BVT y4c33ws+NE8f1HyOGAAjeJACZBIYI6GRZ+PbRBzhE5Za/jexbvwiULFX6iFFYOcga8ZB XCuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712886876; x=1713491676; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y4vlt8TB9yDjErxa7aoPppj34TQs7XIg9OjF7nGdMbk=; b=MVy98J8kdp+YYIOYzzRtVjsE0rJbR/J4Uzp7o4FPCoqMejHAYslhgM/IjR8ITLx4U0 f7ZNFdIt1KWWFEtNq3DOe1YDCFuK/y22TaaKvVZIGihEFvKgArzNZI6PvkH1ublYNx6l 1z0yDeRl63OoY7k9v12fvvHLDU38lMP5MJHmGpQBYuHtYqb9CcZB6GVCR2p+FrY2zE7Z KE8+tGw604ZmFJu9nQhsY2Rv7qZEHEGhHfTLhsEwjrIBfhG75F/2/d4POk6ki4CPbvkZ CDBN39llaxrBznXNXSCvJYWbnGhtVsXp+Sq/lkxCDO/u3D4NRvnkDcY4rL2E2URa/lGz q1cA== X-Forwarded-Encrypted: i=1; AJvYcCW5x1fawopXJpoluSTsfIHvpSLEkIxw8ZGEuQ+hXhwgx2AWtMJR3/EpzP6ZGasBkUxcN4M5NyiiiAE56NAHrWEzfQEalR5o6i0MSkzaU/Jkp27fF4HRbDYMRG/cmUtCq1osqZc0exrR8Q== X-Gm-Message-State: AOJu0YxTdC39WWyCmGBK1x+9QA6pmeg2WNZTYLc7dLicm5eT8KUA9elf XRO0tJLhIE0gsio+OnnTeo+qTE4AguL9z4SMFbL8XiaGn4RKRfdW5onGQr2k1t5AjzvPo7YMMny 1+EVKf0weLc6clnSz8zhAx70UKgm6DMV6 X-Received: by 2002:a5d:474f:0:b0:33e:ca28:bb59 with SMTP id o15-20020a5d474f000000b0033eca28bb59mr856430wrs.57.1712886876424; Thu, 11 Apr 2024 18:54:36 -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: From: Dave Airlie Date: Fri, 12 Apr 2024 11:54:25 +1000 Message-ID: Subject: Re: [PATCH v4 13/15] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT To: Arnd Bergmann Cc: Ard Biesheuvel , Samuel Holland , 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 Content-Type: text/plain; charset="UTF-8" On Thu, 11 Apr 2024 at 17:32, Arnd Bergmann wrote: > > 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. That would be nice, but it won't happen, there are many reasons for that code to exist like it does, unless someone can write an automated converter to fixed point and validate it produces the same results for a long series of input values, it isn't really something that will get "fixed". AMD's hardware team produces the calculations, and will only look into hardware problems in that area if the driver is using the calculations they produce and validate. If you've looked at the calculation complexity you'd understand this isn't a trivial use of float-point for no reason. Dave.