Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1143697lqb; Thu, 30 May 2024 01:13:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV24CIXOkPb+JWMiivE0/pNgGQuSaFA79EHWct8Cy5XbSjDQARw53LPBnIBJ5ZY8zf7HXcReA1vhbJYGselobJ9xWyo7N5NXRl/ZtvAQQ== X-Google-Smtp-Source: AGHT+IFutcal14G5Uc6qo7SE5bNJs4Zu1JyNL9PzdsoMC01yMxcJa9HZg2nwJ72Y7BLWBc3c7w0M X-Received: by 2002:a17:906:c217:b0:a59:a0f7:7ddc with SMTP id a640c23a62f3a-a65e8d36f08mr84661266b.2.1717056781094; Thu, 30 May 2024 01:13:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717056781; cv=pass; d=google.com; s=arc-20160816; b=gRa/RiougBehppRlJrNT1DpJNf4v2q76QWtxysnkVu2PkNGjJrsjAmEX2hc9n9VWaH NFICthqfZtRDXMP+bx+kiq1rs5IFFFcAWoZQoqtEbhUyLw6mGdAy7m38hSJFBK3PKg2z P5hCIM1WLTW4tBhvmJOBfxBumg3VA7MPqxtViANXlMwC7oPCdTd44zumBECOHXMve/HS 4Gf6XNP7iv7Hjv09/ewZ4qwilxaMT6haqEzSCq9Gg8bAwQRpiWqHIxdy+v0gY+PRs2u8 Yf1U+SZc/GDVG+3wdAsad10zgCgw4D2/qIbXRyU4WHheEWg5nZVC7PdPhe38aXpo/AcH rLsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=0RoFCn1cKvd1zoXQP5ZuJdh9HnrCwhzMajErjx8js2Q=; fh=2QdD4I61PrSrlTsmTzmdGrh68CWluWbAuMsIb+omR54=; b=ZR+zQtFwy7uEOwzXjDqotgcbRfLtkpqkSKTd09MuGeTdSXg4lFvgh7AnQ4Tpz23V+d 1w3HtXGEZlEqZFTDPOnjTCQMYofD16EeB3N8ThfE6xN2eNyPXeGo/AS9tx3r/SWyO4HM OmG9MCffJd1vidFxSv+TfuBoDctG0QuBQVX+9fG2mIfzbU5I1q/bVarwTBahP4lV1/bg 6nPHXvs9DUu2ZMYgYMruarBNtGy98WqVBekvpPBl1u1MK4GViLnZcW53lv9aeTl/gV3f flfW90jwB/g5MXXv3clANqdeN0TRqBJbkXRwF0UyVHVCzBzobF1U6TTHCDanq1wMhslg EFIg==; 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=jrGn5udO; 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-195047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195047-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd919a0si688282566b.781.2024.05.30.01.13.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=jrGn5udO; 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-195047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195047-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 CB7541F22C58 for ; Thu, 30 May 2024 08:13:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42E1815218D; Thu, 30 May 2024 08:12:46 +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="jrGn5udO" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 A026914C580 for ; Thu, 30 May 2024 08:12:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717056765; cv=none; b=ZPIiMIUpdn/a6WZmM3pJxDOOb1NJBmOy04sIOyntFwYl+YdPCsrgGrg+A+rBUGnBHqNLxMx6babAZBzeKhszW+CsVDKkzWhEjDJ9wVdipZDOkZCTyfRRSXFG/bXgEB2q6DEWlr5MhGreN5VDcxersu+nSLEZExyK212nkTsMenM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717056765; c=relaxed/simple; bh=mwYATlGqSRRpITnG8BIh7RCuTwAeiIWonLTkywmLt9Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ODiEahOVqESy7MBMz3g7WNqUPMKnpkvwqMny+w8X8lWSSk/eOkYF8wSESzRGptG1Np1uwjoHdLbJNVO9tQgqc/JHjNMfKL2fIVZl/1F5mJvYUdRX6j8tairAlH8dBs0/tXiH8Q5KbTfL9D8KYeQgKTUV2zeuwNnlVN5epo+80oE= 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=jrGn5udO; arc=none smtp.client-ip=209.85.167.42 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-f42.google.com with SMTP id 2adb3069b0e04-52a6f05503aso46496e87.0 for ; Thu, 30 May 2024 01:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717056762; x=1717661562; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0RoFCn1cKvd1zoXQP5ZuJdh9HnrCwhzMajErjx8js2Q=; b=jrGn5udOweDMzlyebgYMx5PKm98he5FC/bTVeFYtsgyL+SaQCkL6TIWKSd2Q8/if6T bWG4M8OADBdjA1z2e56hNf81cCRwrtpJi+ZKXgUpv+sj4psmxkZsI60HUXQw+1A/qnAv WpzSUOyUsYQZBW9luY2gwVOJIXm0ZJsiDqSzXMrBBbnzGOoFVFJkY7J3blQp0ffdd39i eguFyN3R6XdU7P1UC1U1xGEJ5QursoDqQDZ8PmQbge1AvDeEP5wfv26O2i+uZhAo5Fyo p8rvE7gsQjk5el9aUTLffp5IY0XxijSa7zzqdeDeFGirHHci69yIHawoA+UUcXK43QOa I3wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717056762; x=1717661562; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0RoFCn1cKvd1zoXQP5ZuJdh9HnrCwhzMajErjx8js2Q=; b=S7O/1UcjD1XuGjWbdudQX03xH5T68qDinIw9tdpsSaKeq8lTayqjgRTA65UqWWMILn PcTR1nt3E537CdqytmvvdxiaYwVZupgBcjRGLo8VuKOtgo32U5u+N95Yvuzgs4K42D2z Znfn2O5aMyGXm2bcjvdWqXruIKsM7d6Ho5m3VTR4ipU32vmbkzecXAfzAdvEYxoZue6H rxkR1nkk2xWR9ib9mULERp+P/olIh5lt2vKo/CDwo/Bo8ZtsBkIrdRkpjRmhaMv5rcbG sGtU+EayV8bjrN1vbE0jOVH6XsoK1b1yRGHQTeKaxlx0EjtWgbo0pxM092RSz2QsnhLx HXzA== X-Forwarded-Encrypted: i=1; AJvYcCUzkq8Dpy11Le455Zr2JtSm864fAHlF+fgpRkjeCLabvzweLls1KEVCPPsQ1RSTGalD5qbOhxL6opf5riNl7Cl9ZdbgqBq/3FQdhVT5 X-Gm-Message-State: AOJu0YyN148S1xP8RUQ8G5tKi3tlXMrdYGo9pY5mbbPUHZac1PphX9BP 46inUISRUklsS4mGLglgIe0SBC4Ptb7Hrfft4/O3dA2HDcxzDjsEvJgoabdZyYY= X-Received: by 2002:a05:6512:1111:b0:51f:1bf8:3ea9 with SMTP id 2adb3069b0e04-52b7d49951fmr1181406e87.3.1717056761685; Thu, 30 May 2024 01:12:41 -0700 (PDT) Received: from ?IPV6:2a01:e0a:999:a3a0:a3c2:7707:741:7c5c? ([2a01:e0a:999:a3a0:a3c2:7707:741:7c5c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42126fea343sm17505945e9.0.2024.05.30.01.12.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 01:12:41 -0700 (PDT) Message-ID: <4d23f17e-cc1e-45e3-9ca2-a884baacf207@rivosinc.com> Date: Thu, 30 May 2024 10:12:39 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 02/16] riscv: add ISA extension parsing for Zimop To: Charlie Jenkins Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , 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 References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-3-cleger@rivosinc.com> Content-Language: en-US From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 30/05/2024 00:21, Charlie Jenkins wrote: > On Wed, May 29, 2024 at 03:08:39PM -0700, Charlie Jenkins wrote: >> On Fri, May 17, 2024 at 04:52:42PM +0200, Clément Léger wrote: >>> 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 1f2d2599c655..b1896dade74c 100644 >>> --- a/arch/riscv/include/asm/hwcap.h >>> +++ b/arch/riscv/include/asm/hwcap.h >>> @@ -80,6 +80,7 @@ >>> #define RISCV_ISA_EXT_ZFA 71 >>> #define RISCV_ISA_EXT_ZTSO 72 >>> #define RISCV_ISA_EXT_ZACAS 73 >>> +#define RISCV_ISA_EXT_ZIMOP 74 >> >> Since my changes for removing xandespmu haven't landed here yet I think >> you should keep RISCV_ISA_EXT_XANDESPMU in the diff here and make >> RISCV_ISA_EXT_ZIMOP have a key of 75. Palmer can probably resolve the >> conflicting keys when these two series are merged. >> >> - Charlie > > I missed that other patches in this series were based off my > xtheadvector changes. It's not in the cover letter that there is a > dependency though. What do you need from that series for this series to > work? Hey Charlie, I'm not based directly on any of your series, but on riscv/for-next which probably already contains your patches. Clément > > - Charlie > >> >>> >>> #define RISCV_ISA_EXT_XLINUXENVCFG 127 >>> >>> diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c >>> index 2993318b8ea2..41f8ae22e7a0 100644 >>> --- a/arch/riscv/kernel/cpufeature.c >>> +++ b/arch/riscv/kernel/cpufeature.c >>> @@ -241,6 +241,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 >>> >>> >>> _______________________________________________ >>> linux-riscv mailing list >>> linux-riscv@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-riscv >>