Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp454225ybh; Tue, 10 Mar 2020 01:55:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vujb2tqOcBVucbQ8YqfJBJGH5SB86Tm7y5k2YQYgJtTFgVdzD28r23b+c0xLdaZSVrj5PkM X-Received: by 2002:a9d:19ef:: with SMTP id k102mr13066310otk.220.1583830542586; Tue, 10 Mar 2020 01:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583830542; cv=none; d=google.com; s=arc-20160816; b=BrwVglZAMY/WTP32NuT9sl2KsKU5zfwvCsefA1zDoDzg6/l6cwRqWyCmZOfrHhpQ9r dokuOZ/BHxjgTIWryDEd6jHx5kVnu0qDFSPMrDWddI+L3/aJG7FYa6F3aHy61OQtnIq7 1JnU+x/OlIUGWZabefmXQMQdP5QuBUly6h46kdfgVdjsRMP2sAPxImVdO6BlHwcjhHTs DHU78KJOiMFp1/exwmdobRDf9n09LaN4DWNxik+rh4tp1OzDJNLlAspe6ETuVt4Klwq1 1QjVuyM549OCtMEwWm5I3k+eG29CciE3+WIURlEUhNnA85thgOHg0gcuoRIbtlD+JwKF jGvQ== 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=nSPxA9X500mgbh9IFPNCBvtp5v+qregrP1EhmFh9wNQ=; b=mY4hDRGhgkTEF+xD54mAKaiqL9mRU5qJSprBLXod6853+zW7OnKlyJsV81JC/GJXHp 1kP0AkgCMwTp1avQxfzd9p9U90CtCtBcQLi+ewKzTv/3aKtPtyRZH8yh1OTa/uZSa/wt I4h3jaYeBJDuAoPK2NOs6st0HDWWR34Ld5qr9hG8FLZI1s7bJuDtoP7jcuJZMCaY2nv8 cqwlMyLG3fHTkDGwir209och2rXGRX2E/O5BNfHYKdak4070g1ai9t9GMGmGQ53kJKjI x+M4qXQYJLzWBYsLZxEwjI3K5mVBXZwLPr0NVPz0MoTXr3YaGXKY7I+RlHQOHX+72xGc BrIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Q05xIIQL; 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 v137si5176586oif.170.2020.03.10.01.55.30; Tue, 10 Mar 2020 01:55:42 -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=Q05xIIQL; 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 S1726595AbgCJIyc (ORCPT + 99 others); Tue, 10 Mar 2020 04:54:32 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:37923 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbgCJIyc (ORCPT ); Tue, 10 Mar 2020 04:54:32 -0400 Received: by mail-qk1-f196.google.com with SMTP id h14so6002710qke.5 for ; Tue, 10 Mar 2020 01:54:31 -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=nSPxA9X500mgbh9IFPNCBvtp5v+qregrP1EhmFh9wNQ=; b=Q05xIIQLHRc1MoiGKDvABRgahTMFDzDQ4Ck1T7qE3LuZVcY7SjB9im3hZXh1MBO8BD tQCQ5/nKjtYM51FVdSbLdKJNHTOr07CgOD7VspKmPJLSI2nKDNMYnGh+sgs9eEgdTaTz UAtWopKNqaTtn6NQW1GbkupcEFOUnnuOY8xmbv1jNSClQP43hozMkqz7dq3Sywj5LGzc NCBDP9dcWc9zXnyQ+e1bkqZJRb9S61qNJVSKpRfNYWkUurvYLqKtbQUUF+Ptg/TB8S2n V1Z27CFKbaqbF2MARL6t8YH4yvnrl2r4smaHIfyzrRnX47CCFxgEcqGa2BT07/kWYY2N bNow== 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=nSPxA9X500mgbh9IFPNCBvtp5v+qregrP1EhmFh9wNQ=; b=YBWXUciaGBVA5j5pOJeLdP5mPnDlssQ1LmMALqnxWWl0BNTrCtxKm6iS3EcmYGrKI6 aQ9lDWErD/ZYo0hJBHgdLhrB4limw2pI/8li+zFIIDJUe9hxms5C24jxZhZ/QfaFQoWm J4QAdjdYRuegw/3ZDqvlYdhxJCXysZa5gEKBctJcYkhdTdlRgt4LzAvBu+fW6nwqvho0 M92CU7aOmu+IzjoBbEWmQlCLFf2pfTzn5oMBgMawyzpugG1TeY28n0IXKGqGqUJPh//c apTwf3rpwi5oLJH8mavHiyYQ9xlGql3N8hhBC/jo0VLdGDbsoLAj+DcLepSkyLGkv1ez uZxA== X-Gm-Message-State: ANhLgQ3ZYcuv+kbhOqHJx1F5H177aHuAT8tdkQQPzAl+ALgKsYywfKU0 J1GmyXdO6ME9b3X0zITgNo3ETRVFGmbHOl14EDZR5Q== X-Received: by 2002:a37:a8d8:: with SMTP id r207mr18024852qke.123.1583830471137; Tue, 10 Mar 2020 01:54:31 -0700 (PDT) MIME-Version: 1.0 References: <20200308094954.13258-1-guoren@kernel.org> <95e3bba4-65c0-8991-9523-c16977f6350f@c-sky.com> In-Reply-To: <95e3bba4-65c0-8991-9523-c16977f6350f@c-sky.com> From: Greentime Hu Date: Tue, 10 Mar 2020 16:54:19 +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 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. :)