Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp96023lqb; Tue, 4 Jun 2024 06:15:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSMtXTw+hQcsqbjBl8I1S0NlR+++IHNT2o7AuPXRGMj3XEVWCCY9Hqn7xEomAv47zC9/iCxf0RakOz38/boMdQaDi3V3C4p6sTBZ5qzA== X-Google-Smtp-Source: AGHT+IFKXclaKQumrKkxEgXS78CKp6lWy2OAdohQkDQb+9IqllNuWo27H6H2QQ+Ity38rsIT52yN X-Received: by 2002:a05:6a00:2442:b0:6ec:ea4b:f077 with SMTP id d2e1a72fcca58-7024780aefamr13358121b3a.16.1717506949974; Tue, 04 Jun 2024 06:15:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717506949; cv=pass; d=google.com; s=arc-20160816; b=KVuGkAbIBQ9VySgfq/+rBF3LJxpCD3BzrCM7Bnh7UYDLDNNvBE+VGv8XVuh3ygJq22 x1Q5/HwGy4em5htF0oV6ygHO6SwET09TsLQLODCRCdtUvj63jnZlzAPHtV0nIuU8PNJi C7pibBM7sWk2sfyHzprlExVt7OsCyX58t+mBcHkYeQxKpFpkuIsG4qaIYp7JebIJXDrZ tsoYbyuQqEPY+oWp/3kDQOHmougIneEPRaYKgkNMZwM+dPZZ08rE8HKqa2ZWPFgBUISQ 9IpoUts1PZZkB3TfJpst+Q+WF9hnGSDj+cfEHp04R9NhbxSCQEMw4cfSkt1xPz6K20pS Uxnw== 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=FH0bMsHD4vaf3RN6eECK/cSeWYzW9s54IHrYdJwEDyo=; fh=9nEmBd9cm7wO28cbsYAcAOdbCz3naxHZ1Hb1GoJccN8=; b=sVI5R/RPgLPbogGYLl0xU5Jb6HvulDGKLuVAxr/ciFBix3/7pPLCLHnYk+KhDB6bJm MOuThTiGG7F1DBOHMnx+flWIOG4AQuu05VuHAkoJU3D9sKSfzZbdYokyes41kOHpU65Y mIc3LvJuoOIW2Yw1bTWR/xqisDO8Kojgsl+7+tH/022BpmrOuAOOWafHeuzbFiKkk0ky CDm5QqhaBe4YN19KQAQwBgV8I8YpP78TUfCAuXOnSSRhOIuzH0Y+NJqCube70EZOjnYV 8MQ21S8I5iXpzO1gc29Nb16S+veCmjG2NxiYC/oOYGKHmWtUTWRuXfLopzGwknZvRu32 iI1A==; 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=LRQ6IZzk; 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-200627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200627-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40c21dsi8863403a12.584.2024.06.04.06.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=LRQ6IZzk; 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-200627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200627-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 73EE9B264D0 for ; Tue, 4 Jun 2024 12:47:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E357C146D65; Tue, 4 Jun 2024 12:46:35 +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="LRQ6IZzk" Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 B8B21146A60 for ; Tue, 4 Jun 2024 12:46:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505195; cv=none; b=SxkXctj5zGTjC9+9pbHSPnmLnJRXlMrAemq0gD+jfH8TJu3irNjx8Xoz/S8sknhw4SuTgW4v1ktmSBxKqfehNG6lpODuc6iYzh0YRsWANc7mIKl4/dTQjkuBj9iQfo7/yNfi61Us+VU/SkCTiM2RYqyLSZ08M2aYY2EJ0ugCnLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505195; c=relaxed/simple; bh=VTiruecrUkveLlCZAhzKcZMvMHqPYnsZCej7f/kDh9g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YYMyOfeB3towoRj/GU7TJ89qi/1p8bTveQxIXEdBTZWreW3UJlYI+IFOouzvgTdSWsfkJZJw9CLTYKNa4D9176k/O16RYrp4P3ZANYkzgh7bDA0zBDIOUOOQ5gerOuipGfxhqkSpaBFCxbGbNwVqIrsIuYkndvRtxOkSE+RfWqo= 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=LRQ6IZzk; arc=none smtp.client-ip=209.85.215.182 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-pg1-f182.google.com with SMTP id 41be03b00d2f7-6d125d826f4so202570a12.0 for ; Tue, 04 Jun 2024 05:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717505193; x=1718109993; 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=FH0bMsHD4vaf3RN6eECK/cSeWYzW9s54IHrYdJwEDyo=; b=LRQ6IZzkRioJWdpzQTuhurKboK5aC5VonqNPRZyoKWGzY8s4YOwwtYVHXa5plrA6FH NkhIZk61v1iQbULszMgcEr0E5UJf8hr/gRWq1S4TCD/NVaAol2D0OhWYAZwaq9EUd887 f04uj7Yxb1zP5pN6GbxZNzqPrn2BYpoaCnxVPx8CwwFN/E89hJN8RDITjxyMJ3B5L1aH lVZaCBe4O8DHaIwQNZgms3Nma/2AO/wnL0fb63N69ylorzvxwVJCoF1dSwgbo2bOOCd8 TWlYBU4d6PaUVqKAh8Y3lfT/HTRVDS0qrWzibXrVf+1+LK9BydId1tjDCmQv9njfy7KU wYUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717505193; x=1718109993; 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=FH0bMsHD4vaf3RN6eECK/cSeWYzW9s54IHrYdJwEDyo=; b=MmRLfUEON9kyWqAVqNVjW+YFTlZRLZCK1aOOV79x4FrLeEQ2ea518yOIIrW8zBQbHA DQN4NYtz7WYr83g/QtuHkD7fKXJdxdc7dl/95Ko+xGyWmOa6jZJOXrkapmcIAn4fW7+i zrzm/5C2o7dE6YCGVb5S7ccUQSnLY/gKxkGtHuxR3BVtG2sOIdiL541Qtq2qChHPp2O+ hFxHlCw2wLwbfubNe+V/lAU+PKA8gRRhoiHfICC1Urxm9wr6yLFojZhW2LZ5e9xaxjbM 8zCL035boC3YzMdeQtMZXz7YIaT9ecQUm3xVGsMT0R5qnybWNyLmeK0gHL9mXz+N7qeS XHzg== X-Forwarded-Encrypted: i=1; AJvYcCVs9jxwRjWaFiVGvqOBDF01st3x7Wlcyk2HkqYIyTvLKzgHSUz42tcRBh99CXZV8JJfw9TloUT5h9goUhnAvrUa4Y14bci69Xx+2gPL X-Gm-Message-State: AOJu0YyjGKHZ2qStSLbMVPa/bxFGQoW3POE6xFESjXA9AwJENUmSBrQ3 3p2rU8Juda4Pz7Y1dgO3Kh303QE7wwu05dy3ax9Bcd/W8+PGGbu7qW8oQWtXhhQ= X-Received: by 2002:a17:902:e5d2:b0:1f4:962f:e006 with SMTP id d9443c01a7336-1f693dd486bmr22891645ad.1.1717505193034; Tue, 04 Jun 2024 05:46:33 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:327b:5ba3:8154:37ed]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323ebc69sm83042885ad.211.2024.06.04.05.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:46:32 -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, Charlie Jenkins Subject: [PATCH v6 02/16] riscv: add ISA extension parsing for Zimop Date: Tue, 4 Jun 2024 14:45:34 +0200 Message-ID: <20240604124550.3214710-3-cleger@rivosinc.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604124550.3214710-1-cleger@rivosinc.com> References: <20240604124550.3214710-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 Reviewed-by: Charlie Jenkins --- 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 5ef48cb20ee1..bd1597578fbc 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.45.1