Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp13749lqj; Wed, 10 Apr 2024 02:13:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbDSEuHl0HkF+IE/YE3pipKgUdS5K5bZ06GY1QG5tKe8cYru0UwZegG4/4uTf/9SYcnroyD8AvI+Sc9MOyQea9spt2mV2FSwrt2VeJ6Q== X-Google-Smtp-Source: AGHT+IEvDl5I413QNYJuklbr1VNVkMOcijU4jscIDstm/D+CEiIXTLexjYjuzVpPHUNtaAw5aTFZ X-Received: by 2002:a17:907:318a:b0:a52:148a:7aa1 with SMTP id xe10-20020a170907318a00b00a52148a7aa1mr299977ejb.70.1712740420730; Wed, 10 Apr 2024 02:13:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712740420; cv=pass; d=google.com; s=arc-20160816; b=J5ekTPqqb+mmFT3LxQPmwI6RzyaNxOvJ6S2CI/NYfp/NLGxWmyM1smXyuoKFSKYCRU NnUpdO6sjTOo+WPX7jUIKRow3f5DNnyfxLHMd5QIheK3aXXtPkjzWV22sa9oIIh+cxZH lFHMCF9he3PGlU60PCWX39h/AvrIrWit5knxfuHqrpHah/0PoKXkRDnkgNW7RS9lf1tF wED1cezTctd9hY3n3rqrdO4p0UQFlQ5BtckD1ATiTesqBUaTHgBbG0pKoGRzkJT/Bqyg wvbk6S9tYQ8P6+ID0OMtHQ+sG+fmYmbnNFIPe7EVXXIAn2xlt6MbMLs/XP7uXUzPXRv2 2crQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9SSkPjIJRaiY6nqvP2nXREr1dqNKWljAWGAyK7z7Oro=; fh=4n7/ju3//df6Fa7LBqYglZL+ZvrPlBzfWmk1lUl81vw=; b=CBZY2vLd0hzgk4ANfrgEvdtOKCaGkIrBAIt+niX9V6RePmXmPzpUDXjzIbyueXzVcm OM2YHRqRTjy2fnrdZijwQM6KDTX8JQmsHVGPFe2LBQKw7qE6Q6qD2wBaQO4pe8GlDlzm dIeJzPNKHU8YN5wcUB8uN4iMOyXKKB94usPrlKhJbccSTq1BdZ1ljSOYNNy/DhSd39W8 jedN1OEWzvmEZ0cwF/H4d/x5HzY97OddShaPGrKYI3yQF3XOgX2GFH0l6TmWA385fV8z mkWpZ1HM3mrs7+/0TxGd1QTzFbHGaBcNNpWv/kh31R9ZlxtDmEVKOZJBrCeK+6QsKuii nudw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=FdZ1AB63; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-138225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138225-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 le3-20020a170906ae0300b00a51930774a4si5775731ejb.615.2024.04.10.02.13.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 02:13:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138225-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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=FdZ1AB63; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-138225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138225-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 7478A1F21B2D for ; Wed, 10 Apr 2024 09:13:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C369156C67; Wed, 10 Apr 2024 09:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="FdZ1AB63" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 312B915AAD1 for ; Wed, 10 Apr 2024 09:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712740274; cv=none; b=Ply8/Tp4Vwh7H4YDl3cPgmBH1qhIoG7mfQwBawrGFvLM8VWVg2L79DLLtqiyc0otGKTMFvdh/Wd4X4HSfH/a8pJ8MMAE3bDbLyc6IKWrdhu/4+0Bl/k4MM56GBakP4LrunMLl2AhDTP3NsDcUwu5CISy2m+VdwhuL1Rg3t2UL6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712740274; c=relaxed/simple; bh=02wvApY4YND9L077VdDD/SvGSk0u3FcO0EiGYiuzYnU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OAqF6YI3umS4QyXP+PBkOTS0zFTVhILq4Ytt+LWiHZMpljfCjcoqp9nKseUNuj/SzcbREv2pFmHrNeuHylwYPM5vHpFG/8Zw/OBswkJwdSZ8DEnm2fEouSKcsp9qVv3OPBgUEHHDkX8o/hKo5UfcLhaA2EoOfdfHEK6X7yy16yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=FdZ1AB63; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-343d32aba7eso1127838f8f.1 for ; Wed, 10 Apr 2024 02:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712740270; x=1713345070; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9SSkPjIJRaiY6nqvP2nXREr1dqNKWljAWGAyK7z7Oro=; b=FdZ1AB63nr0YKyaVj2pv8TgPftr2h7prARsnXTmUCy9rF6XEob0XnX7FZCb688LVIC fvEJXwZMebpTUfXJIKfCbveRhUHfxPfHVKA+9ytZ5gTKUcOfR6/quQSpeaYGu8MlioRi BwcZFc2B73oV7o8HReulOeM8O7MrgxXZNGxyCof8h02COqdPpv25pWYCuiTj+MBfPQzN WTj4zx1M+NypiM7ediOCQuqAqwJRdVuND40SMibdePC7CzuMjRz0WPyj0s64mBZB9vbb pwz2jjs1jeLiylmdAqMUuERRuefaSNn6m2wfhBsYSwrhcBEhJ/2y+uENsAWPD3FckMu7 tFdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712740270; x=1713345070; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9SSkPjIJRaiY6nqvP2nXREr1dqNKWljAWGAyK7z7Oro=; b=gIhBpiVPZShM/DaT7VbLU2iZ4FapPJDJKDMamOnvFJvzxQHhLhtd3ZxdeRaXc1VM+Y 4sK1P0BLlp0chiNJJE/0cOsGVmAjrUswSXh4u/1ycls3nuuh/GZyUSb3PkxOTcMyDQmQ 0F7jNHgFZ/1ZHYh8M6JvFziMWOyU259mFQ50X5z4zEzokhVQR4XYYO3Ivr4vJ86Zap0A yjijFUxRdfRS76PWNE7YohD7zxtGgb2/vwRm3w9o2QghU0yXqVbyLJuPs91bT2gikMOc KoHAAKcTP4m21ejbSHd/FmUt50r9jTzqOCSiMaUlWzJ9IvOj2OjyIDN3hOquavHkX2XA PBMQ== X-Forwarded-Encrypted: i=1; AJvYcCX8Gt6U5QjCGrM15vk+nDyjSnU3Aax9JmStCp9NECbrp8HtTyzsXXw3+vmlGAqoz6xpx5r7ZZJ0mhE1C5Fdh5NCe+i2HlRSUF+QFPUe X-Gm-Message-State: AOJu0YzcZG0cCscAbFh7urvAUzJvqJmTCmzIKvQ37i0Geh/gc2ymkH/f K24nV40DmqMliNZRa2J0Yy/tt1WoMPQnkDO45HwAqYXRhX5l3ezXyQROtLEc3yY= X-Received: by 2002:a5d:4a52:0:b0:346:500f:9297 with SMTP id v18-20020a5d4a52000000b00346500f9297mr1449075wrs.2.1712740270397; Wed, 10 Apr 2024 02:11:10 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:d4a6:5856:3e6c:3dff]) by smtp.gmail.com with ESMTPSA id d6-20020a056000114600b003456c693fa4sm9079086wrx.93.2024.04.10.02.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 02:11:09 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , 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 Subject: [PATCH 00/10] Add support for a few Zc* extensions as well as Zcmop Date: Wed, 10 Apr 2024 11:10:53 +0200 Message-ID: <20240410091106.749233-1-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] Clément Léger (10): dt-bindings: riscv: add Zca, Zcf, Zcd and Zcb ISA extension description 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/extensions.yaml | 37 +++++++++++++++++++ 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 ++++++++++ 9 files changed, 116 insertions(+) -- 2.43.0