Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1344606lqb; Thu, 30 May 2024 07:40:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCX6CMvRtVWk+pKhGG+JXYa5kZyPWeIghfCgySXCbjqH95GeQoWsxaESFtz/kvU2c/Hngj0My6DY7Tsy0h4pdnmkHL7n7qPv26pFASMw== X-Google-Smtp-Source: AGHT+IEdi0q0+3G7c6CHszaRwrwqjX/TYaUfkXmfz/E5Oy7asfTD9sx0M6+B5ThbHClD9M1nszYs X-Received: by 2002:a05:6a20:432a:b0:1b1:d371:335e with SMTP id adf61e73a8af0-1b26454a3d6mr2891809637.17.1717080044048; Thu, 30 May 2024 07:40:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717080044; cv=pass; d=google.com; s=arc-20160816; b=Df5w6Wp6HlCoOvYZqGjinxbTmOyc2/c6CO9M314Ml+lHGaPEFW0EiM4kNNEs5eVKRw yBzvViW1+ri7XZfe+eu4+KyX+11OxDrHcxAfKyrXQhKDMxTCNZhsdLGz73z7bBJOsmzu O/cMphS7KFqKIk3LVLf7djLSkbqmwqIJWd7xzk7+New6C2KFO711MlnYvO4S/NoYEI+F WqaTIGolTeqeQYSTtXHRFk9F/sV6FBoHZTHcDdJM8kSGyl+k2AH5+VO9SUDmkrKC32fY cWixP6rlOOltjPMo9hjcZS6XNCDDCrtSGU4v1VVvdSWeQMaACRcwCqBKtABuB2Ma9WtJ cXBA== 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=lCqk0Wbl0C/qkffAR5D1GSnGrOBHuEfWLT6qcnFKC74=; fh=Zr75d3CrhPLQvpAorXtIzKpcApTWjKQQHlO29IOaMXg=; b=pimGl2DF++8tPaJkKlYHv/66pHLZDXsuDJfiMPRl82HPwBS28fKI1rQIq1AFZ1cZVN gyazLk+mQLQ9ZD6Z2cA46aOfvY3+Nzyh9m62Potmmsu/I57U5/QQnuS8B97JKTcwetqa J3uKGaQiDv6wvl7A+3yDLph7AiwBCawc3hkgZHx2yjntA2v7jWqU8AICFHxzLm0kfMRF jEh6OgIB4vRFSd9D+sCcEn8Wa8xeEtiglGeA7IZAd3pGqLdbPGl6amUso9HIn0KLM9CU V8WKZkqaNb+WWYEtPVZH6iIdXnde3+7zuRNM8GWtMltJ+HimH5rTDhXFsQrr0DPiqniE Xsog==; 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=sInuQO+n; 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-195535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195535-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc3673c8si10000384b3a.101.2024.05.30.07.40.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 07:40:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=sInuQO+n; 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-195535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195535-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 56A50B248E3 for ; Thu, 30 May 2024 14:39:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CFF317D8BC; Thu, 30 May 2024 14:38:38 +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="sInuQO+n" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 2845C17C235 for ; Thu, 30 May 2024 14:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717079917; cv=none; b=Wvl0odvyEwV39Pvx5P4gO+KoK+dkIiJ9Oio0c5Z2Y9sv3UFG6NKnutRWGGqNVwE6B+Gjg27RoOSuVfj7p/NyzP6p6e2BrX6NX/pBTkcNs0IyoPsGEyVv6/Q3nuLLVmDXTIHEiH//hD3tLydNlhnNBp5jVPoZp8AOjJmV82S+m/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717079917; c=relaxed/simple; bh=H6kbJAMgSyiK2Mm362YL1uVRFh8mkzI+q2iR1ROJpTg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sDBwkZQdmQlV/LWLkThn8XKdu84sMo3B3nHFABGtNsMEnPrusQLrz6XI27rbRYzLmYsqLpWxeBvKWUZ1Hfc/93co+wOml+tHkGNgoG4Lnu2/i+f3Yv0F4NQN2qujxWMSX/JU4Tb7WbZlu1JZ+1uU3bMd0f03j4xZRhZ8iXEyi+A= 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=sInuQO+n; arc=none smtp.client-ip=209.85.128.47 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-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42111c2892bso1182745e9.1 for ; Thu, 30 May 2024 07:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717079913; x=1717684713; 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=lCqk0Wbl0C/qkffAR5D1GSnGrOBHuEfWLT6qcnFKC74=; b=sInuQO+nBoq3aLpAlYrsQgUkiQrAbbqRyB+9VZ5PVCRag4oWSgZv+NOkyfId//4HDc cjdtbQUp7iXJGaGgYIF2wmPNpjcwhsNVBTUbUWAINectGTciOeBRYx0fNQL/Kx7ZhxRE n7hmKwo7wJdMhyAVdXmKms1mqcELViZZrBA9GpaMn8HkDV9y6EqrS6j8m4RwmEWsS86V iSTnp01nITZoHQ6uIuIfudWS4nnkkWZKnpBKSMhALvDrEitrvSLPN37R6zZQgI+FrQ0L A1ZHU4f8yMXh9hJsPBTLpFSgwWXLSM0A/MK7DF6mbV5dBIzcY0EhA2Z1s0ULeXhyc50Z FisQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717079913; x=1717684713; 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=lCqk0Wbl0C/qkffAR5D1GSnGrOBHuEfWLT6qcnFKC74=; b=pQFkX8BBFPT+XlBhsshosAltoYFQNiGJDahpOS9uJ4zBMz/BdTchyGTgkxSl3DW+bV Pbu96k69mnUuZPS+YvYxHbrTJYa2zowVz9HaxaXZOxyiuDfyDuvP8VkPT0PS5RAMgaFw 3FdNKRl3Liduq1Oh9CInRtk9z+nQ5GDK5THhHzV1VKUfJ4v/IM6PYeiPpyZKb6AAQboA a+Q1OysyXYv7alIuIAOqV3ctCME6/16EMaKiL+dupAZQESlH+oPMMBusAvX1M3yD0VSl A0jnTOZhNtB8Hc/is0YYhR6aWYrz59Mxq80K3rAo07zeKV7/FCRFzazYJvL/4QYT5Hw8 NnBw== X-Forwarded-Encrypted: i=1; AJvYcCVbDAuNauuiOpHUWfu7VJGAHW+tgLWtK8ZGUhlWffhj+4N2AgOlEUV+FcxTKanYU6S6/oBqeOKMXTHIyomnndfIDCCBwD4BY3bR65SW X-Gm-Message-State: AOJu0YxbOLvQYMF2UDkf15JZ173rN1l8GYtPoFXK0sLOiUkCISnJdWMc od/69HvOFM/5cWm4pxFvkzceAYxVSgd+7SStW2G+KP5CX2TW4VjhHXScEGkezJI= X-Received: by 2002:a05:600c:3b99:b0:418:1303:c3d1 with SMTP id 5b1f17b1804b1-4212793612bmr20925615e9.3.1717079913490; Thu, 30 May 2024 07:38:33 -0700 (PDT) Received: from ?IPV6:2a01:e0a:999:a3a0:1c45:973a:b74b:ef3c? ([2a01:e0a:999:a3a0:1c45:973a:b74b:ef3c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4212706ea02sm27143985e9.30.2024.05.30.07.38.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 07:38:33 -0700 (PDT) Message-ID: <920cc061-f5bf-4eae-88b9-7b7c2b32ed53@rivosinc.com> Date: Thu, 30 May 2024 16:38:31 +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> <4d23f17e-cc1e-45e3-9ca2-a884baacf207@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 16:37, Charlie Jenkins wrote: > On Thu, May 30, 2024 at 10:12:39AM +0200, Clément Léger wrote: >> >> >> 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 > > There was some churn here so I didn't expect those to be merged, it > looks like a subset of the patches were added to riscv/for-next, sorry > for the confusion! No worries, it seems strange indeed that some of them were merged but not the other :/ > > Reviewed-by: Charlie Jenkins Thanks ! > >> >>> >>> - 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 >>>>