From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5F596C4345F for ; Wed, 1 May 2024 17:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KKsRYYndwSZ2vtW+zSXqE+5ROFGsDfK60dkNwLwznjU=; b=oGiYaVqgQe7fSI yXqHJnmpSIIm/PaiUIxqQoeMA+go4/t64qZMp5VFydPDm4TCWyQHiRxv/XLLBVH6P1qivt18viaM0 3/CWrbgirCXgny/4Fq6WqQkt7bwjffFUPbAhMH9JxDxLt89yFNwZ04n+JV5iO7nWApyWrkN7WSock M60SjvRGd3jGfCXlfPipeQTN5dSvGok3K1HdPosDy3gHg6foZ9ULUI+fTJ/GGVhEbDnKsjgcO04Cf EVKcPo5tNywdjnkRW2tF4kCumBVrGr5JLOK7Q6F3rGCmyQApxIM9l7lsA3KQbFW0XZZ0koIf6NSMw IksBRzL22NcPRLpDYgag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2DU4-0000000AGx0-1Ste; Wed, 01 May 2024 17:11:08 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2DU0-0000000AGvn-0LXy for linux-arm-kernel@lists.infradead.org; Wed, 01 May 2024 17:11:07 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1e50a04c317so38826865ad.1 for ; Wed, 01 May 2024 10:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714583461; x=1715188261; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7VEcP2FdbTuUC3sLwg55sFZlBNkkI24Wn6q64j9hZkM=; b=ng+73jOGF0tWvW44zzmHbegO9Zc/GmakRVo0X7PoNP88vluJki4oPpoCAvb4ESrsvT pAf8sQfmN5JHH1bZFFkNDU/lRfKKefYa0k+Z1L/pROO1gm8d+hXxX/OIUf8Zl1w5SQsJ 8yKTs7cPvxWGQlYpaZSgDLa0yfqMyVb92tRROGGgTQV7oYPGgOBhQ4J5eWIjXoSjGUW4 ImsgM8qXO/faXv3xydb7Ha5250MqCH1nDJz/62KE98vD7gVXx8482DFPFiGMoZIrOMkr fY0GMkXZbbetkcyvEDcsrUi+wLXtIihVgBrGhNxmN/ErM7enYNMvlGtWSL/KoNMQHrgb fxYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714583461; x=1715188261; h=in-reply-to: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=7VEcP2FdbTuUC3sLwg55sFZlBNkkI24Wn6q64j9hZkM=; b=IqB+/7ovjkxnngaCbScROtkGTUpTGjoe1bA64RmByAGInog6klrWduM8n0cQISWrIP lOi8eC6Zd8FShl0N/mv9qbpw7ZcHTO998Sq6l+xOyVSS5oyidjub08LHJPzZxa8GHioB HUOId5fbDDaewpc88wCPKarFEE47r3MV8qCXDShJcbcHTEFzAB0Yh40M80sPNjULlkIF LU4H5chSX6mqY9IqE6iphBRxzLqIW+umvn23eOwwqeg4JNV2f8suc04z0SlLxaBEKR5s Dods5sOcZeSILXFq72F8ZCqnJiZwXKH8d6FeBXFW5TCOL5nn//SuqnpKt6deTQbqOBA+ zZQA== X-Forwarded-Encrypted: i=1; AJvYcCU62gcYoeME0L6iZ38jR4wVWr9+dd+ziT+hQFSjmCtMmia6GU8CS6aPXfv0DWJmBT9St05xBSY0G9fK2aZie8aLUc8xu0SV9w+JjPxU/WhQnBGZ5s8= X-Gm-Message-State: AOJu0YxTwdjI5TbZSNhC3pP0wZXxnC/36+ulKRey5GpKojUdZX7g7Tpl ltNOokfjS1LWF1GElp8cBiplf584mpdKS3qUTbc/pMYmo80917NJa87tBcT35iA= X-Google-Smtp-Source: AGHT+IHpxFS6GEORaahugjisle6m4KLF0ZtLQCz0Flxl/HiPXR710X9hyJZCr2QqZFZg/RK2FxmvGg== X-Received: by 2002:a17:902:6bca:b0:1e4:df0c:a570 with SMTP id m10-20020a1709026bca00b001e4df0ca570mr3014699plt.8.1714583461518; Wed, 01 May 2024 10:11:01 -0700 (PDT) Received: from ghost ([2601:647:5700:6860:1dcc:e03e:dc61:895d]) by smtp.gmail.com with ESMTPSA id mq8-20020a170902fd4800b001e23fcdebe9sm24447681plb.98.2024.05.01.10.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:11:01 -0700 (PDT) Date: Wed, 1 May 2024 10:10:57 -0700 From: Charlie Jenkins To: Conor Dooley Cc: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Evan Green , =?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-drivable-deviation-0a493511770c@spud> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240501-drivable-deviation-0a493511770c@spud> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240501_101105_300221_BF5CA759 X-CRM114-Status: GOOD ( 16.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 01, 2024 at 12:40:38PM +0100, Conor Dooley wrote: > On Fri, Apr 26, 2024 at 02:29:19PM -0700, 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 > > --- > > arch/riscv/Kconfig | 2 + > > arch/riscv/Kconfig.vendor | 19 ++++++ > > arch/riscv/include/asm/cpufeature.h | 18 ++++++ > > arch/riscv/include/asm/vendor_extensions.h | 26 ++++++++ > > arch/riscv/include/asm/vendor_extensions/thead.h | 19 ++++++ > > arch/riscv/kernel/Makefile | 2 + > > arch/riscv/kernel/cpufeature.c | 77 ++++++++++++++++++------ > > arch/riscv/kernel/vendor_extensions.c | 18 ++++++ > > arch/riscv/kernel/vendor_extensions/Makefile | 3 + > > arch/riscv/kernel/vendor_extensions/thead.c | 36 +++++++++++ > > I see no modifications to cpu.c here, is it intentional that vendor > stuff isn't gonna show up in /proc/cpuinfo? I wasn't sure if that's something we were wanting to support since hwprobe is the prefered api, but I can add that if it is desired. - Charlie _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel