Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp203676lqt; Thu, 18 Apr 2024 12:26:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZJoROLz5PSe+7gRpggLYVP2Ca90QX5X/K2frfQ0tp29QYZpWq3EQd8j5O8ir8+gXoA3rWk4K6kdJXnP2cGOubZXc2G2DBs//3GUjmBg== X-Google-Smtp-Source: AGHT+IG3tOG06mL8Oqx/wIMseAo5FSxCHAAgHb/ON0/k2CcVomi7HrZ2H7C4bUtnElAj3P8uvuk9 X-Received: by 2002:a17:906:c141:b0:a55:7614:fa44 with SMTP id dp1-20020a170906c14100b00a557614fa44mr2579250ejc.3.1713468406097; Thu, 18 Apr 2024 12:26:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713468406; cv=pass; d=google.com; s=arc-20160816; b=c8NXPPgirZyAz5KsW6swKKlOCaCahOyLkVpYtkBaAv/julilpIovquKfo+fb7Xp1O3 68tZG3swWH1dHlZrX6opKaIsreM+Vn5pMjSGIK28FnlIViZqamsv9/EPgW3Tz/zqxCXR 1iion7DcbepgAaUL/vTTlrk5GirD01uIPZ+VlQxVnbLjGUfPBPGmEQfs6cSDNoBAWiXb NvmeJoLuqdqZj32/j3PazOph41z+xF0fqig2wdAvFLiS94cubkhaDwQL4Y+iyJr29kSS ZmzP9oxVSZ20MJJKHtAkkKx13wj5JY/EQfKqdIQhrNQVIIFWAOHdopWqKqMBgVqiE8c/ bTDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=KMNMsgIxykHwVLRcqTZk25HnL0Z5DBPcc9H1w13fRk4=; fh=a8SSy+6hE9gZv60A+Hl58jr6AlwRm+tUkjCkLPFj9KI=; b=kxu/gtQ4RkKPVlH535frunAVWAmhBURf/ihj4BTA/GS0UDbXq7Yx0ZkxLZUVWHVoQV vIu0xp/E6gjAHnXsOJdwVrUa0pQxHkLl6kAYW6y9DTVT6iEjcrYH1L8KU6dFPCVqEHcf 0jhJUXqMBKdWJNx/7+uLToRyzupqpXUZYFTF3uZh2GAW6SFRzUExH3pV5P0MEJSYHmga DOVwESUEX9o1sMUjxWwkBL6zdwpnCofVtRs0lMhmJtlZWEQ0qDUlMPkVaP2bVmOeq2yo fhkG2jPoHYIfUKcBFEx1lC03Xrp9YAgxaiCJCC3cOkg1rOfct4c5LmnQYJMRl+DDD1un CFXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b="wh5BN/C6"; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150170-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g15-20020a1709061e0f00b00a5222710986si1183088ejj.134.2024.04.18.12.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 12:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b="wh5BN/C6"; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150170-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 22AD31F237DE for ; Thu, 18 Apr 2024 13:28:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77B0016191A; Thu, 18 Apr 2024 13:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b="wh5BN/C6" Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 579EF15FA91 for ; Thu, 18 Apr 2024 13:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446907; cv=none; b=bl/FqG+aps3Tl8UA45aXmPSQkhO23wFyCsqELSaKKH+enc/3qqmePrs7ulRbDvC/8jqd8nydSbgKqttRGxldddswMcB/yzmuu0z4e4ji/LJZM9sRwQNvN6Dht40AZZ6bj1AzE4lIXhhb/DoCddnDPl8Wuq/0vpqC3LfmeKiRTHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446907; c=relaxed/simple; bh=xlB7rdi2o9xH7y6LdwhVg9RVEN+FAlcEKx+Jy8RyAyc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qviX8cs63ILjd79RCa1SAROYHFT5Bi62l+FL4ePwthEUIAm1ORi5IZP0ii+bdxdy1kh8Ck865i49KfVghGYH2/d7jyeZAYCPOjjl+e8IEHxcy35kZbC6O+Iw0UvsgY07TLwBraQariDY054zA48vJyWXefmawtERn1vSdojLHI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org; spf=none smtp.mailfrom=brainfault.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b=wh5BN/C6; arc=none smtp.client-ip=209.85.166.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=brainfault.org Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-36b045c17d5so6040755ab.0 for ; Thu, 18 Apr 2024 06:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1713446905; x=1714051705; 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=KMNMsgIxykHwVLRcqTZk25HnL0Z5DBPcc9H1w13fRk4=; b=wh5BN/C6ovuEY6CE4JRdE/sqYVByicuEaAlCaOsUeUFhM3jcFfYTpsBhKDnaJW9Hho GCXfvRTFXXW3/fzppewG3dxxUAq/2BJjcG86+ztbNUVUCUjaH9mV2XzXbvHvhYPXgift qeZRuJm9bT0qK9TLbkDIKvyeWExVpsQOwCU4aT9Sryy9T5pacPvPJzBqZShV2Z0zE7JS BaOVStRsA+OnbUWBBVR+LFOI+lwFc1A3ohFULOT1DWWmJALOBjBikLODStgJuJXbNtZK ugOcQ+ZRGBvXDxFeyLgME52HSpE5lOxU43Tfj7QNj8JC1NzG1iRYgDrd/fbZSUBESxGL ntcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713446905; x=1714051705; 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=KMNMsgIxykHwVLRcqTZk25HnL0Z5DBPcc9H1w13fRk4=; b=EP3RL44BUYCWXQWxjvCLJ4zKKHzrWPDY5kpBSlFTd3iS82gxJrhY+zv4fOiCrzh+sn A7b6WhpeQt/9YVYIGv/nqfedirN0y5yY1G7iMlFhxbihC5/9splRw9dLnwx1HlzShHIB UjcaHwo4vgvK77ZtKKizAx71fMCNOa1dW9t8wk9wje5XGoEzWJUhVtC//yMjysB+wbfI DN6+QVEWohXevnTJp30UaoIYhcf02IBByqvX2i4f/5PfPTAC9915uet0nZfnEzoTnOr6 Cxs9SYfyb08+5H/Kzhq/GIQIG3Bup/tR1GZdk/3xN4VBBRRnx7brNAJfaubT8ZeeQ5RI BvmQ== X-Forwarded-Encrypted: i=1; AJvYcCVOO6V87AGQ7BjES3AQ0Wj7iohu9JPi3RskI9uaiQB4s4TyBUiOYFQv5m20jEPBwx/Va0WayilME8HOdlEz2XIJNfScCCb0/msBhdAA X-Gm-Message-State: AOJu0YyCE/kbhi7PPl862wMBWyAZ9XsCXjwR1nb/L2nKor7qj9GQEeX3 iynZvdYCnW2McdaNPNb0dyYWcOuIn9GYh+kb/iP1QUzSY9UE1dRMKwUWciwV+qTmjsU6/m5dD/Z X0DHSGfpgjEc5KcGExbbH4LZQu27wqgQA6bKPKg== X-Received: by 2002:a05:6e02:1c8b:b0:368:920b:e211 with SMTP id w11-20020a056e021c8b00b00368920be211mr3604422ill.5.1713446905449; Thu, 18 Apr 2024 06:28:25 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240418124300.1387978-1-cleger@rivosinc.com> In-Reply-To: <20240418124300.1387978-1-cleger@rivosinc.com> From: Anup Patel Date: Thu, 18 Apr 2024 18:58:13 +0530 Message-ID: Subject: Re: [PATCH v2 00/12] Add support for a few Zc* extensions as well as Zcmop To: Palmer Dabbelt , Palmer Dabbelt Cc: Jonathan Corbet , Paul Walmsley , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Shuah Khan , Atish Patra , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Palmer, On Thu, Apr 18, 2024 at 6:13=E2=80=AFPM Cl=C3=A9ment L=C3=A9ger wrote: > > Add support for (yet again) more RVA23U64 missing extensions. Add > support for Zcmop, Zca, Zcf, Zcd and Zcb extensions isa string parsing, > hwprobe and kvm support. Zce, Zcmt and Zcmp extensions have been left > out since they target microcontrollers/embedded CPUs and are not needed > by RVA23U64 > > This series is based on the Zimop one [1]. > > Link: https://lore.kernel.org/linux-riscv/20240404103254.1752834-1-cleger= @rivosinc.com/ [1] > > --- > v2: > - Add Zc* dependencies validation in dt-bindings > - v1: https://lore.kernel.org/lkml/20240410091106.749233-1-cleger@rivosi= nc.com/ > > Cl=C3=A9ment L=C3=A9ger (12): > dt-bindings: riscv: add Zca, Zcf, Zcd and Zcb ISA extension > description > riscv: dts: enable Zc* extensions when needed > dt-bindings: riscv: add Zc* extension rules implied by C extension > riscv: add ISA parsing for Zca, Zcf, Zcd and Zcb > riscv: hwprobe: export Zca, Zcf, Zcd and Zcb ISA extensions > RISC-V: KVM: Allow Zca, Zcf, Zcd and Zcb extensions for Guest/VM > KVM: riscv: selftests: Add some Zc* extensions to get-reg-list test > dt-bindings: riscv: add Zcmop ISA extension description > riscv: add ISA extension parsing for Zcmop > riscv: hwprobe: export Zcmop ISA extension > RISC-V: KVM: Allow Zcmop extension for Guest/VM > KVM: riscv: selftests: Add Zcmop extension to get-reg-list test > > Documentation/arch/riscv/hwprobe.rst | 24 ++ > .../devicetree/bindings/riscv/cpus.yaml | 8 +- > .../devicetree/bindings/riscv/extensions.yaml | 124 +++++++++ > arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 4 +- > arch/riscv/boot/dts/microchip/mpfs.dtsi | 20 +- > arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 4 +- > arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 20 +- > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 20 +- > arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 4 +- > arch/riscv/boot/dts/sophgo/sg2042-cpus.dtsi | 256 +++++++++--------- > arch/riscv/boot/dts/starfive/jh7100.dtsi | 8 +- > arch/riscv/boot/dts/starfive/jh7110.dtsi | 20 +- > arch/riscv/boot/dts/thead/th1520.dtsi | 16 +- > arch/riscv/include/asm/hwcap.h | 5 + > arch/riscv/include/uapi/asm/hwprobe.h | 5 + > arch/riscv/include/uapi/asm/kvm.h | 5 + > arch/riscv/kernel/cpufeature.c | 5 + > arch/riscv/kernel/sys_hwprobe.c | 5 + > arch/riscv/kvm/vcpu_onereg.c | 10 + > .../selftests/kvm/riscv/get-reg-list.c | 20 ++ > 20 files changed, 394 insertions(+), 189 deletions(-) > > -- > 2.43.0 > Most likely the KVM RISC-V related changes in this series will conflict with the KVM RISC-V repo. I will provide a shared tag based on 6.9-rc3 tomorrow or early next week. Regards, Anup