Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp47721lqh; Wed, 27 Mar 2024 14:25:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBVUAL+Vx4OubxL9AS3TUKV1lVENOL6o0RF8gNCv+M5G7Z+7kWY8iYbUBWPhQ16sT3veJ2n+tebnokeW8JJWASfjMDZ0hr72e9eUSSQg== X-Google-Smtp-Source: AGHT+IGZ6zua2uvJ95OOBZiwUqZHi1s8Ck+sK++gdcbNvC9YWkj11+I+vHmTyV3YU6DpIAsla5Nw X-Received: by 2002:a05:6a20:158e:b0:1a3:df1f:b272 with SMTP id h14-20020a056a20158e00b001a3df1fb272mr655470pzj.14.1711574732268; Wed, 27 Mar 2024 14:25:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711574732; cv=pass; d=google.com; s=arc-20160816; b=FqmzlsL1iXAK0wpWE2TK7ugCcuEK8P7f9fEo/ZI9P8Ni/xWR7LDvcuFvJND6YFWuB6 d23lhcPc/Kb05+sHN5Rv9na4eEY3zx4pm3gfSghnvjLxkiVqVVDkUlIM18vfp2fnf12t qY0SRB1DynuLZh5f1nRGCfKNnpQayIZ5l6VmTuwqKXtQHqIZxxb7X2iUheVP6OTO8CHR l1yjVaHIORPtRWDib5F5oJrHR7yBUR5BYWwPyMBZkUwWiJkMcII+9wUTKK6845Bhil4e SDqaJxWdNH1maqpHgSj3JhlZohVo40vDHnzLYdkw2XuKE+DRXAMSCd6kh3MlgL2Cuiov 5Tsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=R7d1PqsrXf4qaqQ67II0HhFJqMD41e5x9N9K7GsGje4=; fh=5KAtDrziECLVfIi1eZ9lTmh6pJBiW93CmIFlxyBB8HI=; b=JuXrhO3w28S3X+thIrnhLki3ABLVJ2PytS5ZzP8XEXX+ceDhryZnlk4/qgbBizzT9L S/aKMdrWN2uWyq9QkRFDxAO2XGdHQ2nSxCVF9JiE7I6Y9K7DnfvdN0OVz8x1zUtUGeiY +aBRkzTY3qLcwiF9Ugb7UgDiZ3ZhILQeGTSYVg3NOrX574xrBfhbgTUcywGw8TErxKDS Ci0EtV7ASGPMKdRGESMX/gi2BsNaJ9Wax53Xq55hfOxTAUH4xPLVDiFgF4Z2IHDoaE1v 9lNQWwo8ik4EC6N49Qv/aJt1bjGTh7roOjUozAjCkdEMmi0NqWHek2fcjNnpLwsld1x3 BgoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Ho0uWBKv; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-122020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122020-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ln9-20020a056a003cc900b006e0945e03fasi14114pfb.162.2024.03.27.14.25.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 14:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Ho0uWBKv; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-122020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122020-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E6AC029A908 for ; Wed, 27 Mar 2024 21:25:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DA7C15358B; Wed, 27 Mar 2024 21:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="Ho0uWBKv" 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 2F1CF47A7F; Wed, 27 Mar 2024 21:25:17 +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=1711574718; cv=none; b=nAk5v6EfsViUsgYxMCSWx3sPMp9RZ9NqWRPdi1VuPRxHWwEYWlC4nzTZgLdA4AZsqbG6waRWPOISh+zYfI1eRFpF1oUNDE3EPTJCGgD6iGZ+SgHoKotYGT531I9MCdnJgrNrsh7UhEak84m9Uab97ymXaKothWHxVuNrP8cqvw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711574718; c=relaxed/simple; bh=JRSXPxdrQqrWLSPd70fIgarnQxXYvf0ykL1MJXBFB/U=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=LswJD2ti7Mp8wL2pCSGdDCNbUMRivP5t7lSG2D/uA5nOiQHLHaaNg659ecvpBDdOs2U9FeJ87KxS3Q7ILu8duSzZPYF+ltNsenMDnFyz7CALKLDKRrmOeOwIT5m52/U16kMTC0V+1shyyxHnwWAsNcTJ6y4i8l7PXlXt/94SWV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=Ho0uWBKv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68782C433C7; Wed, 27 Mar 2024 21:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1711574717; bh=JRSXPxdrQqrWLSPd70fIgarnQxXYvf0ykL1MJXBFB/U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ho0uWBKvGFwgWY4CwVS1HcMdq7K6bPpP4DYyp/5qYDCJkxHKyU9vfNSJ7YDhaG3zs w3HHQhQsufkKDmNXyX7K32z9CSG2dRF1a/R+ETw4hPgnu3feqOxD1j3PpcNoutpnv1 /CZN0jYTBBzf1bA4kpx/bG1sv4UaAmth1BnFQfHc= Date: Wed, 27 Mar 2024 14:25:16 -0700 From: Andrew Morton To: Samuel Holland Cc: 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 v3 12/14] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT Message-Id: <20240327142516.e4b1f9ba6e2ec7bc300e4d58@linux-foundation.org> In-Reply-To: <20240327200157.1097089-13-samuel.holland@sifive.com> References: <20240327200157.1097089-1-samuel.holland@sifive.com> <20240327200157.1097089-13-samuel.holland@sifive.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 27 Mar 2024 13:00:43 -0700 Samuel Holland wrote: > Now that all previously-supported architectures select > ARCH_HAS_KERNEL_FPU_SUPPORT, this code can depend on that symbol instead > of the existing list of architectures. It can also take advantage of the > common kernel-mode FPU API and method of adjusting CFLAGS. > > ... > > @@ -87,16 +78,9 @@ void dc_fpu_begin(const char *function_name, const int line) > WARN_ON_ONCE(!in_task()); > preempt_disable(); > depth = __this_cpu_inc_return(fpu_recursion_depth); > - > if (depth == 1) { > -#if defined(CONFIG_X86) || defined(CONFIG_LOONGARCH) > + BUG_ON(!kernel_fpu_available()); > kernel_fpu_begin(); For some reason kernel_fpu_available() was undefined in my x86_64 allmodconfig build. I just removed the statement.