Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1720581rdd; Thu, 11 Jan 2024 07:25:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHogkeFWhHWHHzqs1qM0WDbhT8r+mbZtFXv3xndkWpn68TIgS6vGNcTCJVsX08jDN4LP2k X-Received: by 2002:a92:dcc6:0:b0:360:da7:3172 with SMTP id b6-20020a92dcc6000000b003600da73172mr1221471ilr.131.1704986755318; Thu, 11 Jan 2024 07:25:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704986755; cv=none; d=google.com; s=arc-20160816; b=Uv4UrOSKhEEl9oAh6B+DDMSFFzBT2l+asmp+2uMa/Nnt4mVR/eyGilFMt/lox90Fkd zXtpmjlkjz5JlKOa4/yph3UegTXgT5cvFCpXugzvRbWzeHCiuKUmo+xFqHEXFSfMqfZq qR3x3R9sfPyzacE0Gp4SOQK6axJqp4KHv1Pn95X1xjNkyzqjv/Yb/sk1YBQ+EhKgE+H0 dyrSaDgKW6QTIt2x+/Tc1p9a07+N+7iNYeImTe4ISDUHoTECn8KbQZvL90O/ym4a9LK0 TSYphTSAkf0cCeNN3wSjY6UJDjWrqhWWlRYQyHmZHwqnVjuvBGla2b4oWSYETowWkfdk 1QoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=YPZFW6fjituFN6UJOUsGOAPd8JoXYWow7QZvMD6pj6I=; fh=tQkqHE8PewsjOBXssZJl1wWqD9K+cnz5a5ofUqSnoeo=; b=db9yT5VwWpuNivv83iYBT6xcwa/1fPAuE+z8AYNG/T8uLRHwfyjaiY7nQmF+PTC75V 47Kumc3Bp5NWcqoL0tzEXd1vs1fBnRusL+zAGG+pampZMyf+IZkJEIVIv4DijUt+qOB6 GOf2lQwFIe7KYf3xLSuO85jaFa3irZutoZPwrXkYgiTLADCEbdW7rZv6uXmPHUzrGSN7 L938fWFb3qgF1zGdh34L6CGU1RT+GUYsTn+P6aq9KqJ0P9VnmpK+P/jx2nguqrOJw5sI 3EBGZfK9zcsh8oRgavNxRT72Bvlc0K9hRzkC/+9NOxVl80sgDmfgFZoy/p2Us0LFHCfV A5Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=lTKWSADz; spf=pass (google.com: domain of linux-kernel+bounces-23779-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q196-20020a632acd000000b005cdfa589cfbsi1316443pgq.148.2024.01.11.07.25.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 07:25:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23779-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=lTKWSADz; spf=pass (google.com: domain of linux-kernel+bounces-23779-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A17BA289C52 for ; Thu, 11 Jan 2024 15:16:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF0654CB41; Thu, 11 Jan 2024 15:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="lTKWSADz" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 733B44C60A for ; Thu, 11 Jan 2024 15:16:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-50ec948ad31so4253096e87.2 for ; Thu, 11 Jan 2024 07:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1704986177; x=1705590977; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YPZFW6fjituFN6UJOUsGOAPd8JoXYWow7QZvMD6pj6I=; b=lTKWSADzlhcUnTD8rxogVa00pl1q/hD4/VtqPH0WDv5Mf2b7Kbb34VZ/aov9kcyphz hX2YYFZc0TObsrL6ZFZvlbly48nnjIpKpdILn2ZAr9NBc5AO7VafXmmPGSmwK1GeVOzd +iEwTlNI824sko3kaPZIEL/kWm7kNtRFadswIzwrXjCZPE0hfO0Rw78F+ckfbieEPlow /VWiRXgIXJymDba8PjRBLNfLDT/OcGp1j8LFXB2KjN1ad9kvsXqM3ftFzk5rB17zhGYq 8KWQYr7YkC2V/Y423P2VOAk/L6gUxeCNZ9XrthZFR4noE+yUB+jvicMdS03rDtY+69Fj r06g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704986177; x=1705590977; h=content-transfer-encoding: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=YPZFW6fjituFN6UJOUsGOAPd8JoXYWow7QZvMD6pj6I=; b=ufR7QlHxQdYvv2NVguStsaTVZQHNJIgAMbKKvCVca5hEUWr79XdKvb256KE9EJFSWL M23MdgmD18Dwbvw7wMgp204einxMZiT2GiJdJcroxib+hiIrZs+4ZgFRBzpE9YaJ/QVH qG1kRiEThufIJqASCk+bYKyayngoysM4QLhZ4e7LmUMx54NScJHkKfFcVPHfWQuLtBii aAWmPpfqphncuvpe1V1I5FdzoZPfSwJh9qTdB1c0fhbBazFMuJXya04BulnB0PGU0+Fi Yi3ifFwfJqpU5fSvWydy80Pj6SjvSjEKkHGIOmTSyYhGAq6vWNB1IHumaCr0L5E6NSkI LFQA== X-Gm-Message-State: AOJu0YxIav1I6AO26PadHjeOtxKlQVamnCWtRgmEAs++dkGD3fPcG+63 1Tsfga7M76gG7sAOaPQ70w2iMFgKhUyk7JVdKd219O5oGs2/FA== X-Received: by 2002:ac2:58d0:0:b0:50e:7709:9fc2 with SMTP id u16-20020ac258d0000000b0050e77099fc2mr626322lfo.78.1704986177471; Thu, 11 Jan 2024 07:16:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231221070449.1809020-1-songshuaishuai@tinylab.org> <170498463757.20080.7960935665061816471.git-patchwork-notify@kernel.org> In-Reply-To: <170498463757.20080.7960935665061816471.git-patchwork-notify@kernel.org> From: Andy Chiu Date: Thu, 11 Jan 2024 23:16:06 +0800 Message-ID: Subject: Re: [PATCH] riscv: vector: Check SR_SD before saving vstate To: patchwork-bot+linux-riscv@kernel.org, Palmer Dabbelt Cc: Song Shuai , linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, greentime.hu@sifive.com, conor.dooley@microchip.com, guoren@kernel.org, bjorn@rivosinc.com, xiao.w.wang@intel.com, heiko@sntech.de, ruinland.tsai@sifive.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Palmer, On Thu, Jan 11, 2024 at 10:50=E2=80=AFPM wrote: > > Hello: > > This patch was applied to riscv/linux.git (for-next) IIUC the conclusion for this thread is not to check SD bit for either vector or fpu. The patch for this was sent together with the kernel-mode vector series and has been reviewed-by both Song and Guo. > by Palmer Dabbelt : > > On Thu, 21 Dec 2023 15:04:49 +0800 you wrote: > > The SD bit summarizes the dirty states of FS, VS, or XS fields, > > providing a "fast check" before saving fstate or vstate. > > > > Let __switch_to_vector() check SD bit as __switch_to_fpu() does. > > > > Fixes: 3a2df6323def ("riscv: Add task switch support for vector") > > Signed-off-by: Song Shuai > > > > [...] > > Here is the summary with links: > - riscv: vector: Check SR_SD before saving vstate > https://git.kernel.org/riscv/c/e1b76bc00ed1 > > You are awesome, thank you! > -- > Deet-doot-dot, I am a bot. > https://korg.docs.kernel.org/patchwork/pwbot.html > > Please let me know if I missed anything. Thanks, Andy