Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9256542rwb; Thu, 24 Nov 2022 10:04:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4c7DvIh1oJeq8sxaS8Y18fKl/2b/eegieKu+P+lWucbRWKO5Sh1IifpvkfOJOyiIX90G6B X-Received: by 2002:aa7:8c54:0:b0:574:2f5a:18d0 with SMTP id e20-20020aa78c54000000b005742f5a18d0mr11219169pfd.23.1669313039870; Thu, 24 Nov 2022 10:03:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669313039; cv=none; d=google.com; s=arc-20160816; b=E95O9YIHdktEEG+jnUoTANBgMwHuSGG443YMwH4GwOzb/dEQVXkg3HesJRVqGVDolc aHAJHfNVhWtTfHVnq8Xsg9Y5pVWBhm16oj5Al/xZG8Id54Hr/xznW7rRw2SWcQj/+gBp pn+QAHzbcebMDbGyWT0BQdj0fYK5guHO2nLNii8y6oBcoR8rHF57ys5IFaYRZoaVjjIh qobq65g0UNYZPawUEUH6wJ1A5BO9HmelVEx0Pjj6VawpRs/1naPOWPiAycBG/l0DN46J nAm4m67S1fRKNTAzrgitds2rZuFXDD49cOK0cnmEZHOra/s6ABtiyXR6qI1Zk6sSkvq8 ujIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4XcU9QM1ckQIRe8QVhZPdinZjsfGER7s7lyyPku7DYQ=; b=Ht/e59eJmxgdZYCJ56xBtpBGWJh0ZPuYNzaJ0d37bpj6uZL+d6yjc5lW6H6XNVXkoB SXS40xXJfxDiBei6DU4ZzQ6UeS3YWIZub/WwoCS8iqoucOGTOeU5icQUikEqyrtPs6HN Tezugiju6dR3+/sVZEjnPoJDHRz38hIvQVQ6giBvGbJiGakTtyT2q63w6lCAc5n1x8xV w57PCMrHuJoxWu9Kr/sDj8IOGSUWoK4Qucuq4/c/tg6Ehrbp2N4/nVyNGPpHouHrUZdr 4zf2Ew2+87rI9rluVSd4Qvd/XTTAwzUz68kJwrk638Qk6FGEnfav3OKzFlmq8581vSwt rcBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=R1b3oSBO; 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 nu16-20020a17090b1b1000b0020a95eb3d4fsi2013846pjb.128.2022.11.24.10.03.47; Thu, 24 Nov 2022 10:03:59 -0800 (PST) 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; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=R1b3oSBO; 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 S229479AbiKXReU (ORCPT + 86 others); Thu, 24 Nov 2022 12:34:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiKXReT (ORCPT ); Thu, 24 Nov 2022 12:34:19 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E23F12F420 for ; Thu, 24 Nov 2022 09:34:18 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id d1so3373627wrs.12 for ; Thu, 24 Nov 2022 09:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4XcU9QM1ckQIRe8QVhZPdinZjsfGER7s7lyyPku7DYQ=; b=R1b3oSBO1JQM5LWUbXVCjlamk8u5bPM5JN3ayETkQT+gate4ffVmiBGlW84XSnwPk/ b0XbSiqw+PMQe3qXaMcBSFpSViggoHXm0b6BP+faSQXldVowV3WTZYjG2sCyfuSx3Ist QZ6NwCs090UekQs7cZy5A9064ozKwMTb2EHafIvYWnXT+mSemqxEX/EqKvgYlXV+ELp/ kUodW+WY43ZZh1x48XR40d3KZHDW0KgRQ1nKrd5/tJzYA/BiGN9JtD7007zaCPZOYVpJ yMPPSTuqCMdelktj1zwIboW5EHbi2b6Im+FpTsFU3o7VJuIqZMTwyTgfHb7bG/AIqBfs vH5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4XcU9QM1ckQIRe8QVhZPdinZjsfGER7s7lyyPku7DYQ=; b=uT2xcLStEUb2vr7FGaGXaeTJ1lrQw9g5NRfBDy2iyIOh4xHPftP4LyFK5890b1/tj5 uWUnVZkLfYBVhY0rgmq8A5clsruY7Xpif75cWf0rK1U0XzlBnkMTpqLUR+UehhepJGGO OigpS3N41nNOPin6YLUb/ppsP0VVQ6lLjCxioTWk81HDDJDpHqYP/GRcXrS9BREmlhp7 u2kjOQvVJo/z4pU9rTyWXE7QJRUMysUAIc8Rg8EECau2yJ4ZsmrXkx7NsRsSqvAqyZmC 5Fp3RNb3cpsDvaTWOtXHrf5Ql/VPkM13yxJx8vm4Fjjq8g9S5Opry5TXraCoZAV07NYP oQvA== X-Gm-Message-State: ANoB5pk5NVpAXi5E6P2MhQF+VCy1IoSrkoUUZbcPpO5xo7t62UjsAgqr S0y5sIm7JKB90aBwyEpMGWnDvQ== X-Received: by 2002:adf:fd01:0:b0:235:83aa:a6ed with SMTP id e1-20020adffd01000000b0023583aaa6edmr19825861wrr.543.1669311257016; Thu, 24 Nov 2022 09:34:17 -0800 (PST) Received: from vermeer ([145.224.92.100]) by smtp.gmail.com with ESMTPSA id j2-20020a5d6e42000000b0024194bba380sm1869088wrz.22.2022.11.24.09.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 09:34:16 -0800 (PST) Date: Thu, 24 Nov 2022 18:34:11 +0100 From: Samuel Ortiz To: Conor Dooley Cc: "Hongren (Zenithal) Zheng" , Palmer Dabbelt , Paul Walmsley , Albert Ou , Atish Patra , Anup Patel , Eric Biederman , Kees Cook , linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Michael Kerrisk , linux-man@vger.kernel.org, Jiatai He , Heiko Stuebner Subject: Re: [PATCH v3 2/3] RISC-V: uapi: add HWCAP for Bitmanip/Scalar Crypto Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Thu, Nov 24, 2022 at 05:20:37PM +0000, Conor Dooley wrote: > On 24/11/2022 17:12, Samuel Ortiz wrote: > > [You don't often get email from sameo@rivosinc.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On Thu, Nov 24, 2022 at 11:55:01AM +0000, Conor Dooley wrote: > >> On Thu, Nov 24, 2022 at 11:47:30AM +0100, Samuel Ortiz wrote: > >> > >>> Patch #1 is definitely needed regardless of which interface we pick for > >>> exposing the ISA strings to userspace. > >> > >> I took another look at #1, and I feel more confused about what > >> constitutes canonical order than I did before! If you know better than > >> I, and you probably do since you're interested in these 6 month old > >> patches, some insight would be appreciated! > > > > Assuming we don't go with hwcap, I dont think the order of the > > riscv_isa_ext_id enum matters that much? > > The chief put it in canonical order so that's good enough for me! > > > > > iiuc we're building the cpuinfo string from the riscv_isa_ext_data > > array, and I think the current code is incorrect: > > > > static struct riscv_isa_ext_data isa_ext_arr[] = { > > __RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF), > > __RISCV_ISA_EXT_DATA(sstc, RISCV_ISA_EXT_SSTC), > > __RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL), > > __RISCV_ISA_EXT_DATA(svpbmt, RISCV_ISA_EXT_SVPBMT), > > __RISCV_ISA_EXT_DATA(zicbom, RISCV_ISA_EXT_ZICBOM), > > __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), > > __RISCV_ISA_EXT_DATA("", RISCV_ISA_EXT_MAX), > > }; > > > > zicbom and zihintpause should come before supervisor level extensions. > > I'm going to send a patch for that. > > idk, Palmer explicitly re-ordered this: > https://lore.kernel.org/linux-riscv/20220920204518.10988-1-palmer@rivosinc.com/ > > By my reading of the isa manual, what Palmer did is correct as > those are not "Additional Standard Extensions". /shrug Hmm, by their name (Z[a-b]+) they are Additional Standard Extensions. What am I missing? Cheers, Samuel. >