Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp725874rwb; Thu, 12 Jan 2023 11:26:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXsKtpOGXFFEz60k81XS8XaDO9VfuebwGP7c6yY+QuhXNpKEjGvI4WlUxbbnnq+d4J3ocayb X-Received: by 2002:aa7:8752:0:b0:588:cb81:9274 with SMTP id g18-20020aa78752000000b00588cb819274mr16013678pfo.32.1673551598383; Thu, 12 Jan 2023 11:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673551598; cv=none; d=google.com; s=arc-20160816; b=xCDqzuJ0pUQeSp3gcgvyG+kKVfHEtcsRnDeJT52vZuUC8oituiGPf3ap9nHU4yGHUH Br3KPl1ZMgFA/n/zT1uKTZOi96NOgKZaSlEnQZsh3zNqeWFFregQddbjyl1ddKIGoi0/ ebv0EbUwjggJ4S2BD2fQLbcgIljzVkVt6JrGZPJreFap1h0AeoAwUD2fHCdqKb5Amy+6 vj5bRaeFLeKKQo/JgqZ2cBsgniC62rgRwE5pO/oF3fQCk8I2utf8nd0Sx7bHF57wboc7 /BvFWdtKx12YdDEwx+yLfjFG7WOf3ggEXwAQOORLDsLgvvoTqyzzmH6POMH2FL6GAe6q /Y+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lA1KraWW2WmxNc+Q4KaRK0USCOcJ3fCyWSafL+dnqhw=; b=LEuWCuEuABUcI0yJr7nkT4kE5ZhfUcRCskE64D4Fdwgd98//SvzAPtc8CosPIleF7i 8lL1i2gKT6GHIQHWfekwTnIhHMpjYrtt98Bj5HYi9PEOa0bOHcQjeBgrp31e3gIgIwrg lkZuEpMsFjPtCsm+LDRJzeWOx2fOFJjo4jhwsoFPgCX6xy3W1cnYETsoe4L3wMMQ/9Un vnKGAPvTYbah1JODqNKYQvhKCJ8pftco73IBpRWyVWvwDBZ+bD5CO/+50Z3on1o8lgkK ibzjk2MtCy9zsAIVE/yDkxDa3eU9W6OwumqfsO8K7jPxgo690tFLqb3pEVmjn24bcAp6 Cklg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020aa78895000000b0056cb4662b9csi19524784pfe.16.2023.01.12.11.26.31; Thu, 12 Jan 2023 11:26:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240344AbjALSTY (ORCPT + 50 others); Thu, 12 Jan 2023 13:19:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240474AbjALSST (ORCPT ); Thu, 12 Jan 2023 13:18:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02855D80 for ; Thu, 12 Jan 2023 09:49:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87666620E3 for ; Thu, 12 Jan 2023 17:49:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B90C4C433EF; Thu, 12 Jan 2023 17:49:36 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Mark Brown Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/sme: Optimise SME exit on syscall entry Date: Thu, 12 Jan 2023 17:49:34 +0000 Message-Id: <167354575614.3644139.13835865624687417471.b4-ty@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230110-arm64-sme-syscall-smstop-v1-1-ac94235fd810@kernel.org> References: <20230110-arm64-sme-syscall-smstop-v1-1-ac94235fd810@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Jan 2023 19:34:36 +0000, Mark Brown wrote: > Our ABI says that we exit streaming mode on syscall entry. Currently we > check if we are in streaming mode before doing this but since we have a > SMSTOP SM instruction which will clear SVCR.SM in a single atomic operation > we can save ourselves the read of the system register and check of the flag > and just unconditionally do the SMSTOP SM. If we are not in streaming mode > it results in a noop change to SVCR, if we are in streaming mode we will > exit as desired. > > [...] Applied to arm64 (for-next/sme), thanks! [1/1] arm64/sme: Optimise SME exit on syscall entry https://git.kernel.org/arm64/c/b2482807fbd4 -- Catalin