All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leo Liang <ycliang@andestech.com>
To: Tom Rini <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>, <rick@andestech.com>, <ycliang@andestech.com>
Subject: Re: [PULL] u-boot-riscv/master
Date: Thu, 11 Aug 2022 22:22:47 +0000	[thread overview]
Message-ID: <YvWBN/FV1xAHa0c0@ubuntu01> (raw)
In-Reply-To: <20220530150554.GP25375@bill-the-cat>

On Mon, May 30, 2022 at 11:05:54AM -0400, Tom Rini wrote:
> On Sat, May 28, 2022 at 09:02:09AM +0000, Leo Liang wrote:
> > On Fri, May 27, 2022 at 09:30:49AM -0400, Tom Rini wrote:
> > > On Fri, May 27, 2022 at 02:36:29AM +0000, Leo Liang wrote:
> > > 
> > > > Hi Tom, 
> > > > 
> > > > The following changes since commit 7e0edcadb09d55d5319fdc862041fd1b874476f5:
> > > > 
> > > >   Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-05-24 23:29:00 -0400)
> > > > 
> > > > are available in the Git repository at:
> > > > 
> > > >   https://source.denx.de/u-boot/custodians/u-boot-riscv.git
> > > > 
> > > > for you to fetch changes up to c544b281cd3e549a4fcbf4ba9a05a5d72c9557dd:
> > > > 
> > > >   riscv: qemu: Set kernel_comp_addr_r for compressed kernel (2022-05-26 18:42:34 +0800)
> > > > 
> > > > CI result shows no issue: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/12131
> > > 
> > > First, I've applied this to u-boot/master now.  Second, will
> > > https://patchwork.ozlabs.org/project/uboot/patch/PH7PR14MB5594FD11D1BE74284F554BEBCED49@PH7PR14MB5594.namprd14.prod.outlook.com/
> > > be coming soon?  Thanks!
> > 
> > Hi Tom, 
> > 
> > This patch you mentioned will not pass CI, and the reason for that 
> > is the toolchain used for RISC-V in CI does not have corresponding 
> > settings for zifencei and zicsr.
> > (detailed disscussion: https://patchwork.ozlabs.org/project/uboot/patch/20220128134713.2322800-1-alexandre.ghiti@canonical.com/)
> > (CI result: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/jobs/440735)
> > 
> > The patch looks valid, but will fail CI on 32-bit configs.
> > If we use 32-bit toolchain to test 32-bit configs, then 
> > problems solved.
> > 
> > Do you have any comments?
> 
> I guess I'm OK with saying we should use a 32bit toolchain for 32bit
> riscv, if  that's how things should be handled moving forward for
> everyone else.
> 
> -- 
> Tom

Hi Tom,

Sorry for taking such a long time to reply.

Recap:
All the "riscv: fix compitible with binutils 2.38" patches that 
try to support new RISC-V ISA extension will cause U-Boot CI to fail
because the toolchain used in U-Boot CI do not support the new multilib settings. 
(original discussion: 
https://patchwork.ozlabs.org/project/uboot/patch/20220128134713.2322800-1-alexandre.ghiti@canonical.com/)

We found that current RISC-V toolchains from kernel.org do not
support zifencei and zicsr extensions' multilib settings, 
regardless of the toolchain version. 
(Both gcc 11.1.0, 12.1.0 do not support the needed settings.
https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.1.0/
https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.1.0/)

But we also found that if we use recent upstream riscv-gnu-toolchain,
we could build an gcc-12.1.0 toolchain that does support multilib
settings and could fix this issue.

We have provided a Dockerfile as a reference build script[1] and
a prebuilt toolchain[2] for U-Boot CI to use.

We have also verified the CI process could execute successfully
with your base image and the provided riscv64-linux toolchain[3].

I guess the coming update of the toolchain in kernel.org should 
contain the new multilib settings, so I was wondering if we could 
replace the riscv64-linux toolchain from kernel.org with this prebuilt 
toolchain we've provided on github[2] temporarily?

After studying a bit of the buildman tool, the earlier idea that 
"use different toolchains for different board configs" would require 
an amount of modification, thus we think its best to replace the toolchain 
temporarily to fix this issue, then the patch could be applied without CI failure.

[1] https://github.com/ycliang-andes/riscv-toolchain/blob/master/Dockerfile
[2] https://github.com/ycliang-andes/riscv-toolchain/releases/download/v1.0/x86_64-gcc-12.1.0-nolibc-riscv64-linux.tar.xz
[3] https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/13129

  reply	other threads:[~2022-08-11 22:23 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-27  2:36 [PULL] u-boot-riscv/master Leo Liang
2022-05-27 13:30 ` Tom Rini
2022-05-28  9:02   ` Leo Liang
2022-05-30 15:05     ` Tom Rini
2022-08-11 22:22       ` Leo Liang [this message]
2022-08-19  9:09         ` [PATCH] riscv: fix compitible with binutils 2.38 Leo Liang
2022-08-19 15:24           ` Simon Glass
2022-08-30  6:59             ` Leo Liang
  -- strict thread matches above, loose matches on Subject: below --
2023-10-19 11:41 [PULL] u-boot-riscv/master Leo Liang
2023-10-19 14:57 ` Tom Rini
2023-10-05  8:10 Leo Liang
2023-10-05 17:46 ` Tom Rini
2023-09-26  5:21 Leo Liang
2023-09-26 14:05 ` Tom Rini
2023-09-21  1:36 Leo Liang
2023-09-21 19:57 ` Tom Rini
2023-09-05  3:30 Leo Liang
2023-09-05 18:43 ` Tom Rini
2023-08-10 10:32 Leo Liang
2023-08-10 16:22 ` Tom Rini
2023-08-02  5:48 Leo Liang
2023-08-02  6:27 ` Bin Meng
2023-08-02  9:31   ` Leo Liang
2023-08-03  0:59     ` Minda Chen
2023-07-24  8:01 Leo Liang
2023-07-24 16:41 ` Tom Rini
2023-07-12  6:58 Leo Liang
2023-07-12 19:43 ` Tom Rini
2023-04-21  0:41 Leo Liang
2023-04-23 16:15 ` Tom Rini
2023-02-17 12:12 Leo Liang
2023-02-17 15:01 ` Tom Rini
2023-02-19  6:09   ` Leo Liang
2023-02-02  6:30 Leo Liang
2023-02-02 19:18 ` Tom Rini
2022-12-08 11:23 Leo Liang
2022-12-08 16:24 ` Tom Rini
2022-11-16  6:16 Leo Liang
2022-11-16 18:01 ` Tom Rini
2022-11-03  7:04 Leo Liang
2022-11-03 16:57 ` Tom Rini
2022-11-04  0:28   ` Leo Liang
2022-10-20 12:36 Leo Liang
2022-10-20 19:03 ` Tom Rini
2022-09-06  6:07 Leo Liang
2022-09-06 15:50 ` Tom Rini
2022-08-11 21:38 Leo Liang
2022-08-12 12:17 ` Tom Rini
2022-04-06  4:43 Leo Liang
2022-04-06 15:55 ` Tom Rini
2022-03-16  2:56 Leo Liang
2022-03-16 14:48 ` Tom Rini
2022-02-10 15:16 Leo Liang
2022-02-11  0:35 ` Tom Rini
2021-12-03  6:19 Leo Liang
2021-12-04 17:50 ` Tom Rini
2021-11-09  2:40 Leo Liang
2021-11-09 13:45 ` Tom Rini
2021-10-20  7:14 Leo Liang
2021-10-21 11:51 ` Tom Rini
2021-10-07 11:51 Leo Liang
2021-10-07 15:43 ` Tom Rini
2021-09-07  8:20 Leo Liang
2021-09-07 15:33 ` Tom Rini
2021-08-19  8:56 Leo Liang
2021-08-19 14:13 ` Tom Rini
2021-07-22  2:15 Leo Liang
2021-07-22 12:15 ` Tom Rini
2021-07-07 15:21 Leo Liang
2021-07-07 17:33 ` Tom Rini
2021-07-06 16:02 Leo Liang
2021-07-06 19:52 ` Tom Rini
2021-07-07  4:05   ` Tianrui Wei
2021-06-17  3:31 Leo Liang
2021-06-17 14:51 ` Tom Rini
2021-05-31 10:16 Leo Liang
2021-05-31 18:59 ` Tom Rini
2021-05-26  8:12 Leo Liang
2021-05-26 15:24 ` Tom Rini
2021-05-27  8:57   ` Green Wan
2021-05-27 10:41     ` Leo Liang
2021-05-27 11:20       ` Tom Rini
2021-05-27 13:56         ` Green Wan
2021-05-20  2:19 Leo Liang
2021-05-21 14:07 ` Tom Rini
2021-05-18  1:48 Leo Liang
2021-05-18 18:17 ` Tom Rini
2021-05-14 11:10 Leo Liang
2021-05-14 12:23 ` Bin Meng
2021-05-15 12:09 ` Tom Rini
2021-05-07  1:06 Leo Liang
2021-05-07  1:09 ` Tom Rini
2021-05-07  1:41   ` Leo Liang
2021-05-07  1:55     ` Sean Anderson
2021-05-07 16:15       ` Tom Rini
2021-05-07 14:21     ` Dimitri John Ledkov
2021-05-07 14:35       ` Tom Rini
2021-05-07  1:49 ` Sean Anderson
2021-05-10  6:57   ` Leo Liang
2021-05-07 15:37 ` Tom Rini
2021-04-08 10:44 Leo Liang
2021-04-08 19:36 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YvWBN/FV1xAHa0c0@ubuntu01 \
    --to=ycliang@andestech.com \
    --cc=rick@andestech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.