Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2159013rwb; Mon, 7 Nov 2022 09:49:52 -0800 (PST) X-Google-Smtp-Source: AMsMyM4fy8ssvXn9NT9FlXXZIRP40Vwyz98t6DsGcucft+OfUtBMHPY+py1O3GMnyYjGtpkSGWcv X-Received: by 2002:a63:3147:0:b0:470:3d1:7bfb with SMTP id x68-20020a633147000000b0047003d17bfbmr27030880pgx.338.1667843392703; Mon, 07 Nov 2022 09:49:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667843392; cv=none; d=google.com; s=arc-20160816; b=V8yeQ1ARbwDdm8Pvu4rKPSeMkhJM9ca7BU1ekI8St5fc+7U0QEYvFdt1In6EgnheWi T74S8bKaNnOE6/HzqQfRFGCwlkxMurhi3qlSgKbNcw9vlGKNmv275msxsXBABMer3f2c qD2JydaUfLqB2g/8uw3hX4IsMa5E0a/TCcxdoxM0ISPCQYpM0n8TZE1fA7BJx0I/HSXR gFLEp9aY3fkpWPoDhC8HbK5ZRgmlY3rPHKjcv4wYlfo2NrDjcTLI7CMpLX0PFxtaLeJf VBrEVvPkbMi+HIxbRpZRfVQpMIvNgwB8dVkmWqNnycZESEHIKGRbP3jQYKCAq/IvybE0 9k0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=LlpG/41UtbeP1tp5IvFcUqMr6DydPS37gweU7RxQvH8=; b=nvj/wrrzUIVd7VFSIlK+5QdZf2Nl3eDpdtdZsKzi8Fn01LsNeTuB9fpoL4DwzBXfbc JFt+TFDHws9Roge/cc8ndW9NV2+eQefs0fI1Q360ZfFQQwAgQPaJ6m9t18OTJ/seNiPO ua96ChNyy2x8FGgmnnxWNeWCgYJxRRFS5fGocEG7oXEraq4G2B/N+ck/ZUCwXyQgqVMN r5GVEUHLuvInvQG4z13xWOwxsUyJaxAWa2ezpxTAryzvjNK745TnTwDG0dWgbInannDr IbVL24NU+cbOH1EibcORI4LZNvKqhdJoGwj1O+0VAzoIReQthInUs6/unkBnbMjVdFAV 2qtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Hfq/PCBT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090301c600b001869ba21491si10467510plh.8.2022.11.07.09.49.41; Mon, 07 Nov 2022 09:49:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Hfq/PCBT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232602AbiKGRWK (ORCPT + 92 others); Mon, 7 Nov 2022 12:22:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbiKGRWC (ORCPT ); Mon, 7 Nov 2022 12:22:02 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F9792315C for ; Mon, 7 Nov 2022 09:22:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 8CA9FCE16E0 for ; Mon, 7 Nov 2022 17:21:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B76DC433D7; Mon, 7 Nov 2022 17:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667841717; bh=I73tNza4oxz8JX4yGvw/47qdbUlRa9qyt36gyUC68qY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Hfq/PCBTSirpCpEvqjM6/q+o3q1tAAJbMNmyPnIGlLcvgwCPVNCQfyjycNO6BXj0K FpAPlRG1zH5GQGo8+NvMt0QiZwtqrnPlRUunSiB81PeR1M8yIiNBSjy1CLSK2zF9Sw OiqLDSzUjGLZIWqeoLttICGwWzB2Kv89qSq9m1SCsa0suthy9mkD4tWul39OM1nX4l yYhhRPWbDjpmPDt6PEb2BReKaJl+oO9K1wprRkZ22anYTQb+qr6Mi+b/UX4fR37U51 4X22DNjH9fX29+0nOCB+AwuO8o8glPBhUrxbP3wbEpCVlDAWcAMJuqtX9ZmGBrYKKK 3nlJNfN7LXLoA== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Chris Stillson Cc: Greentime Hu , Guo Ren , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 04/17] riscv: Add vector feature to compile In-Reply-To: <20220921214439.1491510-4-stillson@rivosinc.com> References: <20220921214439.1491510-1-stillson@rivosinc.com> <20220921214439.1491510-4-stillson@rivosinc.com> Date: Mon, 07 Nov 2022 18:21:54 +0100 Message-ID: <87zgd2d6j1.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Cropping the huge Cc:-list.] Chris Stillson writes: > From: Guo Ren > > This patch adds a new config option which could enable assembler's > vector feature. > > Signed-off-by: Guo Ren > Co-developed-by: Greentime Hu > Signed-off-by: Greentime Hu > --- > arch/riscv/Kconfig | 15 +++++++++++++-- > arch/riscv/Makefile | 1 + > 2 files changed, 14 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index ed66c31e4655..e294d85bfb7d 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -432,7 +432,17 @@ config FPU >=20=20 > If you don't know what to do here, say Y. >=20=20 > -endmenu # "Platform type" > +config VECTOR > + bool "VECTOR support" > + depends on GCC_VERSION >=3D 120000 || CLANG_VERSION >=3D 130000 > + default n > + help > + Say N here if you want to disable all vector related procedure > + in the kernel. > + > + If you don't know what to do here, say Y. > + > +endmenu "VECTOR" is not really consistent to how the other configs are named; RISCV_ISA_V, RISCV_ISA_VECTOR, RISCV_VECTOR? Bj=C3=B6rn