From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02DEFC433F5 for ; Mon, 11 Oct 2021 12:15:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E1CC7600CD for ; Mon, 11 Oct 2021 12:15:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235092AbhJKMRm (ORCPT ); Mon, 11 Oct 2021 08:17:42 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3959 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236514AbhJKMRl (ORCPT ); Mon, 11 Oct 2021 08:17:41 -0400 Received: from fraeml715-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HSd3M465Fz686rF; Mon, 11 Oct 2021 20:12:47 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml715-chm.china.huawei.com (10.206.15.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 11 Oct 2021 14:15:39 +0200 Received: from localhost (10.52.122.204) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 11 Oct 2021 13:15:38 +0100 Date: Mon, 11 Oct 2021 13:15:20 +0100 From: Jonathan Cameron To: Mark Brown CC: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan , "Alan Hayward" , Luis Machado , "Salil Akerkar" , Basant Kumar Dwivedi , Szabolcs Nagy , , Subject: Re: [PATCH v1 21/38] arm64/sme: Implement SVCR context switching Message-ID: <20211011131520.00004f0d@Huawei.com> In-Reply-To: <20210930181144.10029-22-broonie@kernel.org> References: <20210930181144.10029-1-broonie@kernel.org> <20210930181144.10029-22-broonie@kernel.org> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.122.204] X-ClientProxiedBy: lhreml723-chm.china.huawei.com (10.201.108.74) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Thu, 30 Sep 2021 19:11:27 +0100 Mark Brown wrote: > In SME the use of both streaming SVE mode and ZA are tracked through > PSTATE.SM and PSTATE.ZA, visible through the system register SVCR. In > order to context switch the floating point state for SME we need to > context switch the contents of this register as part of context > switching the floating point state. > > Since changing the vector length exits streaming SVE mode and disables > ZA we also make sure we update SVCR appropraitely when setting vector appropriately > length, and similarly ensure that new threads have streaming SVE mode > and ZA disabled. > > Signed-off-by: Mark Brown ... From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A41E9C4332F for ; Mon, 11 Oct 2021 12:17:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 774DB60F5B for ; Mon, 11 Oct 2021 12:17:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 774DB60F5B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=Huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2o+dJQusBZB21s7Tk13eAcvJzLZjbFUIMfTRNYikZ5s=; b=KoS/6T+j7vW8dl yE8yDpnASkJXZZaumgvmrqwAU2YZU3cEZQRNGhcQmuaE/c8uneLYXB1PQAxBj9Yad4mPht/gCI+7C hLF010df0ROEIk3qTneDKWS4/5fBF/nYgvSRFhB8rwchMd6q4IecnZxGbDH1pxzLuh80SjytPGl/q lzsCk7eDSNd2YGQc+4GjAP0k33V73s6OmtOc95v+j6XnCI0KUiBDkFD5HvvEaNDVOUlkS1mLp/gPp ZvxbHu662Cv9eVFYFEp0KuQ8HX0j7VnsCBqflsF5biD6QuUn9l2JQb7Yubh7D0zpqn10hoyaz4t4J lzTuSw+rfwm1v/Vw9xrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZuDh-009Hst-Gi; Mon, 11 Oct 2021 12:15:53 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZuDX-009Hrf-Nq for linux-arm-kernel@lists.infradead.org; Mon, 11 Oct 2021 12:15:45 +0000 Received: from fraeml715-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HSd3M465Fz686rF; Mon, 11 Oct 2021 20:12:47 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml715-chm.china.huawei.com (10.206.15.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 11 Oct 2021 14:15:39 +0200 Received: from localhost (10.52.122.204) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 11 Oct 2021 13:15:38 +0100 Date: Mon, 11 Oct 2021 13:15:20 +0100 From: Jonathan Cameron To: Mark Brown CC: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan , "Alan Hayward" , Luis Machado , "Salil Akerkar" , Basant Kumar Dwivedi , Szabolcs Nagy , , Subject: Re: [PATCH v1 21/38] arm64/sme: Implement SVCR context switching Message-ID: <20211011131520.00004f0d@Huawei.com> In-Reply-To: <20210930181144.10029-22-broonie@kernel.org> References: <20210930181144.10029-1-broonie@kernel.org> <20210930181144.10029-22-broonie@kernel.org> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 X-Originating-IP: [10.52.122.204] X-ClientProxiedBy: lhreml723-chm.china.huawei.com (10.201.108.74) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211011_051543_962624_42F22A55 X-CRM114-Status: UNSURE ( 8.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 30 Sep 2021 19:11:27 +0100 Mark Brown wrote: > In SME the use of both streaming SVE mode and ZA are tracked through > PSTATE.SM and PSTATE.ZA, visible through the system register SVCR. In > order to context switch the floating point state for SME we need to > context switch the contents of this register as part of context > switching the floating point state. > > Since changing the vector length exits streaming SVE mode and disables > ZA we also make sure we update SVCR appropraitely when setting vector appropriately > length, and similarly ensure that new threads have streaming SVE mode > and ZA disabled. > > Signed-off-by: Mark Brown ... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel