Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp54358rdb; Mon, 15 Jan 2024 11:53:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHehi0gtM3In+Vz35utp/Axy3qznT4u10NQapv2Cb07C5/N6TW67dx+ESHkqA0RFL3yMRBW X-Received: by 2002:a05:622a:1756:b0:429:8522:4ce2 with SMTP id l22-20020a05622a175600b0042985224ce2mr7559023qtk.98.1705348421922; Mon, 15 Jan 2024 11:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705348421; cv=none; d=google.com; s=arc-20160816; b=p6O5LLwPt2bv1+p0aCQXbi6I4KHZ5Ksa0Kd/swmbqdHChsVUiANglbef/ZR8b6XilB e0kKfD0mdF3NWTrfrckuhTVP3e3FRA3Xd8ywzdrhWOMOCfffoiYBcDQiyMVLA+NIMdQ8 u2J4zTsjPOp7ldgaSMZOmjZ0jfGHVpaIsQmwYpEiczhaUr5Mm3mJKISei6zUyBKF/P71 GjiuR3uMZGEpA7ej0o9xWh4rSTWIU4mbKa/teGWVbKfIduOcySABQyBc9O/MG60qPM9Y BST42vylU5nQ36jiqILmPX5vvzF8i18eFXT4KkE4mal4yUKRiYNWpu+FAOif82lg/abh BIRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=iv9+rw28f/uTcAQaQWhHtxpSYXdOXjt1fK/x/YORsEI=; fh=InF/3hfpmX3uKaHeK5Jezk/GItLjzhOMQckqxscpy4U=; b=fRM7cwY6tAdEiBs6SotIDZqwpMZU67MGFyXw/6K2+dwLNQ9xZva9TeEqnHUbThUD2x DJVx9AtFkOyDuP9gjOIFGCnGccUWch6auNN76Kxcr4qNBIjUqmfecn3oFYwrQ0oT6NPG 9+D7ClEDpqwAr2tZoNCx99tHg4rhx+//RxfIdtOtWEw5bNjLVq6hLr9k/4HMSY5MUXkE Q2SKmkidnEhhPjsOJK2LTGWu9S4+BianUD/gq6sovnMBzI8D8ZLASoG4JJSbroKiNjW/ eDx1mFlSZq8CpWTq94MK6/F8YSRbiX3HmkPkKaxees47rblv/UsiSwXBC6AhSHe9P23b WG+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ptn/wBvo"; spf=pass (google.com: domain of linux-kernel+bounces-26448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b13-20020ac85bcd000000b00429f31c4936si1983987qtb.164.2024.01.15.11.53.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 11:53:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ptn/wBvo"; spf=pass (google.com: domain of linux-kernel+bounces-26448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 A79461C220E2 for ; Mon, 15 Jan 2024 19:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C83E18E2F; Mon, 15 Jan 2024 19:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ptn/wBvo" 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 A92C118E27 for ; Mon, 15 Jan 2024 19:53:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E468EC433F1; Mon, 15 Jan 2024 19:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705348412; bh=jx6MCcQ7uLIq8gq6+Ob0A16MFAG6K9KviDKmyys205A=; h=From:Date:Subject:To:Cc:From; b=Ptn/wBvo5xbUZOzh6lqMrmovB1iRTtg+LINTmsgRhJ4/kuaAeh1rYjhOOA0uzgQ/j EGK4E4HyV3PflDA1cyx6WjQTkSwM3GWJX/k93PgNVdutTo0bCaMU9Fm/0UhNdX3GT/ AEMY0MHVJOc+oq3bXQHGDdbj9KUxWT20paqXKKlJTucDmhW2HS++8bIvfU6p6DJ7+S I1U+lSjck7cvLOLqxq8IHXVMVKDD6xH6B6TsMuLcv9LJODEWBl/Y889gN+kU9IADEr OI6mJCZnuNusDe795yjl7I/7wTigJ/SbrcCmG/hfR7bum89bXdUNd8HvxE70znWuGv P0P9RhI4gYLkw== From: Mark Brown Date: Mon, 15 Jan 2024 19:53:01 +0000 Subject: [PATCH] arm64/fpsimd: Remove spurious check for SVE support 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240115-arm64-sve-enabled-check-v1-1-a26360b00f6d@kernel.org> X-B4-Tracking: v=1; b=H4sIAByNpWUC/x3MQQqDMBBG4avIrB1IrGjtVcRFnPzWQRslgVAQ7 97Q5bd476KEqEj0qi6KyJr0CAW2rkhWF95g9cXUmKY11hp28dO1nDIYwc07PMsK2bh/iBcz934 YnlTqM2LR7/88Tvf9AyrqSjVpAAAA To: Catalin Marinas , Will Deacon Cc: Dave Martin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-5c066 X-Developer-Signature: v=1; a=openpgp-sha256; l=1099; i=broonie@kernel.org; h=from:subject:message-id; bh=jx6MCcQ7uLIq8gq6+Ob0A16MFAG6K9KviDKmyys205A=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlpY05ck2UycHnpMpz8rLd+exIRRY88PsowdptD/Ug zDSIo0OJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZaWNOQAKCRAk1otyXVSH0Ny+B/ 42mb7gVgMzJLswC7zdZzsbCjSl5ICwzLm8NWeEoCRwGXH9SlQv3DXSEZOhsuaIYF8ISu8e+aS2P96Z NGpbWknp6nDV+4efFn0Q0rNCMo0lVWUg+2FjKNmNZkrhGOz/uQr+VeFavkLZvoL9FNFwNrCLEw/72g X3x66f5/aumf6C3nxQcCuAmoqvY3FL0cYJcxv8oEio2k6qvwsBTiMe4eJ2L/vjv4r+yK3+mz9vYlZD JBdAQ6g5RhonLPxIm9D+s4pnm7GFM4kebSF1nOAdyuoxZPMOqnjAMhej4V51/xv29J+Y/AhzarLO8v sF7d2yU3V4pEjsBvfnpt/ryOJK0pvU X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB There is no need to check for SVE support when changing vector lengths, even if the system is SME only we still need SVE storage for the streaming SVE state. Fixes: d4d5be94a878 (arm64/fpsimd: Ensure SME storage is allocated after SVE VL changes) Signed-off-by: Mark Brown --- arch/arm64/kernel/fpsimd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 1559c706d32d..66b31cebead8 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -924,10 +924,8 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type, * allocate SVE now in case it is needed for use in streaming * mode. */ - if (system_supports_sve()) { - sve_free(task); - sve_alloc(task, true); - } + sve_free(task); + sve_alloc(task, true); if (free_sme) sme_free(task); --- base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a change-id: 20240110-arm64-sve-enabled-check-73cdc0b7d998 Best regards, -- Mark Brown