Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1874824rdh; Tue, 26 Sep 2023 06:16:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHu1+YPO9OQXyURFUf1YapFrQ/tA0T7C17qgT65/KSlnL5k3ooyyGgyA5hoSjkeuE91o3Jd X-Received: by 2002:a05:6e02:13e2:b0:351:526a:49f with SMTP id w2-20020a056e0213e200b00351526a049fmr1645236ilj.16.1695734211039; Tue, 26 Sep 2023 06:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695734211; cv=none; d=google.com; s=arc-20160816; b=1DvKh6buwHGI5EQlRMn5hLJOyVq9S2vXkgN1FFaErjSkdj8S1WULUQ2sNfO1oJiVhW wXvyH5iwppA01xui3jzOZ4LsBVSeu5a9f1yUUI+7/SoMmyhoTrgbjFGzUNLqIXcToMv9 fsp/yY4HMW/OX3xnYr8244+pwNt57wNOMyo7bf0qKnUouZMG7/aLSZibvzcddci6pxvx fbNuuHP0Fa8lfK4y6/A/SWDMQDgSQZjinEosZwvj6hcIBTNSUDlQQLxQEzcTRdbptWYS Z0Py3FxqtsBBiGAmvpoiFmM5MxT4Wtvb99CFecZGavKldGo09DwelSymyzRHfVSn52Og n/QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cYJ+Soo11ckzYqJKoCtN3646PUEaaNXCy3bDcki6Cog=; fh=a1k5MgsgFCtVT2fuSpb2PmV32jdtUgAGEbZ0ClwfVss=; b=z3ekUnZQ5BfIMaYe+lFkvVQtIf5zspXn8sB3f1kvSRB9exXzdxiuPSS9hrYcuDUnes bKtClAbGnlo/Tb1EeKVo1hb7urQxYwL1n/qM9O3vCXL/Eea5F++93FIjuMKCZcI7uSeG 0m9CK14V5dKuTr0rIDDJ3qAGTi+cpUON0Xmky5Kq/z35yE7P6JL+HluDvlx62G2BhYwV l3xsdox2baRuujVt/9owBkCAHpnpxC6+JhG73awYdyNpbiYsmKdL/UraN2ZvFpD+fySV p+AeZGIUiCor8EB4aTF1BpwS9G31fwCVSFzHP/obYZ/mx/O5emnutyEhCq7eeXuqY30O d5Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="QBu/enxi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id by7-20020a056a02058700b00573fa4cfe4asi13429208pgb.39.2023.09.26.06.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="QBu/enxi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E4E61802374A; Tue, 26 Sep 2023 03:29:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234380AbjIZK3b (ORCPT + 99 others); Tue, 26 Sep 2023 06:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234200AbjIZK31 (ORCPT ); Tue, 26 Sep 2023 06:29:27 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6352AD6; Tue, 26 Sep 2023 03:29:20 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-59f6e6b7600so50292377b3.3; Tue, 26 Sep 2023 03:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695724159; x=1696328959; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cYJ+Soo11ckzYqJKoCtN3646PUEaaNXCy3bDcki6Cog=; b=QBu/enxiybPxzqGXMHQZG65AxY7O6y4QJCooOlyBXQqGSCo/HTmBCmJryA84TLuX+n dIpPewfI1ZINRw7Owab4xKMNzV1W4Z8U6LHArvcF9K0+JRschU4tNK84nbBTMhd0XsUb hFSP7KsZCA9RTTYOL3ZIGUOrLOS/o7G6/hze2uQXMuJNq/WF/fruj2PeMbAuyoXcJ3vB UtzBgUWVNTTQcSy8USaqGgFzDCK/fMfgk+LLQM5fCNYbWFm6IIHb7Mta3q2Axs6Zw4Zw TmST+/Fp1AROjhU60lkYB3WGiaHXbKuuyX9cgMK3uaSc1psd2dhAHGNahWY1Fmu6D2cU kM9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695724159; x=1696328959; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cYJ+Soo11ckzYqJKoCtN3646PUEaaNXCy3bDcki6Cog=; b=WqZtMHbbpk6IfRRsECtS0K93iYD/19VVGImsknTLqRuCanZZOBrP0B4Kro4q6zQa1i usjh2SwE5CCgxYIzyRxL+ON7gCYxE32UkmiK9d7B/jst4m1MlF6Y8YOpCDt4NlrY9psv hcx5xzfDKMpaxdc+/t4ixkHsYGoNTChOAtC5E6uA6+FPKnnMGtlH2v1BZOckk3YgwqOo DHs/0hxQUCRN8Ojw/jL6t8WS4Q9IAf9nLA9sajcbBtL5gShchXWuq19mAhwEIKs+VHg7 /PrkGrTmx2qGoMANvpsOPnyCmnBQC8jfaBK1xplgn/ychTWKlegqwLm6BT1dC/4dHYtQ VHVg== X-Gm-Message-State: AOJu0YwK32oBhEAfoFkLw9d60bgiMC84x3zzn0NxqXYQ5GuARb4RwF8X uWb2o7kFXqaIxgCiahlVlFnIcQT8dZUZX23ODsM= X-Received: by 2002:a0d:fcc6:0:b0:59b:2458:f60c with SMTP id m189-20020a0dfcc6000000b0059b2458f60cmr8837917ywf.28.1695724159451; Tue, 26 Sep 2023 03:29:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Chen Wang Date: Tue, 26 Sep 2023 18:29:07 +0800 Message-ID: Subject: Re: [PATCH v2 00/11] Add Milk-V Pioneer RISC-V board support To: Palmer Dabbelt Cc: aou@eecs.berkeley.edu, chao.wei@sophgo.com, Conor Dooley , devicetree@vger.kernel.org, emil.renner.berthing@canonical.com, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , robh+dt@kernel.org, xiaoguang.xing@sophgo.com, wangchen20@iscas.ac.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 03:29:48 -0700 (PDT) Palmer Dabbelt =E4=BA=8E2023=E5=B9=B49=E6=9C=8820=E6= =97=A5=E5=91=A8=E4=B8=89 23:22=E5=86=99=E9=81=93=EF=BC=9A > > On Tue, 19 Sep 2023 23:33:48 PDT (-0700), unicornxw@gmail.com wrote: > > Milk-V Pioneer [1] is a developer motherboard based on SOPHON SG2042 [2= ] > > in a standard mATX form factor. Add minimal device > > tree files for the SG2042 SOC and the Milk-V Pioneer board. > > > > Now only support basic uart drivers to boot up into a basic console. > > > > Thanks, > > Chen > > > > --- > > > > Changes in v2: > > The patch series is based on v6.6-rc1. You can simply review or test > > the patches at the link [4]. > > - Improve format for comment of commitments as per input from last re= view. > > - Improve format of DTS as per input from last review. > > - Remove numa related stuff from DTS. This part is just for optimizat= ion, may > > add it later if really needed. > > > > Previous versions: > > v1: due to it is not sent in thread, I have listed permlinks of the pat= chset > > [v1-0/12] ~ [v1-12/12] here for quick reference. You can simply rev= iew or > > test the patches at the link [3]. > > > > [1]: https://milkv.io/pioneer > > [2]: https://en.sophgo.com/product/introduce/sg2042.html > > [3]: https://github.com/unicornx/linux-riscv/commits/milkv-pioneer-mini= mal > > [4]: https://github.com/unicornx/linux-riscv/commits/milkv-pioneer-mini= mal-v2 > > [v1-0/12]:https://lore.kernel.org/linux-riscv/20230915070856.117514-1-w= angchen20@iscas.ac.cn/ > > [v1-1/12]:https://lore.kernel.org/linux-riscv/20230915071005.117575-1-w= angchen20@iscas.ac.cn/ > > [v1-2/12]:https://lore.kernel.org/linux-riscv/20230915071409.117692-1-w= angchen20@iscas.ac.cn/ > > [v1-3/12]:https://lore.kernel.org/linux-riscv/20230915072242.117935-1-w= angchen20@iscas.ac.cn/ > > [v1-4/12]:https://lore.kernel.org/linux-riscv/20230915072333.117991-1-w= angchen20@iscas.ac.cn/ > > [v1-5/12]:https://lore.kernel.org/linux-riscv/20230915072358.118045-1-w= angchen20@iscas.ac.cn/ > > [v1-6/12]:https://lore.kernel.org/linux-riscv/20230915072415.118100-1-w= angchen20@iscas.ac.cn/ > > [v1-7/12]:https://lore.kernel.org/linux-riscv/20230915072431.118154-1-w= angchen20@iscas.ac.cn/ > > [v1-8/12]:https://lore.kernel.org/linux-riscv/20230915072451.118209-1-w= angchen20@iscas.ac.cn/ > > [v1-9/12]:https://lore.kernel.org/linux-riscv/20230915072517.118266-1-w= angchen20@iscas.ac.cn/ > > [v1-10/12]:https://lore.kernel.org/linux-riscv/20230915072558.118325-1-= wangchen20@iscas.ac.cn/ > > [v1-11/12]:https://lore.kernel.org/linux-riscv/20230915072624.118388-1-= wangchen20@iscas.ac.cn/ > > [v1-12/12]:https://lore.kernel.org/linux-riscv/20230915072653.118448-1-= wangchen20@iscas.ac.cn/ > > > > --- > > > > Chen Wang (8): > > riscv: Add SOPHGO SOC family Kconfig support > > dt-bindings: vendor-prefixes: add milkv/sophgo > > dt-bindings: riscv: add sophgo sg2042 bindings > > dt-bindings: riscv: Add T-HEAD C920 compatibles > > dt-bindings: interrupt-controller: Add SOPHGO's SG2042 PLIC > > riscv: dts: add initial SOPHGO SG2042 SoC device tree > > riscv: dts: sophgo: add Milk-V Pioneer board device tree > > riscv: defconfig: enable SOPHGO SoC > > > > Emil Renner Berthing (2): > > dt-bindings: serial: snps-dw-apb-uart: Add Sophgo SG2042 uarts > > serial: 8250_dw: Add Sophgo SG2042 support > > > > Inochi Amaoto (1): > > dt-bindings: timer: Add Sophgo sg2042 clint > > > > .../sifive,plic-1.0.0.yaml | 1 + > > .../devicetree/bindings/riscv/cpus.yaml | 1 + > > .../devicetree/bindings/riscv/sophgo.yaml | 28 + > > .../bindings/serial/snps-dw-apb-uart.yaml | 1 + > > .../bindings/timer/sifive,clint.yaml | 8 + > > .../devicetree/bindings/vendor-prefixes.yaml | 4 + > > MAINTAINERS | 7 + > > arch/riscv/Kconfig.socs | 5 + > > arch/riscv/boot/dts/Makefile | 1 + > > arch/riscv/boot/dts/sophgo/Makefile | 3 + > > arch/riscv/boot/dts/sophgo/sg2042-cpus.dtsi | 1744 +++++++++++++++++ > > .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 19 + > > arch/riscv/boot/dts/sophgo/sg2042.dtsi | 439 +++++ > > arch/riscv/configs/defconfig | 1 + > > drivers/tty/serial/8250/8250_dw.c | 5 +- > > 15 files changed, 2265 insertions(+), 2 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/riscv/sophgo.yaml > > create mode 100644 arch/riscv/boot/dts/sophgo/Makefile > > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-cpus.dtsi > > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042.dtsi > > Given this is the first sg2042 and it appears to have a few errata (the > FP rounding issues and the special fence for starvation), I think we > want to make sure we figure out how to provide that information to > userspace. > Hi, Palmer, I don't understand well what's your meaning of "provide that information to userspace", can you please clarify more? And for this patchset, do we still lack something else? This patchset is the first one for sg2042, but I don't see those issues you mentioned would block it, becasue the target of this first patchset we just want to make sure the kernel can boot up and work with a uart console. Thanks in adv. Chen > > base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d