Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp638505lqm; Wed, 1 May 2024 10:58:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUg2XFKFkoRfLW3NfTi6eumt8UKb7jVIRgt3aHBx+U88Mhexh208YzioXAICpIAHZwOBoRviSunPir29cmtd7K3IUOEYgt7YBYZyWgD/w== X-Google-Smtp-Source: AGHT+IFSE93PYCy9JPP87cPm7xrA4HrTv45yf3Ls73BzURcrjPbu2frkYSCyCjxu1BW1RyvJKOqx X-Received: by 2002:a17:902:c3d5:b0:1dd:81a3:8dc3 with SMTP id j21-20020a170902c3d500b001dd81a38dc3mr3151366plj.46.1714586307993; Wed, 01 May 2024 10:58:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714586307; cv=pass; d=google.com; s=arc-20160816; b=sYBLzsyeMfWWULGqUJI8nwY8Xh7aGGoCR9YTY81KBEcJjFGzl41acYnw+26aOhtli4 r9K8EjHWWHtJIly+cSTgUcG/PA8Hed8kU+8JWxUA5pTKf/7Qjh24OCOlWstrGXTqgYK6 8Wgtn0PxmEfOYVViHSCNw9cLsWxjwT1ufZmZ0MSBAPxJh4RyfZIgRRbXvbJsYtZYvW+a DnkMDj+TFAxsooEgQeDrlyD970aLByYD4sQRLU01462D1O+exp5ByBuen2UWbyXd3ab4 979uC4RjiuPX+feEpw7S0BKp59iyGVA0XwoUuI6afFqn/5DXI0B+kCqLTCaF/bGe1uhH 8zyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ewiZxKEDhipFv9WpDKT1OvAInIM8Qy/YnJeIqtYAQ20=; fh=rJhMuBPkyO5yd28h/iJQpmr+HtOCSYulnXo7elz8JGU=; b=CpWH3daJZtikBmhoRD4ORiHJ2Dbut6NxhVZi6uKI8RxRtqGaPiQ/YNAFMBuzlmGQHm MqLX/sLEhRwpwHR7xgV+obpnP3V9PIXsCoXVC+S7TmO9Q3uGmwD/57Saza3al/nkxwd/ /3+4CxVv0i4Y40Xi4dfTlJ8G32/hgr+4PB/+qWCXMvsvUTLNDJwn7dl7cdtAg0VRGMYa mbmCPK/znBhSNewCVWox37+fPgZyeauj5uTFdw6pN0RrAX7YMhJIVp9WzUZd4E00InDM 9CsG4i4YFPjpyRtvM6lWcjGe9+POutfljaGv1JnanikzDYBK3/qjCxvFEGv6FVu6Ueu8 R6VA==; 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=MADNhq7u; 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-165670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165670-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s1-20020a170902ea0100b001e215883ff4si24975973plg.516.2024.05.01.10.58.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=MADNhq7u; 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-165670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165670-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 F062928173C for ; Wed, 1 May 2024 17:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D9211474A8; Wed, 1 May 2024 17:58:19 +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="MADNhq7u" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 EFD7F748D for ; Wed, 1 May 2024 17:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714586298; cv=none; b=TxHSbQ/MLABqw4j8XcB3tUOTzov6lJbxYfDQNo1Cf3EVNR5LXOAu0/eBfmg4vMDu8mHrtoCy79FzEkKBz+EcZGGGL4rxL61OWji45CQX6KdSK2ghyJti+uM/z3S+vYnzMoRqme2hoWaYTSkGahW7GhdSDNsPP/unGgnD6QkiD/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714586298; c=relaxed/simple; bh=aEhywgK1Wn89FaWrhTM0HBEIeT3AwLow+BB6CKrQbCE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VVUAYA/O9VE65Uah/Pd4yUtvfNWnEJqFmDjoFdizQysLbNeVIX0URQo5kFOC6vbfbRWO8BWYQsVe2la0Ukk4djb0m515epqbTQF6Kan+yG4Q5fs3n4apSz/AB/DFasn3FaciUVvYGQw9HM3gXG8ZmZTE4qL75L2Yuen0cuaW0MY= 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=MADNhq7u; arc=none smtp.client-ip=209.85.210.180 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-pf1-f180.google.com with SMTP id d2e1a72fcca58-6f2f6142d64so6640626b3a.2 for ; Wed, 01 May 2024 10:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714586296; x=1715191096; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ewiZxKEDhipFv9WpDKT1OvAInIM8Qy/YnJeIqtYAQ20=; b=MADNhq7uxAPe3Mo8Oc0YkZUpGYLzdPHDbZPF0TfE7xGFeexml65gBIKfVcJjORoU4p 8O2TNe1B5m4MNfZTfj+Jy6ZYBlydcqSy0FA+cL8RCeMe1EZUB5H0fGYWvfKLPqhnceYM /STiwv/l0HTWBmNoRId3ivMlkEmVYGxSFFXtgDeihan/5IjX4PDFc5CQ9/l2L48tmBHY G0sEDO+kJVE5Cu0ebMu7fBOv/6pkqCMks7+RjYjChg2plhaV3zFSFXoOKua0AccgcuOr ksfy5Av2m/c0UzdUxMDccwhWVBHydx6XU72bR1NAkHa5LLp9ZZVJrsYwCB7irWAW+JPp 9vhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714586296; x=1715191096; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ewiZxKEDhipFv9WpDKT1OvAInIM8Qy/YnJeIqtYAQ20=; b=uwlXHvDhorL/ylSPsk+ekTi0rukGJrYZAyk0bIA+Z8Su9QYWNYvmvE7IU6tvkxKN1X bJVm3+LsAadWUtjlsPDIlT92rnFJY9pq5SjvXZDhYfU8LpzmxdQvk9rcfRDvYMrKOw66 l07YPzJDJpQjzjs1zUMnwfW8nzK1TwUOqv+j8axRfsgsGQ6RP4RP10L9wtatp9Z8WLql gYBvZHF3G/uJ+rYhOB4qr8c+UhDSLmBpG+3ToGUh7fjp/zOdS7xmoh06FCXGT/Bylp6h jPibaZmsSIzCwolao7qYkyzE/jdVLvSuhrj7zLrk/7cPqD/1QlVTPmzEC5gurP9CFwQr TsBw== X-Forwarded-Encrypted: i=1; AJvYcCUK3MwfYOeL8l5v1BIWqDIHmBmy3ctcEjJ1eup64/SqAWdrN2jY86kV/QwhmppIJE9Py+jIsgg7vsvB/aXLCTK322EKByXZjGVq1Deo X-Gm-Message-State: AOJu0Yzb+RuGEyMQEqplcBBRZkXjPauQgy9j3c+AQRnVK4oaTaAZGxtQ 7sHDhrIiw5FJXvaVLBi9lAkXrJ/kp6c/zrs1zzlQ05S67nrm6dyhU3VxZnhyy3w= X-Received: by 2002:a05:6a00:1305:b0:6e8:f57d:f1ec with SMTP id j5-20020a056a00130500b006e8f57df1ecmr4107317pfu.17.1714586296277; Wed, 01 May 2024 10:58:16 -0700 (PDT) Received: from ghost ([2601:647:5700:6860:1dcc:e03e:dc61:895d]) by smtp.gmail.com with ESMTPSA id o7-20020a056a001b4700b006edcbbff2b0sm22940382pfv.199.2024.05.01.10.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:58:15 -0700 (PDT) Date: Wed, 1 May 2024 10:58:12 -0700 From: Charlie Jenkins To: Conor Dooley Cc: Evan Green , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Jonathan Corbet , Shuah Khan , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 05/16] riscv: Extend cpufeature.c to detect vendor extensions Message-ID: References: <20240426-dev-charlie-support_thead_vector_6_9-v4-0-b692f3c516ec@rivosinc.com> <20240426-dev-charlie-support_thead_vector_6_9-v4-5-b692f3c516ec@rivosinc.com> <20240501-flagstone-zealous-2fc722bfad39@spud> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240501-flagstone-zealous-2fc722bfad39@spud> On Wed, May 01, 2024 at 06:19:34PM +0100, Conor Dooley wrote: > On Wed, May 01, 2024 at 09:44:15AM -0700, Evan Green wrote: > > On Fri, Apr 26, 2024 at 2:29 PM Charlie Jenkins wrote: > > > > +struct riscv_isa_vendor_ext_data_list { > > > + const struct riscv_isa_ext_data *ext_data; > > > + struct riscv_isainfo *per_hart_vendor_bitmap; > > > + unsigned long *vendor_bitmap; > > > > It took a lot of digging for me to understand this was the set of > > vendor extensions supported on all harts. Can we add that to the name, > > maybe something like isa_bitmap_all_harts? (I wonder if we could drop > > the vendor part of the name since we already know we're in a > > vendor_ext_data_list structure). > > Reading this made me wonder, why is the all-hart bitmap an unsigned long > when the per hart one is a riscv_isainfo struct? Hmm I don't think there is a good reason for that. I believe this can become struct riscv_isainfo * with no issues. - Charlie