Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp539324rdb; Tue, 23 Jan 2024 07:15:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHt62cSEOwZUGlJhsVLU9w6OYyEU6WmyZbBxIRUuHkYmn0KZQvmZa0RSxKQHTw6fItDRIcL X-Received: by 2002:a19:655b:0:b0:50e:7711:45c with SMTP id c27-20020a19655b000000b0050e7711045cmr2767561lfj.77.1706022953324; Tue, 23 Jan 2024 07:15:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706022953; cv=pass; d=google.com; s=arc-20160816; b=gGTM1ftVl2nZuTIP7rNQXxrzG4MBAWitJqHWgMnRyTpxVrKuEteN04xhjKJ/5jq0lI YON1n3MGNdrwXQogTqCM2Q1qHiP1eoO/wFTrGNyxkYM1XMerUFxzDI8yrOoQIzp1OK4d BXzOrfUxYZ22+tZAC3TeG1R7mM3mZYPU78ZOzn7T09ZYVihCIoA3pekuG4hncaYLpjFt UZV41iKogFyqwCeJRevf4B9pr+IPfqLRbLqXK1H6/sSUk2pYDBo9QppMHzgQ59mIy0Oi A0XAANvEImIFBX+x1dmHTruhOB/Elqfk1mmIHu1V0qb9h23AF4/7/z9RRvpu9SsNiM1T +z7g== ARC-Message-Signature: i=2; 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; bh=OS87ivSms2171/Y9GvVsfD8lyK7aJcSbygBOnlPvD3E=; fh=70QgPQRSdT9aIUjQ22/kSkhlSe9boNO8EOAmyE6KMwU=; b=JwvFgOub2O66+xtyCjthZpxoH1zfvHGBxYmzWulAJ2gE8awTvXCoCeEthD2lhQ5ua6 EhbTY6+TL+B+nGxZqVg4RoCRj9Sp17DIrpFQ2K4lvJlrcIzPy0eQ1BgJGI/W+Alc7PDF c+aNmKyWOrL8CKm91CGcDlu+WnV80g30K68N3OzKup+cIJFZB46oTruXxl4tkkQ6Catu zOIfdoV/LySKJoWFKH+njQyDQY+IIqS3ci87+qZjCBz+FOmTnhFzbJlSqYou4HlPv4Pw RuWOtH07t4Io/76ZFUATddn9wYBNnByEH1fOFaDcIa+497tT4fe4vCsP7/PHIcigdY3A 1lWg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-35520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gf5-20020a170906e20500b00a30e90371b5si232643ejb.591.2024.01.23.07.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:15:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35520-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-35520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 13F871F292C3 for ; Tue, 23 Jan 2024 15:15:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B3C85FDCB; Tue, 23 Jan 2024 15:15:35 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6BAD5FDBA; Tue, 23 Jan 2024 15:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022934; cv=none; b=ZqOZ4a9YcxBloknQVuO3sExSyVYB/WPoNhapWRZfWWOqwT0tSZEba1J6fYnn900nAVfYuG0wZlPD7sn+AccXaWB0p+DnlHQsBXNfjpl+mV5mXjWgvscCOdfzYXtCCAt2ADLxIgo+Chn+5mKr0HMCFIJjZF4jIsYsVrw8oZuMKAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022934; c=relaxed/simple; bh=asrlpI/aHrBldL7i2NaK3WIVv9olZl7qV7m2eNZxP3o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qPLelMP+6VEPeIktiA0lv2OaRlD0yxb5XF1j+Ha0fhV4/CFYAn/FSHsloSPoV6TXGe6v1ZUIyDwkgns/y4rRD8ZLYah/XovKUue3xFgOSA1Bri72z23Lgywz0CsXDilxF9y+ABouw7Oii/9qFrMeMho3rf0GuaKoATA2TnA2oxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 54E071FB; Tue, 23 Jan 2024 07:16:16 -0800 (PST) Received: from e133380.arm.com (e133380.arm.com [10.1.197.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2981B3F5A1; Tue, 23 Jan 2024 07:15:30 -0800 (PST) Date: Tue, 23 Jan 2024 15:15:27 +0000 From: Dave Martin To: Mark Brown Cc: Catalin Marinas , Will Deacon , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH] arm64/signal: Don't assume that TIF_SVE means we saved SVE state Message-ID: References: <20240119-arm64-sve-signal-regs-v1-1-b9fd61b0289a@kernel.org> 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: On Fri, Jan 19, 2024 at 05:47:55PM +0000, Mark Brown wrote: > On Fri, Jan 19, 2024 at 04:31:13PM +0000, Dave Martin wrote: > > On Fri, Jan 19, 2024 at 12:29:13PM +0000, Mark Brown wrote: > > > > When we are in a syscall we will only save the FPSIMD subset even though > > > the task still has access to the full register set, and on context switch > > > (Pedantic nit: "A even if B" (= "A applies even in that subset of cases > > where B"), instead of "A even though B" (= "A applies notwithstanding > > that it is always the case that B") (?) If the SVE trapping were > > ripped out altogether, it would be a different and rather simpler > > story...) > > I really can't follow what you're trying to say here. I'm not sure I > where the bit about "always" comes from here? The sentence seemed to me to be lacking some context, but I still haven't fully familiarised myself with the changes to the code... If it's what you intended to write and nobody else is confused, it's probably good. > > If the historical meanings of TIF_SVE have been split up (which seems a > > good idea), does that resolve all of the "bare" > > test_thread_flag(TIF_SVE) that were still there? > > There's a couple more, but this is all of them in the signal handling > code - I should have one or two more patches. Most of the usage is > actually checking the trapping and therefore fine. I see, I guess this area needs keeping an eye on generally, but if there are no more cases considered urgent then I guess that's fine for now (modulo other patches in flight). Cheers ---Dave