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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8F24C3DA6E for ; Sat, 17 Dec 2022 09:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbiLQJ2g (ORCPT ); Sat, 17 Dec 2022 04:28:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiLQJ2f (ORCPT ); Sat, 17 Dec 2022 04:28:35 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9DF826A8C for ; Sat, 17 Dec 2022 01:28:33 -0800 (PST) Received: from kwepemm600007.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NZ0x90tDXzRq6M; Sat, 17 Dec 2022 17:27:25 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Sat, 17 Dec 2022 17:28:29 +0800 Subject: Re: [PATCH v3 09/21] arm64/sme: Provide storage for ZT0 To: Mark Brown CC: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan , Alan Hayward , Luis Machado , Szabolcs Nagy , , References: <20221111215026.813348-1-broonie@kernel.org> <20221111215026.813348-10-broonie@kernel.org> From: Zenghui Yu Message-ID: Date: Sat, 17 Dec 2022 17:28:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20221111215026.813348-10-broonie@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600007.china.huawei.com (7.193.23.208) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 2022/11/12 5:50, Mark Brown wrote: > + * enabled we should retain the ZA and ZT state so duplicate > + * it here. This may be shortly freed if we exec() or if > + * CLONE_SETTLS but it's simpler to do it here. To avoid > + * confusing the rest of the code ensure that we have a > + * sve_state allocated whenever za_state is allocated. nit: s/za_state/sme_state/ and can be squashed into patch #1. Zenghui 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3C843C4332F for ; Sat, 17 Dec 2022 09:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VP6m9NXNTFry63ho15MvLwQalYX7obPKmckzGGiEIzg=; b=M+qEv2aPcfeHdJCFL5QV748pAW oVQ4P8m6BC0RHvGEkKlVeFa78PZ3PvV+C/XFFbnLfezNy/6GIgUvDKfAaVzCad8YeWPcs/TOMtjyT RFkFGlPRn2TfCVWsG2DqA1AyzWSqOmtdwnTSJUX6BVM9aJ4rVEKgkTSmG0R3/E/kjhcgVoFUgPO7S sYqBNHqxycQJTsKWk/sPRREtKBmCjaUcGKXTvWn57wPbOxvxZwmTQeyNGwjY8mBOvrrksKahVd7XR xUxMHoBqKurghjPX/JOBzw38vfZXK9w9Stlm8FZFQlqtn3VqpgbWn+zC+JVORVGOgY19JSIEDgzgq uAwJWIpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6TUm-007jeI-AL; Sat, 17 Dec 2022 09:28:40 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6TUi-007jcg-B4 for linux-arm-kernel@lists.infradead.org; Sat, 17 Dec 2022 09:28:38 +0000 Received: from kwepemm600007.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NZ0x90tDXzRq6M; Sat, 17 Dec 2022 17:27:25 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Sat, 17 Dec 2022 17:28:29 +0800 Subject: Re: [PATCH v3 09/21] arm64/sme: Provide storage for ZT0 To: Mark Brown CC: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan , Alan Hayward , Luis Machado , Szabolcs Nagy , , References: <20221111215026.813348-1-broonie@kernel.org> <20221111215026.813348-10-broonie@kernel.org> From: Zenghui Yu Message-ID: Date: Sat, 17 Dec 2022 17:28:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20221111215026.813348-10-broonie@kernel.org> Content-Language: en-US X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600007.china.huawei.com (7.193.23.208) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221217_012836_576254_3D486CA1 X-CRM114-Status: UNSURE ( 7.05 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022/11/12 5:50, Mark Brown wrote: > + * enabled we should retain the ZA and ZT state so duplicate > + * it here. This may be shortly freed if we exec() or if > + * CLONE_SETTLS but it's simpler to do it here. To avoid > + * confusing the rest of the code ensure that we have a > + * sve_state allocated whenever za_state is allocated. nit: s/za_state/sme_state/ and can be squashed into patch #1. Zenghui _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel