Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp474738ybh; Tue, 10 Mar 2020 02:20:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvMPwz+NGTmoS1E+zNULuzF4ANwKGTKlXsQdo3LWqJbkZV6I8zDGp1WTYAzx0c66OC20zRT X-Received: by 2002:aca:61c1:: with SMTP id v184mr404535oib.123.1583832033978; Tue, 10 Mar 2020 02:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583832033; cv=none; d=google.com; s=arc-20160816; b=hx9YncaW3kveLUTgrxv1WxKsdkUWaa8QCll0JfVa0lha7PrZKd7UYBK5NMk2cdPEI7 Wh+85QRw8hExf/veP0XqumnUyh4+rsp4GhxFX9nk6GrpaWBhPTYCVvW6jLockD5VqRil QEniDwv7v54P6zjgCaY04wfc4Af41lTsOvUakQ7In8mlTFR/y+1nh87ZUtrH/ILnmUbd 5grWfNLjrx+KnAPIf2tA8P7cji/tvJ4bA3warxNFuZjdoBc92mcRPgxd/HvtgIEPFjAa 5a8QG/NFK8RBMn19S2w0Oml7oWJNH/8nfvyfaaBYH1JiOoI7BCFO2FRJZWpsSMw80Pmq Nm5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wjCevU/DO8QcnVvhecJsNsvY/Eogkcy8Wp1LUXYrp/o=; b=KpmXzgO0wH7zypqRWOQLjEn8lT12l3pKBa6bMVVEOEL4bFszBbszSbjZAY43+/yVGD lYqMJx7z9TdVGBHuzQiQ3vh5pmSTAN4wK6hr5r2+YEKR93uZn3pep2eWlSyA3O5yDGwY 7ovj+cJ8zBPbwh7xN6ZrUGOp01OG047eix5wunYXRWvhaxxaEvND8Qt1C+HcmcqFzNyD GIgZ/QV2E8JWwAaT4Z5QRP2e5S7tXGXUXHQCixI9saUktcJN5jPyhj69okYoRfREPew/ Ywc5FPQbOBXudhztPn7uohTSUmwQ8S1xiH6rLjbghANdBldx7vDZ42qEultaTzBAJHtM L+dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=mODK0PqZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si1460576otr.205.2020.03.10.02.20.22; Tue, 10 Mar 2020 02:20:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=mODK0PqZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgCJJTt (ORCPT + 99 others); Tue, 10 Mar 2020 05:19:49 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:44357 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbgCJJTt (ORCPT ); Tue, 10 Mar 2020 05:19:49 -0400 Received: by mail-qk1-f196.google.com with SMTP id f198so11969743qke.11 for ; Tue, 10 Mar 2020 02:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wjCevU/DO8QcnVvhecJsNsvY/Eogkcy8Wp1LUXYrp/o=; b=mODK0PqZKz4tb/WcnFSbx2LYpETCoT0ilHjfL3D+Gc1Cvs24FfABK7Y5uTG1FF7S/5 JSEinOAr9zNhe7uvCxyPvpWevI11zfcqBZiNkCoYR6vfGQuugG9sdnCM+4DY2C7TQ480 6OSyktiD8UDOJi3QuaoSvnZxqbSx2QZ+cMBlApXYeppkpZsC2T+RXqhUXbTYHytUWasy UlPufV8o3KWP7hmxcibzOBnDBBS9GmbuBaWiFAwupUoCbfBxlDCV0rm3OqFkflR3qQ/v afQuj4Aq1FB8n3rrZzcbJCfv7itqexXpDYdMW6HMrYr5iWEhNs6iEqjcUFjcxo1bZ07/ A7VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wjCevU/DO8QcnVvhecJsNsvY/Eogkcy8Wp1LUXYrp/o=; b=H9pl4HtpuyBTl3um6YUbTksPiJc/agGI16s9SG1wvbSrnOeG8F9NOgLeh/Imtyeu5A HluFP1YG5rE5xVUqNCilwxVAfq9eFsrjv7k8Svd2IYAz7BSp8lfGRpEgV2EPetli+9rV zVgtf/gXHGlkrmWgILKTdQUikoQ3x0vjzOFm+Et7hEbSefvCNanv3Iay1h5kqTeMbfky bSq8IGjDX5gWmacaaY3F9c+1558Q3xVcVz4LsUD9XJrOjgdIXAcQ7HJkvWbSmCdAiYK5 N4rFs+G5Uh8S7d6uLP7Xr7ld+SphY8UTViTmtg6E5VlknCmYOZJc5rJoWs2S/+S/aBuT Lpnw== X-Gm-Message-State: ANhLgQ3diUm3E0QWGsUYcIC7U9zsTfpt9VWWY2wUAFFsiIvd27Revs6v +ToU95jYiHudNWAbuIdeW1i/mSpH1/4jImUYgoQA1Q== X-Received: by 2002:a05:620a:1443:: with SMTP id i3mr9039808qkl.113.1583831988838; Tue, 10 Mar 2020 02:19:48 -0700 (PDT) MIME-Version: 1.0 References: <20200308094954.13258-1-guoren@kernel.org> <95e3bba4-65c0-8991-9523-c16977f6350f@c-sky.com> In-Reply-To: From: Greentime Hu Date: Tue, 10 Mar 2020 17:19:36 +0800 Message-ID: Subject: Re: [RFC PATCH V3 00/11] riscv: Add vector ISA support To: LIU Zhiwei Cc: guoren@kernel.org, Paul Walmsley , Palmer Dabbelt , Anup.Patel@wdc.com, Linux Kernel Mailing List , linux-arch@vger.kernel.org, arnd@arndb.de, linux-csky@vger.kernel.org, linux-riscv , Guo Ren , Dave Martin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 4:54 PM Greentime Hu wrote: > > On Mon, Mar 9, 2020 at 6:27 PM LIU Zhiwei wrote: > > On 2020/3/9 11:41, Greentime Hu wrote: > > > On Sun, Mar 8, 2020 at 5:50 PM wrote: > > >> From: Guo Ren > > >> > > >> The implementation follow the RISC-V "V" Vector Extension draft v0.8 with > > >> 128bit-vlen and it's based on linux-5.6-rc3 and tested with qemu [1]. > > >> > > >> The patch implement basic context switch, sigcontext save/restore and > > >> ptrace interface with a new regset NT_RISCV_VECTOR. Only fixed 128bit-vlen > > >> is implemented. We need to discuss about vlen-size for libc sigcontext and > > >> ptrace (the maximum size of vlen is unlimited in spec). > > >> > > >> Puzzle: > > >> Dave Martin has talked "Growing CPU register state without breaking ABI" [2] > > >> before, and riscv also met vlen size problem. Let's discuss the common issue > > >> for all architectures and we need a better solution for unlimited vlen. > > >> > > >> Any help are welcomed :) > > >> > > >> 1: https://github.com/romanheros/qemu.git branch:vector-upstream-v3 > > > Hi Guo, > > > > > > Thanks for your patch. > > > It seems the qemu repo doesn't have this branch? > > Hi Greentime, > > > > It's a promise from me. Now it's ready. You can turn on vector by > > "qemu-system-riscv64 -cpu rv64,v=true,vext_spec=v0.7.1". > > > > Zhiwei > > > > > > Hi Zhiwei, > > Thank you, I see the branch in the repo now. I will give it a try and > let you know if I have any problem. :) Hi Zhiwei & Guo, It seems current version only support v0.7.1 in qemu but this patchset is verified in qemu too and it is based on 0.8. Would you please provide the qemu with 0.8 vector spec supported? or Did I miss something? 489 if (cpu->cfg.vext_spec) { 490 if (!g_strcmp0(cpu->cfg.vext_spec, "v0.7.1")) { 491 vext_version = VEXT_VERSION_0_07_1; 492 } else { 493 error_setg(errp, 494 "Unsupported vector spec version '%s'", 495 cpu->cfg.vext_spec); 496 return; 497 } 498 } By the way, can I specify vlen in Qemu? Thank you. :)