Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7275569rwb; Tue, 15 Nov 2022 09:52:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf44Bwfp588kEaTaRQ3J8vtqZCKbREowehjpVa1HlLmDvqG2MNcT4tUBrRNL7APPgKDZgonk X-Received: by 2002:a17:907:7795:b0:7ad:d250:b8fb with SMTP id ky21-20020a170907779500b007add250b8fbmr13915138ejc.739.1668534747677; Tue, 15 Nov 2022 09:52:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668534747; cv=none; d=google.com; s=arc-20160816; b=fvJ+myJMg8Erri0iZUJP9Va5nvH7IX5wJMY1Faj85gxM9KfHjPTMT2peQSNvipINXN WKOXP1yFptHEEwcmWgfm8SYIQ15E0LyEk5ao4H8RvDLxylpGgW5vKKIW5ZVKCqXjfsPv KOzOqbUN0l5zHPx79/u7L6kenI0PxLD65REItYKFd27bh5QemjRGjtSNHHz3UVUX3WXf 9OdKmGVRpSqjRA4KPj0iL5mRwiszaGFPTatyLRt+cqD9p09rLL6AGCq7CtpmjcBUNzzO Zqf/twEXmzGILPD1ShHSqJ7huXemJkGB+7YtfSSkNOE55j7so2gs6fBPC+rzxdZnPNQ2 lXFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7FSiCY31V/QWXzTLZ2fNFJ5cidEqBZ+gXLW64Grk/N8=; b=R+urcaYKfgfEscSgCtVKNCQ9RvJFea+RBnsT4/XMOJ10DFsz3NmdNcx4WAnpIvpdrr ODHgEfTQH8mh0QEf+uIyaDda/DAtIGoMnTZ3Z8x4j6nxG/M6Otj2oM3qQcE8dwKeO7f8 xARPQRny0Wtzhqdz9mqWT0Xo6iOtFZsN+73ItrIDt6F/1qaHVuBkxeKacdQc/+bJ3/h6 /h7AyONIgkpbyKW3yd88oI4nlR9Gap5XoWH+6tSEYa6OpAOQUIAjSiNpsAeyrKO0wjjx GaEiwBTI+7RfZVQfpHbMSv4Fu8fsrL9/87fxRfKnHqs3fMMdsgnj9UPXO6dWM4T9XvlW jGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=DPE1B8Lq; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb23-20020a1709077e9700b0078dcf17c084si12251456ejc.728.2022.11.15.09.52.05; Tue, 15 Nov 2022 09:52:27 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=DPE1B8Lq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231848AbiKORjL (ORCPT + 90 others); Tue, 15 Nov 2022 12:39:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231418AbiKORi6 (ORCPT ); Tue, 15 Nov 2022 12:38:58 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE252EF7B for ; Tue, 15 Nov 2022 09:38:55 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id l6so13975765pjj.0 for ; Tue, 15 Nov 2022 09:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7FSiCY31V/QWXzTLZ2fNFJ5cidEqBZ+gXLW64Grk/N8=; b=DPE1B8LqqefUlBMXUOYA+VF9kIfGrHy7/L3SQnJRrX2ybhBDfbcTGqkPhGo+gYCAs/ Nn1Sg8kApxzjxsQH+axtSrCcxEQU7Vkkr1b1X0xdthhgCMPQk/VwWIq2aE2sPtdyyjHt 6Myk+7VCSn/8lE3sCnmg8BmJihCruZFjZGE4FQqBWbb16fP7UpG0Cfp8nx83AoFqQg8F FQwS765cfWB6Xclp24Vt9JB9bFax8lINlh5y07Hq2y8iFTvFJwrRFWwDniYUnxKxt96P vPRGVboImVmexj4XPvnMzf+/WguNXTWloUmT4L2cCj3jVAVZbM0P612WChqMv10s7iU0 KZIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7FSiCY31V/QWXzTLZ2fNFJ5cidEqBZ+gXLW64Grk/N8=; b=OrcfwqqCZXZMDYQnCDPD1bC5YwoN/cVd5jHcR61HdaUY3SBa3avr1CX5iB68sp5dsg xMz2HYoYy+qad1nY8eUTcqkD46WdXfZOJ6V5XH7kaBoXKLNr/NgSEAZaefzd1l1RmqAs q9ckE1amMFfNfwjlrVo3hw7QFVhXsVdgYGuZ9v+mvEN7KBf2gI5C0qJK0JPhg79yH5y4 8+TYOBX2QVha6pMXmg/qpjbvjXg9TT6H9V4DQmIadQ0USm+FARK2UMkL2TNrFWGxmYAq u/nMHc33SAPzzuxbWpgu6p5qynW2/PfcWkyrOb7u9QdRLs+4JYnm767EeI5vHHa8JBW3 T0fg== X-Gm-Message-State: ANoB5plKbwfNvFFJIkIXyyUWVJiHhw1glYYfPxMuG7pN3c7yX13c+Pkh 7RvR21HifYu1mik8pvu/wFG2HA== X-Received: by 2002:a17:90b:2389:b0:213:971d:902e with SMTP id mr9-20020a17090b238900b00213971d902emr3335198pjb.123.1668533935247; Tue, 15 Nov 2022 09:38:55 -0800 (PST) Received: from [192.168.50.116] (c-24-4-73-83.hsd1.ca.comcast.net. [24.4.73.83]) by smtp.gmail.com with ESMTPSA id d7-20020a170903230700b00172fad607b3sm10272327plh.207.2022.11.15.09.38.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 09:38:54 -0800 (PST) Message-ID: <9cda597c-1d31-4b8b-99ba-deab58975976@rivosinc.com> Date: Tue, 15 Nov 2022 09:38:53 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v12 04/17] riscv: Add vector feature to compile Content-Language: en-US To: Conor.Dooley@microchip.com, bjorn@kernel.org, stillson@rivosinc.com Cc: greentime.hu@sifive.com, guoren@linux.alibaba.com, vincent.chen@sifive.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, guoren@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220921214439.1491510-1-stillson@rivosinc.com> <20220921214439.1491510-4-stillson@rivosinc.com> <87zgd2d6j1.fsf@all.your.base.are.belong.to.us> <98343aa8-b04d-fe58-8af8-4eeca03106d1@microchip.com> From: Vineet Gupta In-Reply-To: <98343aa8-b04d-fe58-8af8-4eeca03106d1@microchip.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 On 11/13/22 08:16, Conor.Dooley@microchip.com wrote: >>> +config VECTOR >>> + bool "VECTOR support" >>> + depends on GCC_VERSION >= 120000 || CLANG_VERSION >= 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? > It'd be RISCV_ISA_V to match the others single letter extentions, right? Yep. > The toolchain dependency check here also seems rather naive. Indeed. I can build the code just fine with gcc-11 (and gcc-12), although my reworked patcheset doesn't include all the orig patches including the in-kernel xor stuff. -Vineet