Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp178640lqe; Thu, 4 Apr 2024 03:35:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrG028UQUzefVY+ZD3SMxSC1rIdwYM6k/YC6TG6qsJ8tN4pYCTLUpXtpC+t4/pACU8WMSkr4ahvg70PHeJIbZjOejFT30sHFxEXZ/KZA== X-Google-Smtp-Source: AGHT+IGSxa4AivxornV3L5BotTxq85Vlb9SR6RpAplU9ZIVyBQeyOstHMxkYL2fnFSK47JNnL3gW X-Received: by 2002:a37:ef11:0:b0:78a:7329:5f38 with SMTP id j17-20020a37ef11000000b0078a73295f38mr2014987qkk.7.1712226917626; Thu, 04 Apr 2024 03:35:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712226917; cv=pass; d=google.com; s=arc-20160816; b=0R/fFw1sVCYxBIqkvBTYqWZBrH5ZweRHyQ1w3h4K2MTwdyZQkD8/V/ps9CY3xPQ1cA V3CJrNh5QFrIu05o2V1uf+c7bEFH6BNZkISHAHq4qh55z86ZZ1EUUSW9ifVRWJ93fq4x +W/Hsen9CeJXu/f7Ud/q+AhBLiZhyq+T5kin8qpvRS2k7Ft8wa3aEjlB9Wd+IscM+Wl5 bh3weuk0O6N3WJ+101IICXhxFwjgOiw38qJP4rOyTuoVRoPAcTzXgrPqLW/EtojrxuuM I5ssG2VRGIEwJ3W81uwy/QYiVUGt0/YO7rfM4Bs3crEgpm7N/TT2wT9Wx4dX/Sd+sbm+ akpA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=iku5aBhZQx5P/6uMfa9dqXU93ym6YmGWtDxr/u9bzFk=; fh=lzYAXC77TLePFq1cFr5hGyF4DjjfgEB60gxXjQlbZQU=; b=OVaWZBAjKq9KvLc4xpc+ZMKWOcwfoKkTSVaavcPey7SgHBjc1GKJXONgI5ilPXKjcR f7DJmzFgkzb7vf8wCu6o7CLyQwUEwPq3qdZbhWflu5Epqk6K1zKdS7zLGbP8ReichfMo QEZfVapY8gZGU2DsH54/r7SQT02T12TOtNoXHNHo+skBX7uHdq2lLyKhnMvRAXysdkK1 tU1tu1DI2Onp4rYUsXdjrJxYueSRdLoODXO+XN7bNhh5VXYWAhnkOh9OCjygvrPnOd4+ dfv4V1mF51ib42jSn9hdXDsb8xDJmroTJvNg5qtaKOMXmoqw+FNd+XD6MQ7jxQCr61BN Kz7g==; 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=aY3toT7s; 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-131243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131243-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f12-20020a05620a20cc00b0078a6555fdc4si15994899qka.405.2024.04.04.03.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=aY3toT7s; 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-131243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131243-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D6881C20C44 for ; Thu, 4 Apr 2024 10:35:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DA757F7DD; Thu, 4 Apr 2024 10:34:30 +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="aY3toT7s" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 A6F667EF09 for ; Thu, 4 Apr 2024 10:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712226869; cv=none; b=AvafIzLrADdrrpfsutBQK6zBUwU9kzDRJBsPtK55yHCMAve9mpFVaxUcRh73z9h3ZP8NXLEbEjqP5mN9zYYjErBlS0g29UcKqt8vzLT2hT8EgqXlgiqXFKxoyT55UokzIx2AJfhwQ9sF0Cq/8sQ28jrMtLB7NRO9V9qL7gh9EO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712226869; c=relaxed/simple; bh=KEz0KdTIXXXEwmuecoQuGlTwELOY5TUh2XKrhjj0EJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ba+KV4ocTX7qyN1EgFEI3Qnl3knkK9+HAEpZTg8nx/9eoaeOJMFwHnxwLlAwI8oxn8S1CIJ3+BJBzpxg0CI7xJBp1BYH/2s+hbBxLvuSUB4HYOCi7OK44MORjYySXK7LQ+EJ1ByHHpuWRk0zXH3ZOemo3qSYqo2JskGztumeiP4= 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=aY3toT7s; arc=none smtp.client-ip=209.85.167.43 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-lf1-f43.google.com with SMTP id 2adb3069b0e04-516cc5398c5so142741e87.0 for ; Thu, 04 Apr 2024 03:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712226865; x=1712831665; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iku5aBhZQx5P/6uMfa9dqXU93ym6YmGWtDxr/u9bzFk=; b=aY3toT7sUqL2JeNUucYGJJAxZhBxw8OTzLZk4AI/5bkY7hzDu5MMu0u50ojuu9S2tZ V+4yWfFlOfs7A0eSr2ndsilreAf0K+/CatPPUhMz+XW0D+4gaFZs94Fpwj5EB+ix5v0l 3yy0Mgpt+/1R6ltkQcn5KuB8sYmiUXYdNh0bPaW3Tt7Ms5QJ9t5e5RFqhoamQpFZSDaG FBTTK8XBrHLIE85RXfKSMy6RRWfj3cVw09yPphsB9Vpq7lUp1wzdC/a91ZVnYeM9IRdG uxHNJDEj37UL25vftb+EGfrk8RHEunSzwOBnlph1Ja4EzLT5YQIFO647hBDf9seNjazD Kbmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712226865; x=1712831665; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iku5aBhZQx5P/6uMfa9dqXU93ym6YmGWtDxr/u9bzFk=; b=XwUQG/QjH27G/agGbtUAwwRoEMoYydjaPgObEx7/NfYsnC79JEHNA1rTQxWlmeIwF+ VAb8JkAAQpCQf51Fmo2v2M0KmT2u6hpaqtUXOIxDhPUCl7FuH3T0BByziLbCr7UzA977 BZmSiN1+kAr6bxcWYdSJ4HqeQVCE9erC8iA8qOMg9uo03Wb2cDRT19NAa7pnHfZ7Fa0Z rN/IcW8nP+zmaSKf88C1obYBesCGai8wODvp+fy7Tl5Qf2wiGuk6PVfnrQczrCgv5Btv U23A13dOmWMQZyYpVNFlFWjsP7Btkx76SUUh8j5nmJFcvvGGx7xcNHUMNsrSsBt2ITpQ Iedg== X-Forwarded-Encrypted: i=1; AJvYcCXO2Nsa+zMZHWS7TiObm0Jbd70FKV4HHCPUjTWts0o+6fb4klk/18CeL3wo/fDq2L/oK0YRFFNvII/z+hr0oJRpQrDrCPpSVd0UqDhx X-Gm-Message-State: AOJu0YzJ+CgD3Fbw32nhARd6YJwSQv2p/BNOViQfq/AASccASBtybUa1 G+4mW/WKpHJSUKx4TrUWAlxzvKnrj1mQKt2rFZZlkSt2Fn7jHVvtRlgcN+fp+yo= X-Received: by 2002:a05:6512:55b:b0:513:cfb8:8cb3 with SMTP id h27-20020a056512055b00b00513cfb88cb3mr1321593lfl.1.1712226864728; Thu, 04 Apr 2024 03:34:24 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:555b:1d2e:132d:dd32]) by smtp.gmail.com with ESMTPSA id ju8-20020a05600c56c800b00416253a0dbdsm2171340wmb.36.2024.04.04.03.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:34:24 -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 2/5] riscv: add ISA extension parsing for Zimop Date: Thu, 4 Apr 2024 12:32:48 +0200 Message-ID: <20240404103254.1752834-3-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240404103254.1752834-1-cleger@rivosinc.com> References: <20240404103254.1752834-1-cleger@rivosinc.com> 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 parsing for Zimop ISA extension which was ratified in commit 58220614a5f of the riscv-isa-manual. Signed-off-by: Clément Léger --- arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index e17d0078a651..543e3ea2da0e 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -81,6 +81,7 @@ #define RISCV_ISA_EXT_ZTSO 72 #define RISCV_ISA_EXT_ZACAS 73 #define RISCV_ISA_EXT_XANDESPMU 74 +#define RISCV_ISA_EXT_ZIMOP 75 #define RISCV_ISA_EXT_XLINUXENVCFG 127 diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 3ed2359eae35..115ba001f1bc 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -256,6 +256,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { __RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL), __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), __RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM), + __RISCV_ISA_EXT_DATA(zimop, RISCV_ISA_EXT_ZIMOP), __RISCV_ISA_EXT_DATA(zacas, RISCV_ISA_EXT_ZACAS), __RISCV_ISA_EXT_DATA(zfa, RISCV_ISA_EXT_ZFA), __RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH), -- 2.43.0