Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6038990rwd; Wed, 24 May 2023 09:56:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5akccm52rty60ty+5cNlCByLCn5mAz+mN5Puol/fm9UOGLtNmEbwzViSjVr/SGk2L93rUm X-Received: by 2002:a05:6a20:7d86:b0:105:3e47:7504 with SMTP id v6-20020a056a207d8600b001053e477504mr19573pzj.11.1684947413162; Wed, 24 May 2023 09:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684947413; cv=none; d=google.com; s=arc-20160816; b=VyjD1RsCqrQrjZPLyf3RaLdfKsi12sZRbsdGdjURkSdqwEhnAZ4j5Hah5SsagN72DQ AE6RHo/NDFXyLKnOjDlgo68hmIYOyFk8zpbU9HNACJ6evxpCrIato6j1y4/k+uJQqS9J Rg34zYzKvhQhCAqxQVtbHT8D1qFknZVod7z67mkJCfEiZvf/YGnU2JsCCx8CdOGUkMDn gihXfWAnschW+eNH8Sli3p+C+H1AM7oqufcO3iWpoappzkX0drlXMU4JGukOUpf1gDeZ NHKI2Y573KqFHHg8nrqLkoMu1FprvSOJvbQ8Wm35m3UbjETuaMJEedaiNnfrO3B0Nua3 bHZA== 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:organization:message-id:date:subject:cc:to :from; bh=hL5rPR/NZdPGLhzKiAmBVDZgWsS+Jb1rjlQIr9SR5Z8=; b=EhL1yVH5hXRNcyaWKGhuGRHbC2GAJA/o/R4mhIApHCgA+HLehNPmXpvWmqIqRNM3oP reghbBpLXrurXbviahElgxzP1HN/3wnpE4uta1kPky2pQoez99qaT6+GnhgrQ+JiWw7Q Rs1sDkMaWpCYbSwWHmLZ2DmeT1vnFdDuZbeyZOFGNEC40LBUt+rdvsaCAlaXIJUcB8kC Q5VRwdO+TlmNkwdp/yC5WrVffa4kyxHiCg6zxZwphLoSiNChSErXiLN9eeFOYLqNVkQC bBzzirk+AwboKXygxLdXBqHlss/1eQmLrf45bo9q9NVPAMFam73t8WyrAa1rmJkret+L 3RqA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020aa796ba000000b0063b843131b1si8522352pfk.324.2023.05.24.09.56.38; Wed, 24 May 2023 09:56:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbjEXQQi convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 May 2023 12:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbjEXQQQ (ORCPT ); Wed, 24 May 2023 12:16:16 -0400 Received: from sinikuusama2.dnainternet.net (sinikuusama2.dnainternet.net [83.102.40.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D474DC1 for ; Wed, 24 May 2023 09:16:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sinikuusama2.dnainternet.net (Postfix) with ESMTP id 34C4E6275; Wed, 24 May 2023 19:16:08 +0300 (EEST) X-Virus-Scanned: DNA Internet at dnainternet.net X-Spam-Score: 0.92 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_FAIL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from sinikuusama2.dnainternet.net ([83.102.40.152]) by localhost (sinikuusama2.dnainternet.net [127.0.0.1]) (DNA Internet, port 10041) with ESMTP id DWWyND0Ki8HC; Wed, 24 May 2023 19:16:08 +0300 (EEST) Received: from luumupuu2.dnainternet.net (luumupuu2.dnainternet.net [83.102.40.55]) by sinikuusama2.dnainternet.net (Postfix) with ESMTP id 01392605C; Wed, 24 May 2023 19:16:07 +0300 (EEST) Received: from basile.localnet (87-92-194-88.rev.dnainternet.fi [87.92.194.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by luumupuu2.dnainternet.net (Postfix) with ESMTPS id 228032C63; Wed, 24 May 2023 19:16:02 +0300 (EEST) From: =?ISO-8859-1?Q?R=E9mi?= Denis-Courmont To: palmer@dabbelt.com, linux-riscv@lists.infradead.org Cc: andy.chiu@sifive.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v20 20/26] riscv: Add prctl controls for userspace vector management Date: Wed, 24 May 2023 19:16:03 +0300 Message-ID: <3656227.v5FYL8H6MN@basile.remlab.net> Organization: Remlab In-Reply-To: <20230524092530.7773-1-andy.chiu@sifive.com> References: <20230524092530.7773-1-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" 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 Le keskiviikkona 24. toukokuuta 2023, 12.25.30 EEST Andy Chiu a écrit : > How about adding the following 2 patches to deal with the problem. > However, I am concerned if this makes ELF_HWCAP too complicated. e.g. > Future extensions may as well want to do something here after we create > an entry here. Fine with me but I feel that we are missing the bigger picture here, as to what the usage pattern/guideline for the prctl() on userspace side should be? Maybe it was already discussed, and I just missed it, but I couldn't find it in the documentation. -- Rémi Denis-Courmont http://www.remlab.net/