Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3955022rdg; Wed, 18 Oct 2023 10:26:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGg22kstdkwDYsVkoCmc5efg3gBuzd6UnLxguQhbVwMX2sw1qluqM03UOOmHXcQx/sltP6J X-Received: by 2002:a9d:6449:0:b0:6c0:a98f:56e0 with SMTP id m9-20020a9d6449000000b006c0a98f56e0mr5514497otl.38.1697649984500; Wed, 18 Oct 2023 10:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697649984; cv=none; d=google.com; s=arc-20160816; b=kw5vYee7qzo6GmiMX+bmrol/vA5LEc0uwAhWjfq99n0KwyM+GWaDMsF+4CGruJYttK mkc7IUc44aFOgCdQUcBy7P1h0E203eguTSQxd7BMy7U0c0uHTgZj+fOyYbTcuJB4dJ/b 8+3P/XQA+lJR7KZyqYFTNb6oqETBMggZWGlp5JdypDqwaTCg2+5S+CSTG0YJXmsF0UG7 sCHi9jrqzxEIG+T0DH4uR+Gy3+bppDIK/f9HGFcJq6sPh029vWc2OZMYYQ3KTROEMUqA SNbtnlaxdbZ5ktFjSb2hG+7X4Ob+D+AHEnl3bMcXQxPd4wDebeQxEXaDXkRdeodYs6Hw qDMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tbixeUBAnXxzznhgP0IZfHR6Ap9ypS+fHg7KPLOGdDs=; fh=H+zLew9COpjImfZW/7m535He/UK/q+/ga4lRW1i3Je0=; b=t63bsXdSu9jte70Tb/QuvrpXAGsxnNomkIHyY+F+rZk9JXLJAuSFMUnCRvesAm3qQM 24QpPbo32nfK4ewun23qAQV8dhxTwqT7s3pWo5+45dJCY4K/ZM5NwTJnCbI2k1m9H8oa iyZCyL6Ak0CUz4WWpmsR7nkuJ83F+Erwyo13akGGRtYZjVAP0mx5EdGZHtD5BqzEM5Ob xiOwJt+8REGlHFaGpaHSNspPuCOIW8d+t7umVsX4iyn+Cs83D4msohiGBX1w/wCr6FmZ EOjaUvvySkGHvnHGBQa/0Q9SRsWOHbSJGaOhxDlA/3W1x7x8AOMfNeio0CcwllGtw7ze gMaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=o1uvyhw4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x6-20020aa78f06000000b00690d4fad431si4115895pfr.260.2023.10.18.10.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=o1uvyhw4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A1E70807744A; Wed, 18 Oct 2023 10:25:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjJRRZd (ORCPT + 99 others); Wed, 18 Oct 2023 13:25:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbjJRRZa (ORCPT ); Wed, 18 Oct 2023 13:25:30 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349F7449C for ; Wed, 18 Oct 2023 10:25:27 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso101344971fa.1 for ; Wed, 18 Oct 2023 10:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697649925; x=1698254725; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tbixeUBAnXxzznhgP0IZfHR6Ap9ypS+fHg7KPLOGdDs=; b=o1uvyhw4mRfZ0Oix87hN8GJA2ClSos4OYPMiO6an7rw5MbWQlhzuqj2eoL5yOrVwtP p5QUS6/h0TYpeOjkUBnHYQl0ra7W99G/ozAUFAGw1+eNYSqRl1zDd5BEyr4u0wCTxBI2 ExUBMA6CSR6G11LRLu4MkCxjeabymUgc7wyEXYwjP17INwvLCKjskjsxuyR1rZXqgwFh yijNiifZUhpSDkQo1zOl1h6HufVzyM1NoY0fVzXQKAsl9YTPe1oyAsKmKH0RCmTc4ic4 sECIegpq2PWyhtoMuKd9k8ZuzLSAmnBau2ehOzrHVgaJwRANXdUb+HL7u29/tPU5Z/wK 3x5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697649925; x=1698254725; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tbixeUBAnXxzznhgP0IZfHR6Ap9ypS+fHg7KPLOGdDs=; b=Ii4CSjJiOMJR+ZDcWophODd2D3qk9YmhywKPBUei7lr4xGijXB/Gu1nT9uhHf8uXfk 4M2LIuUo7axHXdQwsf5+gTBxx/A3yBCvai7zhHzuBgBiAnOWQTAcsaDL9x/Wq2n+hw8q mpGVEjhecvBeoajI/dAntSE18vHwgrXhMobsQIITyl9AxZG9994oMiaSYmM1sOb5wcEC MUSQHO66VRfkoOnwPfdV9AT9HpUKxu28BnveojWaYhIeSP4QFAeCvZnL571t2bvhLdun SpmPex0PToH/FHTmgTykN8kl5NJMBJIt6wxHpkbxCat4Ml7G97tp3lt7eQLgvDfXl6si w2uw== X-Gm-Message-State: AOJu0Yy3nrm6cpKzaw/du++9x1vDrah/kmFDfbUms+pMjP+7Way4GQEP 3cr/8MxlcGAlqNTveJLN5+hEZdJLX8Tzu7amgN6iWw== X-Received: by 2002:a05:651c:10b2:b0:2c1:522a:8e25 with SMTP id k18-20020a05651c10b200b002c1522a8e25mr3786476ljn.32.1697649925479; Wed, 18 Oct 2023 10:25:25 -0700 (PDT) MIME-Version: 1.0 References: <20231017131456.2053396-1-cleger@rivosinc.com> <20231017131456.2053396-4-cleger@rivosinc.com> In-Reply-To: <20231017131456.2053396-4-cleger@rivosinc.com> From: Evan Green Date: Wed, 18 Oct 2023 10:24:49 -0700 Message-ID: Subject: Re: [PATCH v2 03/19] riscv: hwprobe: add support for scalar crypto ISA extensions To: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Albert Ou , Jonathan Corbet , Andrew Jones , Conor Dooley , Samuel Ortiz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 10:25:40 -0700 (PDT) On Tue, Oct 17, 2023 at 6:15=E2=80=AFAM Cl=C3=A9ment L=C3=A9ger wrote: > > Export the following scalar crypto extensions through hwprobe: > > - Zbkb > - Zbkc > - Zbkx > - Zknd > - Zkne > - Zknh > - Zksed > - Zksh > - Zkt > > Signed-off-by: Cl=C3=A9ment L=C3=A9ger > --- > Documentation/riscv/hwprobe.rst | 30 +++++++++++++++++++++++++++ > arch/riscv/include/uapi/asm/hwprobe.h | 10 +++++++++ > arch/riscv/kernel/sys_riscv.c | 10 +++++++++ > 3 files changed, 50 insertions(+) > > diff --git a/Documentation/riscv/hwprobe.rst b/Documentation/riscv/hwprob= e.rst > index a52996b22f75..968895562d42 100644 > --- a/Documentation/riscv/hwprobe.rst > +++ b/Documentation/riscv/hwprobe.rst > @@ -77,6 +77,36 @@ The following keys are defined: > * :c:macro:`RISCV_HWPROBE_EXT_ZBS`: The Zbs extension is supported, as= defined > in version 1.0 of the Bit-Manipulation ISA extensions. > > + * :c:macro:`RISCV_HWPROBE_EXT_ZBC` The Zbc extension is supported, as = defined > + in version 1.0 of the Scalar Crypto ISA extensions. At least in my v1.0.1 version of the crypto scalar spec, I don't see Zbc. That seems to be defined in the bit manipulation extensions.