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