Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1281754lqb; Thu, 18 Apr 2024 05:47:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmLMUpDsFcLRRZuOeFRPGc7wV0sw9boXUVmtpkSjX9nHHunmD4bt6q1FYHhR5ugj5mNMAAbiATE/rsRTVF2JiJUfhYzc9fVI0SxbKmrQ== X-Google-Smtp-Source: AGHT+IEe97hOd81kfhX5ezFYBnrugzT+5qbioEs4gPZxK0q+3Q+GFCbpaR0nDW3i6MVGHmEFSIrJ X-Received: by 2002:a05:6808:15a7:b0:3c6:f6c9:6bb6 with SMTP id t39-20020a05680815a700b003c6f6c96bb6mr3516507oiw.41.1713444438998; Thu, 18 Apr 2024 05:47:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713444438; cv=pass; d=google.com; s=arc-20160816; b=jvDfrOvF/Sizf4Cv0c/rOVg+FbM1+INkg7BFUN/w9O5ZAa5QiwlhZD6idjZclMAWhC UtFpTtHGRXmw5t45zikvbMm1tLsB+wnKwaU84XfVbCqegnLQDKrioOzevdWisVTet1ku 5AYffyLqQBjNtd/lrQJKkQdRfCGs+oJNB1zKuM9J95leiUd4c1yi2Mi8aYV75YIWwcuk QzFcrS97/GZr+hrd3mYTDb8s/20Vh69PND9CGmobeQ2NSJDkt4eUOf214LptdynZpS5Z 6nFX5zkRfg0AbLCunfBZfokOaXSMNNpiLuHIS+1jDUG9fDrdUhMnjM8G+Saw0+C4cYbO t7vQ== 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=AJJluMz+u6UTg8XM641LtNTBq3D7zPplm+46K1BBT3g=; fh=quypiRmzf2632XUZf8L1znlayEyhIl3svLjjF2G867w=; b=ZwLIC0T4Ef3rzQLZSoJX9EncbWTmsYcMd447S49i7GDymgW8QAzF8W8mbcSJjzS6V2 ayM/oy3XzIE8Alr72/1QlDgKJcvFAWuREKQ/s0CvhuZS8ht/V5lmrYOEJxyjsQGL6Kee efkZYi91Dwq78wZtT3i15ykxKgHa4kGLPBiri+fBMeh338ZERpZEECNQlY6UvOe5fYWq Ab194Zj4iiHEx7Opc+/5YXh/JaSxMdHlZGlull43kvEFV2NPUUR8sKV/9AWpTuVzJBGg 13xloWf3tTqy8q2SC2Uknq8k9WGXaNUrAkQz09viG3qapa2d6/SsSBrVCpVLl4jluN29 a/Hw==; 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=IzRDUPdq; 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-150086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150086-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x33-20020a631721000000b005d5fb7a5133si1401072pgl.245.2024.04.18.05.47.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 05:47:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=IzRDUPdq; 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-150086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150086-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 121B828365D for ; Thu, 18 Apr 2024 12:47:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95F6616C437; Thu, 18 Apr 2024 12:44:09 +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="IzRDUPdq" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 E28871607B4 for ; Thu, 18 Apr 2024 12:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713444248; cv=none; b=sA2bW8hnnLQZQqwW2OOLwyRHzD5Dp77eH3zIP8BsE9r9jTn2kWzhnqlIevEehk3Z1BddWFMPzrMQXfF7awfsnlWgL5LBtdTHN+sIbdvxrQcImth2ya2gb8eovvPbt4jF+LtVVYk/4L5SNY0VqzX3jMFOXrfxkD7NazwuBvhi8mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713444248; c=relaxed/simple; bh=boke7k+fuPr/buwvZEKJqr5O7FQgiL8dA2Us1JuDFEc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Cuq5uBXhZRXORjOSpD0T0iSz8v05WZBz3H8etEYlN2JvMOFv5/uew09zTqfKCWfJHhbcTWyIbnipRBEPUcNnmhK05n1f45TSCvNdvVExxSjfNBEdXTWSkrcUB+TVpZpuJpFMWnPeVaBNKANA8C8WYFNlrdO8k91eXcwUdriw5Cs= 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=IzRDUPdq; arc=none smtp.client-ip=209.85.208.170 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-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d9f829d398so1957801fa.0 for ; Thu, 18 Apr 2024 05:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713444245; x=1714049045; 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=AJJluMz+u6UTg8XM641LtNTBq3D7zPplm+46K1BBT3g=; b=IzRDUPdqJ4Vlg87RINfb9CIyPJREmt9Psx3Qd1IrCBHTLQjoYYN55/s9kaLgRafHp+ mmu3lg3cXMIVebSj3S+5gydCrwz5G5cGLX+gtS+n2lIhpprJYMMGjWeTf6q9joZycq3F wA/ewDw30c3CFmaGgc/M6p0jcEWcmvmFKI8oIeFkC0Dqk1ttxA5EJ/ddZR3keeNHgLu0 LmgFW8GZGMgcqfAOud+b69OSuuxSumW3/NcOJ1D5GoYCqvnWb8tb+AtP6RVybGLiK4uy KpKQpU+Ts8SmSOTn87kOjwUPQPw27WDoe6TXoQQGPL9CmO8Mhxv2bbmp0P1FlB6pA3jh /pXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713444245; x=1714049045; 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=AJJluMz+u6UTg8XM641LtNTBq3D7zPplm+46K1BBT3g=; b=p9rx7ekszOnSpqvqUQNhB2RlF48tBBZxGbiiXjk3kYeDrB43Q9e+pAHzWnmD/s73lS h/ZNsisA40rYlVZB2GCQYGFz5ei4wJhTWGsrFlkYHc4Rqt1A9L8389tHKlEyD/vfqkpr 7v2nmuudWpn/w0/tIkUEUPeuE9XxW9dKSV1U17jLsps9jxIWrdmA2aMRYYBf+gmIju/o poSsr0DkPzSpFh+yL4OpCnvLMh14OeVyQelo+9IoAM97a2eopDPLZXM5Seh6xkDhwvoz h5hOelnc3UAKXilc583q0ghnd/lSEhsFnMKxQ+d4Gb0UQj60YmyfQ1zRPh40WWPFeAxd 3Ngg== X-Forwarded-Encrypted: i=1; AJvYcCX4DR5ZMYiRaqjPV/2ZtAzAhe6skufiduw3VivqxKFUq+iNfkcLxPgfKWXHiaq9iAVG5CyAHG6zy/K1S2fl8h12n2CDqorW2w5Lr5Lr X-Gm-Message-State: AOJu0YwGTkFS6AwSXANj4jTALv2jhz6KR+vDS+xJogLiPIiAQDMMPFWb yCH1KmCu+n3KG+SfLvDXuPVxRcA5SoukpZoBQcPwcpk42pf4e3Sbb2hvEkm18MM= X-Received: by 2002:a2e:9ccf:0:b0:2d9:e54d:8208 with SMTP id g15-20020a2e9ccf000000b002d9e54d8208mr1639216ljj.0.1713444245128; Thu, 18 Apr 2024 05:44:05 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:7b64:4d1d:16d8:e38b]) by smtp.gmail.com with ESMTPSA id bi18-20020a05600c3d9200b00418d5b16fa2sm3373412wmb.30.2024.04.18.05.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 05:44:04 -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 v2 09/12] riscv: add ISA extension parsing for Zcmop Date: Thu, 18 Apr 2024 14:42:32 +0200 Message-ID: <20240418124300.1387978-10-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240418124300.1387978-1-cleger@rivosinc.com> References: <20240418124300.1387978-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 Zcmop ISA extension which was ratified in commit b854a709c00 ("Zcmop is ratified/1.0") 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 b7551bad341b..cff7660de268 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -86,6 +86,7 @@ #define RISCV_ISA_EXT_ZCB 77 #define RISCV_ISA_EXT_ZCD 78 #define RISCV_ISA_EXT_ZCF 79 +#define RISCV_ISA_EXT_ZCMOP 80 #define RISCV_ISA_EXT_XLINUXENVCFG 127 diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 09dee071274d..f1450cd7231e 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -265,6 +265,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { __RISCV_ISA_EXT_DATA(zcb, RISCV_ISA_EXT_ZCB), __RISCV_ISA_EXT_DATA(zcd, RISCV_ISA_EXT_ZCD), __RISCV_ISA_EXT_DATA(zcf, RISCV_ISA_EXT_ZCF), + __RISCV_ISA_EXT_DATA(zcmop, RISCV_ISA_EXT_ZCMOP), __RISCV_ISA_EXT_DATA(zba, RISCV_ISA_EXT_ZBA), __RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB), __RISCV_ISA_EXT_DATA(zbc, RISCV_ISA_EXT_ZBC), -- 2.43.0