Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp1668935qtg; Tue, 21 Mar 2023 20:09:17 -0700 (PDT) X-Google-Smtp-Source: AK7set/a9LlJ7FbHFVspbtrL90r2L4DQuY3Q9WmWBFvW5gufb8AmCHrW+jO54MhNPKFH5D0phvoA X-Received: by 2002:a05:6402:35cf:b0:4fb:886:c9d9 with SMTP id z15-20020a05640235cf00b004fb0886c9d9mr6444742edc.1.1679454557478; Tue, 21 Mar 2023 20:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679454557; cv=none; d=google.com; s=arc-20160816; b=Sp1R7WwL7QxWHOoaQZNX6LaUCG0Iuj4oDElO7R8hJ2hXE5INmdreWXti3u+G72YWln 7WCR2OkemjjoUXtp9U03HvC9dz+b8bB3h3Tt8IFD1kbzCZwTH1mkp4mJrU7jbwGOKWua LhdnQnUUlNsDrMyssJrgYxH2t9zAYoJEjj5ourcr7SPUxq5E3lDmDPg5W4YKFhxOQbjD kf/Tzrsriab1l03mE640HGek2qipjOnM/fS+tLRoBue089+lxb7eKMnoiqyqsRn4oyG/ T7XV7Fq/4xQgax3gdADD+T4v9YBfaWy4GVlVYv7yg3uXr8rWm2JoJ2QOaGT6D8p0yy0s CIrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=58+bqogCwB2V0NNjm0B3oFV5Wg2pms3+crPb/nBT3XY=; b=V0rodT3fTQip/WE3v+x7YaJDDEtFuDu20Wt9Yc3BJzofgxIXxKbLPNWSiWZGC9vvq1 IaYtQMuUQDFSxNKwRcGEIegyq5pz3wsFJf1YAyBtiYlp/kxCg+no/mUmvl7HMGpLNQ18 bcW9UAweNe5dlKM2Q0cYnrfGEjmVrPoSUOp2jI5kMnRhGjgD9gTg8NKCgngGOIOaWrJ1 HfoOFeexx9BhPjnIVcSYKRb8eSntkSV5VtvZU+IBdo8VUPnrqANA1pnlWUHYJV1Sl0PD 8dq8G2j5s2dBszGMi/jB0Xbtyewtp/MXr8OXjUO1sJcU8jwjcNq+cuN8n2H7ioM84TcB okvA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020aa7d38f000000b004bff6dee492si14131336edq.149.2023.03.21.20.08.53; Tue, 21 Mar 2023 20:09:17 -0700 (PDT) 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbjCVCmO (ORCPT + 99 others); Tue, 21 Mar 2023 22:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjCVCmN (ORCPT ); Tue, 21 Mar 2023 22:42:13 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153293C7BF for ; Tue, 21 Mar 2023 19:42:11 -0700 (PDT) Received: from dggpeml500004.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PhCP40LY7zKsyG; Wed, 22 Mar 2023 10:39:52 +0800 (CST) Received: from [10.174.186.25] (10.174.186.25) by dggpeml500004.china.huawei.com (7.185.36.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 22 Mar 2023 10:42:08 +0800 Message-ID: Date: Wed, 22 Mar 2023 10:42:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 3/4] arm64/signal: Add tpidr2/za/zt sigframe size in comment To: Mark Brown CC: , , , , References: <20230317124915.1263-1-sundongxu3@huawei.com> <20230317124915.1263-4-sundongxu3@huawei.com> Content-Language: en-US From: Dongxu Sun In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.186.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500004.china.huawei.com (7.185.36.140) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 2023/3/17 21:03, Mark Brown wrote: > On Fri, Mar 17, 2023 at 08:49:14PM +0800, Dongxu Sun wrote: > >> * 0x8a0 sve_context (vl <= 64) (optional) >> + * 0x10 tpidr2_context (optional) >> + * 0x10 za_context (optional) > > The size of the ZA context is variable, going with what the SVE has a VL > which might fit into the base context should be included but that's > complicated what with it likely appearing after another variably sized > frame. > >> + * 0x10 zt_context (optional) > > The ZT context is never this small, it's always got register contents if > present. The context size of ZA and ZT here is wrong due to oversight. The ZA context size is related to the SVL, and the ZT context size may also get changed with further extensions. > >> * 0x20 extra_context (optional) >> * 0x10 terminator (null _aarch64_ctx) >> * >> - * 0x510 (reserved for future allocation) >> + * 0x4e0 (reserved for future allocation) > > TBH I'm not sure this comment is actually useful or helpful, it's > already not fully taking into account the variablility of the SVE frame > size (quoting a fixed value) and with the way we allocate things once > we've gone into the extra_context we'll allocate new frames from there > so even smaller frames like the tpidr2_context will go there. I'm not > sure trying to suggest a layout/ordering is clarifying anything for > anyone. Thanks for your point, considering the scalability of SME/SME2, maybe there is no need to add layout suggestion. So, let's discard this commit:) Thanks, Dongxu