Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1520473rdb; Mon, 8 Jan 2024 01:37:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXx1RI0bZ3bMFfwIYxJ3CtbtY4ghIIRz1pmVdtlzjREeV1c1pOTSQmILKyH8mpY2v1Ayta X-Received: by 2002:a05:6870:2252:b0:203:ede9:79f9 with SMTP id j18-20020a056870225200b00203ede979f9mr5070818oaf.10.1704706642915; Mon, 08 Jan 2024 01:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704706642; cv=none; d=google.com; s=arc-20160816; b=zvwMnWlM2+9HhimFABmTQeiMOLYbtai3KFCrrsS7F0Q68m9gNlZ+Cv5EY3Kw6L57yp XMSKUcl65oxQu4Zrk30tfCbdVapUy5Rld/6k0J8oGS5CAIJ1n0eZz6ouVLoYmOQiIrpV csNlqB6yWyywEQMd3yZzikhNSr3N7O8HL7yglXWnk0F8HdO+S+rMXa0WhZoMDDp7sZNW YM+5qzk7SaPOFxK4xUdzy+twE3RHCRLFUg2AoejhIsCLmfFPuLmWb7+qJZqEjpHsHsqW 214X/WohmvbGuDwh1Mgu2xy6kZnl0gu8Ith9ZS8KROKRQGKKWHK6sivATKCR06yeJYB9 493g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nTS1Uj9X0YK5sE131pQWTs2iFDkjMx4GKaOmTl5jpqE=; fh=Qo8xHEryNV1VGCrQQnFPJPgVfoIfIfZiKqRlj8MXO7E=; b=nm7rFTLiZ8c/MaUH1t0PtRdiQ/cszuWx19Hvuxd3oF1dTB6C7wyLTToFAgFsuft/i6 BRLIlb0pqYpoQw+jGr6oHeYuLYn+ES6UZGTN6J75rktXXVUvaqBL4rRqxgVpVGP7mk1c XYCwN48nVJpwmZkpnbEUMA8NHbBOYNDAO6AtVpOSsLSapFOzvFU3RccwFdij2TpcucJL GcvJdeIPpzZ8du6iKNQ1nDIwjLku59EXoGiCuLsKOhp2qLbB9lZQWDj6a8sAj5WE5ob5 bZrUZ3m92bUKiPCkOjuvdGa+l/iLcwfLHUHhJB9mHlnj4b5/ar9b1JssriykBULJl02b XMyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Fy176uqq; spf=pass (google.com: domain of linux-kernel+bounces-19281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19281-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 i129-20020a636d87000000b005ce087e0059si5671134pgc.792.2024.01.08.01.37.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:37:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19281-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=@infradead.org header.s=bombadil.20210309 header.b=Fy176uqq; spf=pass (google.com: domain of linux-kernel+bounces-19281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19281-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 91D4F2827A6 for ; Mon, 8 Jan 2024 09:37:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87E2C125A5; Mon, 8 Jan 2024 09:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Fy176uqq" X-Original-To: linux-kernel@vger.kernel.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.subspace.kernel.org (Postfix) with ESMTPS id D27B41173A; Mon, 8 Jan 2024 09:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nTS1Uj9X0YK5sE131pQWTs2iFDkjMx4GKaOmTl5jpqE=; b=Fy176uqqVZeORczKkanJckGA3E rjRR9SFWlqdBWFeQhMUeo2x5lV8XpdYa4GI0iYUzJ6xe4JfoH/ClDNDCMVJub0LPMWEwUwd8I8dr0 WwH6zcQyiGmBNcE7Fs8axj5Vg+MNCFSetI0lVOGPKPgwxoNDApJeoPP6xe17PMl4YbYUkYENMyduB f083OT27kxtEMpbQucthM3SKI66TxkTOiSrMzwOmJqYthGOqjcJQX6LHBVpu97K2Nyn2Uoe2m6xiJ DGQPT42ehYs1d42jNISUDZY/OxsBiSJHVw2pJE0uDLbTxsdKq7BFvXx0o48duef+zb5iDUsv9NZhu bOOsB0Vw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rMm44-004Uoy-0z; Mon, 08 Jan 2024 09:37:00 +0000 Date: Mon, 8 Jan 2024 01:37:00 -0800 From: Christoph Hellwig To: Huacai Chen Cc: Samuel Holland , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-riscv@lists.infradead.org, Christoph Hellwig , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-arch@vger.kernel.org, WANG Xuerui Subject: Re: [PATCH v2 07/14] LoongArch: Implement ARCH_HAS_KERNEL_FPU_SUPPORT Message-ID: References: <20231228014220.3562640-1-samuel.holland@sifive.com> <20231228014220.3562640-8-samuel.holland@sifive.com> <84389bc3-f2e7-49c5-a820-de60ee00f8a7@sifive.com> 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-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Sun, Jan 07, 2024 at 10:39:07AM +0800, Huacai Chen wrote: > > Do you mean that LoongArch32 does not support double-precision FP in hardware? > > At least both of the consumers in this series use double-precision, so my first > > thought is that LoongArch32 could not select ARCH_HAS_KERNEL_FPU_SUPPORT. > Then is it possible to introduce CC_FLAGS_SP_FPU and CC_FLAGS_DP_FPU? > I think there may be some place where SP FP is enough. Let's defer that until it is actually neeed.