Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5734958rwd; Mon, 12 Jun 2023 08:59:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XISbVXyPUj/9rpYgo6euOkagqCCd459Fy8WbIqOj/+QYVFaeaVx/VgdSISDldu7L5XrN3 X-Received: by 2002:a05:6a20:3943:b0:10e:d134:d686 with SMTP id r3-20020a056a20394300b0010ed134d686mr11686291pzg.6.1686585585987; Mon, 12 Jun 2023 08:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686585585; cv=none; d=google.com; s=arc-20160816; b=L4bJjdrCy2i7yDjVv+VnoeWCBdBE6owEc749xE/7QJ/rPJAPqPmNwjsIMw+AhuODfH MFuiZXxsTnU/ofcM6tzh5FeRv73mZ9QKYyt+cVDcsMhan+2ogYzUvJbw09pEPur8qDLE W4B0aunkSeqQPiq69v3MGGjVWE4aT+22IYTsilv1ljZQOFSII07MEWDyFbyjFvPRDUNv UU4iZjvZRasi+S5qAuczMNXYg5I17UlUfCV+VEZY7ZsM+yDWwD7tYPDiyycC9s7waiVe hNTLUet7xC/6Vcvos6Kq7Nb/D7lqN/JA0zyvUSTdA7m8olR1I+BWIJbMVy8Y7uHjTNCq bIgQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=w/KJPA7pirTI9vnXnSkMr7xj4jrW9165tOlwjYNNkRU=; b=Wnqcqag3AygO//pdTgxrSm9wi9H6BgLiMpKgzHS+zVIWletLrEDDGe0BEarDCJ/th9 xJbjp29JJX1b6vgkmyUAxaKFhFwIMErcFtUtWopnl6NKlpyiHaTaZJRqSJfunaQASggG KiPKjzlf6iwtYhK9FIPhtddFIlsKbzfY/pqKRc9tFLcVao7IDM8qqLgGF+JB9IlSrD9v 7njLp/u3FuvILVJIGflPFqLCSScxZPPC2MtOO30xsubHYbxYyCluSCSA3yynhrv0l7VW bPV9jt8R5TRMlKQ9rt1Ey5UjdESJn3S69KdthE1n8JZ5YB+rSSyJ26+8r5zwHdu9V+4J Xolg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w29-20020a63935d000000b0053416d0b54dsi3938305pgm.518.2023.06.12.08.59.33; Mon, 12 Jun 2023 08:59:45 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239527AbjFLPoS (ORCPT + 99 others); Mon, 12 Jun 2023 11:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbjFLPoR (ORCPT ); Mon, 12 Jun 2023 11:44:17 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB8A10CB for ; Mon, 12 Jun 2023 08:44:13 -0700 (PDT) Received: from i53875b22.versanet.de ([83.135.91.34] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q8ji9-0003ee-29; Mon, 12 Jun 2023 17:44:05 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: guoren@kernel.org, Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, samuel@sholland.org, christoph.muellner@vrull.eu, Conor Dooley , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 0/2] RISC-V: T-Head vector handling Date: Mon, 12 Jun 2023 17:44:04 +0200 Message-ID: <2408420.NG923GbCHz@diego> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Hi, Am Montag, 12. Juni 2023, 17:29:49 CEST schrieb Palmer Dabbelt: > On Tue, 14 Mar 2023 22:29:41 PDT (-0700), Palmer Dabbelt wrote: > > On Tue, 28 Feb 2023 13:54:33 PST (-0800), heiko@sntech.de wrote: > >> From: Heiko Stuebner > >> > >> As is widely known the T-Head C9xx cores used for example in the > >> Allwinner D1 implement an older non-ratified variant of the vector spec. > >> > >> While userspace will probably have a lot more problems implementing > >> support for both, on the kernel side the needed changes are actually > >> somewhat small'ish and can be handled via alternatives somewhat nicely. > >> > >> With this patchset I could run the same userspace program (picked from > >> some riscv-vector-test repository) that does some vector additions on > >> both qemu and a d1-nezha board. On both platforms it ran sucessfully and > >> even produced the same results. > >> > >> > >> As can be seen in the todo list, there are 2 places where the changed > >> SR_VS location still needs to be handled in the next revision > >> (assembly + ALTERNATIVES + constants + probably stringify resulted in > >> some grey hair so far already) > >> > >> > >> ToDo: > >> - follow along with the base vector patchset > >> - handle SR_VS access in _save_context and _secondary_start_sbi > >> > >> > >> Heiko Stuebner (2): > >> RISC-V: define the elements of the VCSR vector CSR > >> RISC-V: add T-Head vector errata handling > >> > >> arch/riscv/Kconfig.erratas | 13 +++ > >> arch/riscv/errata/thead/errata.c | 32 ++++++ > >> arch/riscv/include/asm/csr.h | 31 +++++- > >> arch/riscv/include/asm/errata_list.h | 62 +++++++++++- > >> arch/riscv/include/asm/vector.h | 139 +++++++++++++++++++++++++-- > >> 5 files changed, 261 insertions(+), 16 deletions(-) > > > > I have no opposition to calling the T-Head vector stuff an errata > > against V, the RISC-V folks have already made it quite apparent that > > anything goes here. I would like to get the standard V uABI sorted out > > first, though, as there's still a lot of moving pieces there. It's kind > > of hard here as T-Head got thrown under the bus, but I'm not sure what > > else to do about it. > > The V-1.0 support has been merged, so I think we're good to go. Does > someone mind re-spinning this against for-next so it lines up with all > the new user interfaces? glad to hear that. I found the merge message now as well. Somehow I was only Cc'ed on individual patches but not on the cover-letter, so didn't realize the merge till now. I'll try to re-spin and adapt to the changes since the initial submission. Heiko I'll try to re-spin and adapt to the changes that happened since the original submission.