Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3729269rdb; Wed, 27 Dec 2023 19:19:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdKHm8fawTHstJ0UikGHPhqo9jSFRLV7TknG9M6n+xopR9RU2E423eWbKEGlbJPNAP8ZpQ X-Received: by 2002:a05:620a:2721:b0:77f:b64e:aba2 with SMTP id b33-20020a05620a272100b0077fb64eaba2mr16867370qkp.150.1703733571829; Wed, 27 Dec 2023 19:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703733571; cv=none; d=google.com; s=arc-20160816; b=ZaQ9aJt8hAiAUyfwmf+8CWNfNCw/ESjClJwkvENB+//c9T33AkLNPY4pMK7zO96PAm Lp9jFe00nvAtze/1It/a2sXkMtQqJypaUyLr6XucMaktqT2cX/u731nSam0NPNqGAICS eZwjp/8z0hQpv45KeRCnehG1NMZyeya24fJPnOzHGWL6vV8aeJhhOQR2vs2gUjW5cvm2 aaqXj4rVPeQ7ouAEvwgiiccaYH8cLyjYu2aqkIMjyIiYJNAVvmVQcUC67Pp+dYe5yl1u VCy/fZ3hq5cjdmv8fdYJ13aoJy0B29/05NHJ00UPpFUi7cHK+vf6pVBKt5K/TrJ8yhOZ cJkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=EfJurZriD67cDIIwfiSM+kPHFvEVVHjMJmp7iWbFTLU=; fh=rAnbuVPWu72GkY9EbGM9nzmAHaJ5FUjnDq7NwO7xyuA=; b=Xi3lH26pa/n8bGx9dewfIMEQrJuiL3SCrV4haiLit0r+LgNptU8Q8x5QLXbKo3gx3F lMSQwc+beg3CCQbgycx/y653vetIFpKLKHI4hTsx4mcV8VMcQm4bhrijSNvjmL2UAFiv brN42dZNbD7gPsSr23WcNM5CAqI6WCCZ90YKc+LBDHRxtusgxXs8rOuTjbAz8QikbrEI JIyp9Oc4RepQUPCgarxWErls+CSDEoQOhH7jGFMR44c1D/Fda+GDfY32VTS3H82i+wSe wS7h5D+NxLqfAhcUm+Jq/eSRCfBncXUZFtdsl6rUv6ccPOFKKumwurfmYF/L/7mQCH98 YfbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=nfF7UQxS; spf=pass (google.com: domain of linux-kernel+bounces-12405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12405-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q6-20020a05620a0c8600b00781124edfc1si15210397qki.39.2023.12.27.19.19.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 19:19:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=nfF7UQxS; spf=pass (google.com: domain of linux-kernel+bounces-12405-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12405-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8B7B21C21710 for ; Thu, 28 Dec 2023 03:19:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BC9115CE; Thu, 28 Dec 2023 03:19:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="nfF7UQxS" X-Original-To: linux-kernel@vger.kernel.org Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 AFC9010F2; Thu, 28 Dec 2023 03:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1703733552; bh=EfJurZriD67cDIIwfiSM+kPHFvEVVHjMJmp7iWbFTLU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nfF7UQxSvEFaj4zjVVDZFGc/PuImmuvaZ3mEKMBJyLZm//iqAnLT0yisJQwrCU7S0 bVxB5akL39HmDbuq/jT4FGLf0kG7kMimzsxsXVIQl/mVEy6wniHoOa3HjFqSvwg89c FwIVvXQps64q92tRsf80IoYSQySfoqSCVs6siW9OBv42MMkw4ViUAtXCJbfNsKG6jA JedpVqkGyrM26BxsJG65GhzLbngP100uf6zRb8p8DvCR1wTRoUbRUvXTe88wX+1nMn fbLyXQTIPhHG72UC0XCwCWZ6EhuHxg/PdFGez6CnLQRSkY31By3C1FxLqqZHNiIIU8 bOMIA4nGmREWg== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4T0tyk6hCKz4wxx; Thu, 28 Dec 2023 14:19:10 +1100 (AEDT) From: Michael Ellerman To: Samuel Holland , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-riscv@lists.infradead.org, Christoph Hellwig Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-arch@vger.kernel.org, Samuel Holland Subject: Re: [PATCH v2 08/14] powerpc: Implement ARCH_HAS_KERNEL_FPU_SUPPORT In-Reply-To: <20231228014220.3562640-9-samuel.holland@sifive.com> References: <20231228014220.3562640-1-samuel.holland@sifive.com> <20231228014220.3562640-9-samuel.holland@sifive.com> Date: Thu, 28 Dec 2023 14:19:08 +1100 Message-ID: <87wmszj9oz.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Samuel Holland writes: > PowerPC provides an equivalent to the common kernel-mode FPU API, but in > a different header and using different function names. The PowerPC API > also requires a non-preemptible context. Add a wrapper header, and > export the CFLAGS adjustments. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Samuel Holland > --- > > (no changes since v1) > > arch/powerpc/Kconfig | 1 + > arch/powerpc/Makefile | 5 ++++- > arch/powerpc/include/asm/fpu.h | 28 ++++++++++++++++++++++++++++ > 3 files changed, 33 insertions(+), 1 deletion(-) > create mode 100644 arch/powerpc/include/asm/fpu.h Acked-by: Michael Ellerman (powerpc) cheers