Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp78965lqh; Fri, 3 May 2024 14:04:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgEt9mOT3CBDlyzkJeno91v3695AZrdxjcG7yxtQ7QjNXYeOIAvq7uptUUzIe8Sf3Dxtn6xReQbyr6LYmVx1BwAoTdzqkBCGyE6TIbbw== X-Google-Smtp-Source: AGHT+IELL+HkxJqwhVE8bJY4KvvjcfBlwyjooT8RzpTovPF7xzlPldFlTEDaEYQD7qJeU2ML6G3r X-Received: by 2002:a92:cda3:0:b0:36c:3b94:4432 with SMTP id g3-20020a92cda3000000b0036c3b944432mr3936985ild.31.1714770297751; Fri, 03 May 2024 14:04:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714770297; cv=pass; d=google.com; s=arc-20160816; b=0q9d587zhxX4zADaIGc+I32zAx3L4erFD4f20BKCWI15P+Ax63lBezk4jbVDtnwj0O 9cRam6hotIENI+fGbdPUZXvoQWXPY9qfHrjuvgI9ja2BpHYVLLqYBYWIyUJ/Ymuq2Ol9 mvTQcHuBSYSTtIqsRfm/UX+RN4huxWLfa79jRg7v805tLNyEaOwuxRCphZQ+NSrOjYY/ spBCV6TD13NPyoyE7kYGViWDd/unoa4c6IzgEA0sR+QwdLc821kN6mBBc6MqM/dsvHNw pVE4Brn9DS+GUiEo9ygJhHuNhM00LxCexYQ24Ke5qFldiVzmWAA215RmUV7xcbWzR3hx uusg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Rd8OjNaRvWOeeFwsUuLYY+v1uRTD/QKNpcqqy3mvWT0=; fh=OUD/A6r9m7SiXhLjfuPKq4hlaD22rAowSsqKspxlX1A=; b=raM3iLQW6DSecPhdbjmxgGyQZ697wxEcwxpRlVAjfTiB3DAwkfYjHj9aLItwkzIgGh z41tyAckoUYeFQuX6K5pezBgFrekaKH91CyN38qgTUEURkVVNnMnACwk4hnmUX8BcY5F u9hveRcY38jyMCgr6/LbzhckEDmH+5nubCye67affllH6UW5czIAXCk4sU5uMFcYdR1I Ga42znrEU7oT+8ymQQDSXWqpr4jT9UzAEWEOCeEoTR/W7k29EQBNFmxa2E39xA2stLiT a0tn7mUdfYdCnFFx7+/XROUd/uZYku5IC95qN0ir0WJIJl8cfnCYAO/uHlGCJYhfkdfm EYQw==; 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=h0mK38A9; 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-168211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168211-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 t126-20020a632d84000000b005d7a13d0be6si3535222pgt.232.2024.05.03.14.04.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:04:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168211-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=h0mK38A9; 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-168211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168211-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 0C187B2265F for ; Fri, 3 May 2024 21:03:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7B8241C87; Fri, 3 May 2024 21:03: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="h0mK38A9" 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 412B3347A2 for ; Fri, 3 May 2024 21:03:32 +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=1714770214; cv=none; b=D/0bvz0zYqtL3S93Y/GmNPHU+LNrbkIIdwno3Lat2FmRH255cA9GAuoivHnB8xrxGs98IENIAya6rxF0O1lJd8WpDCknn5vK/wmw1dPb0ymGRQkSlBv16AbRtifkKeRUPOx2Aia6gzyvirYG9UO6recyjN/CbtfzEdgolQWt5Yg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714770214; c=relaxed/simple; bh=Rd8OjNaRvWOeeFwsUuLYY+v1uRTD/QKNpcqqy3mvWT0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WdR89nFxwF21BhtaoS7uEkApuUAEXsKAgdt4MX/yJoL1QzcimhHsIDqWkTeYp5jZsQKQNPeGYv8vlAvdAlp2pdnMtOWOrHqw6DbRspyA7b4Gp4h9s7aPTaSvQpHtDOzUjD+v9ia0i9pyHXlbbncf9zSSj0QWMlQx6szMpzTEzGc= 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=h0mK38A9; 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-51fd87ce075so83113e87.3 for ; Fri, 03 May 2024 14:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714770211; x=1715375011; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Rd8OjNaRvWOeeFwsUuLYY+v1uRTD/QKNpcqqy3mvWT0=; b=h0mK38A9o9/MlQ5JvaWm+GxoJwsnbzITaYa3AcOlAmObqW65pD2U1bdwNy6DhRyj1n xOj4p2HgjjLffWrDtH5MbeIU8h/TYE/McZTCb2A5WfCaVxfB8RSeih3O5t9ef0tIsvnv yao6vdxTj3J7Z+c+WNWGE076yoS+kjvhVXZ5FUaCea1iPXkCEz9C1oRHFQL9wW5QVvqr hCzYB9r8hAVZnjH/SmKo1G1qdIw3g8Ln9sZMCsWxy3PE376tu5mDHBsf0OxYdCHfu58M +DjoTXG3uLpdB6AqK4dUfBmLNEuT1ks15NzVJPmLYQGXZ/bsQzttd5XJZbZA/WAyrsqU zvkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714770211; x=1715375011; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rd8OjNaRvWOeeFwsUuLYY+v1uRTD/QKNpcqqy3mvWT0=; b=AUMdV7fiQhashl1IR9f30+KBMu5uGWuqcTWH2TmkeeqNS52mBBK4O0zTp/P7jScgI5 CsXtgkvjnXC/rlHAM4s6HtRbuPAgcV6bUP9MZx4VpM78Z/eS5wYkyx4P5IYqbY/zAyGM hyrhI7J9TLVM74Vb41Jw9f7TQDU68yyeqfWUfb8sQNiMbdzo0QsnZooYLEWdqwkd6qTT MnJ8A50G+SE68bb4H4tXadFg40x3kvQpduwAuhP7eSsOIqeXoyzVIQqFL/RwEA5dV8jI Qzj8iRS/rcwkF1xwfSmWYXHnHZNjasOEFN0533cvDLPE31K0x2Y/ZN999lz0VwHP7Tz6 DL2g== X-Forwarded-Encrypted: i=1; AJvYcCVzZDht0kgiV7akFzD0cqzocpR67wzSRXpx2yBWLWNzYRWlHHDQP35l/nBPvEPwbzQeZzC2duC71faAwB7A1YtjTnukRSxHhvDPzWz4 X-Gm-Message-State: AOJu0Yz2+uJHPxzFKKa8dT8WKx5M6AG9onE5eoAlJ3OaEDWL6EyitC+k Pid1gyUlZaRdMWMBSEUXBpX/NO12xOieNQSJb3R8diibGsFyqldZw2c2YeL6oHM1ovn0pG4ysBd U7EHVoYtqefwGJQC6dG9pGkKeKBDKLjrUrI7AtQ== X-Received: by 2002:a19:2d5c:0:b0:51f:5760:dd34 with SMTP id t28-20020a192d5c000000b0051f5760dd34mr2358407lft.55.1714770211432; Fri, 03 May 2024 14:03:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@rivosinc.com> <20240503-dev-charlie-support_thead_vector_6_9-v6-5-cb7624e65d82@rivosinc.com> In-Reply-To: <20240503-dev-charlie-support_thead_vector_6_9-v6-5-cb7624e65d82@rivosinc.com> From: Evan Green Date: Fri, 3 May 2024 14:02:54 -0700 Message-ID: Subject: Re: [PATCH v6 05/17] riscv: Extend cpufeature.c to detect vendor extensions To: Charlie Jenkins Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 3, 2024 at 11:18=E2=80=AFAM Charlie Jenkins wrote: > > Separate vendor extensions out into one struct per vendor > instead of adding vendor extensions onto riscv_isa_ext. > > Add a hidden config RISCV_ISA_VENDOR_EXT to conditionally include this > code. > > The xtheadvector vendor extension is added using these changes. > > Signed-off-by: Charlie Jenkins Reviewed-by: Evan Green