From: Yao Zi <me@ziyao.cc>
To: Simon Glass <sjg@chromium.org>, me@ziyao.cc
Cc: Tom Rini <trini@konsulko.com>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
u-boot@lists.u-boot-project.org
Subject: Re: [PATCH v6 07/20] LoongArch: lib: General routines
Date: Wed, 4 Nov 2026 04:35:49 +0000 [thread overview]
Message-ID: <auq2JfDtb2gR72Lk@pie> (raw)
In-Reply-To: <CAFLszThRv0=yGbu+bf_uYPjv0aGME80upMX41kbSaQ41qPfzFg@mail.gmail.com>
On Sat, Oct 31, 2026 at 01:43:10AM -0700, Simon Glass wrote:
> Hi Jiaxun,
>
> On 2026-10-29T05:07:18+11:00, Yao Zi <me@ziyao.cc> wrote:
> > LoongArch: lib: General routines
> >
> > Add cache probing through CPUCFG, cache operations, setjmp()/longjump(),
> > and etc. for the architecture.
> >
> > Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> > Signed-off-by: Yao Zi <me@ziyao.cc>
> >
> > arch/loongarch/include/asm/cache.h | 11 +-
> > arch/loongarch/include/asm/global_data.h | 7 +
> > arch/loongarch/lib/Makefile | 7 +
> > arch/loongarch/lib/asm-offsets.c | 66 +++++++++
> > arch/loongarch/lib/boot.c | 14 ++
> > arch/loongarch/lib/cache.c | 235 +++++++++++++++++++++++++++++++
> > arch/loongarch/lib/reset.c | 14 ++
> > arch/loongarch/lib/setjmp.S | 52 +++++++
> > 8 files changed, 405 insertions(+), 1 deletion(-)
>
> > diff --git a/arch/loongarch/include/asm/cache.h b/arch/loongarch/include/asm/cache.h
> > @@ -15,6 +17,13 @@ void cache_flush(void);
> > +#define CACHE_MAX_LEVEL 3
> > +#define CACHE_MAX_INDEX 6
>
> Please can you add a short comment to these, saying that the first is
> the number of dcache levels tracked and the second is the number of
> cache IDs that CACOP can encode?
Sure.
> > diff --git a/arch/loongarch/lib/setjmp.S b/arch/loongarch/lib/setjmp.S
> > @@ -0,0 +1,52 @@
> > +ENTRY(setjmp)
> > + LONG_S s0, a0, 0
> > + LONG_S s1, a0, (1 * LONGSIZE)
>
> There is still a stray space after LONG_S here, and after LONG_L in
> longjmp() too.
I'll clean it up.
> In any case:
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> Regards,
> Simon
Regards,
Yao Zi
next prev parent reply other threads:[~2026-11-04 4:36 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 5:07 [PATCH v6 00/20] LoongArch initial support Yao Zi
2026-10-29 5:07 ` [PATCH v6 01/20] lib: fdtdec: Handle multiple memory nodes Yao Zi
2026-10-31 8:43 ` Simon Glass
2026-10-29 5:07 ` [PATCH v6 02/20] linux/io.h: Use map_physmem to implement ioremap Yao Zi
2026-10-29 5:07 ` [PATCH v6 03/20] image: Take entry point as an output of booti_setup Yao Zi
2026-10-31 8:43 ` Simon Glass
2026-10-29 5:07 ` [PATCH v6 04/20] elf: Define LoongArch bits Yao Zi
2026-10-29 5:07 ` [PATCH v6 05/20] image: Define IH_ARCH_LOONGARCH Yao Zi
2026-10-29 5:07 ` [PATCH v6 06/20] LoongArch: skeleton and headers Yao Zi
2026-10-31 8:42 ` Simon Glass
2026-11-04 4:34 ` Yao Zi
2026-10-29 5:07 ` [PATCH v6 07/20] LoongArch: lib: General routines Yao Zi
2026-10-31 8:43 ` Simon Glass
2026-11-04 4:35 ` Yao Zi [this message]
2026-10-29 5:07 ` [PATCH v6 08/20] LoongArch: CPU assembly routines Yao Zi
2026-10-31 8:43 ` Simon Glass
2026-10-29 5:07 ` [PATCH v6 09/20] LoongArch: Exception handling Yao Zi
2026-10-31 8:43 ` Simon Glass
2026-11-04 4:38 ` Yao Zi
2026-10-29 5:07 ` [PATCH v6 10/20] LoongArch: Boot Image bits Yao Zi
2026-10-31 8:43 ` Simon Glass
2026-11-04 4:45 ` Yao Zi
2026-11-07 19:03 ` Yao Zi
2026-10-29 5:07 ` [PATCH v6 11/20] LoongArch: Generic platform type Yao Zi
2026-10-29 5:07 ` [PATCH v6 12/20] board_f: Add LoongArch path of mon_len calculation Yao Zi
2026-10-29 5:07 ` [PATCH v6 13/20] cpu: Add loongarch_cpu driver Yao Zi
2026-10-29 5:07 ` [PATCH v6 14/20] timer: Add loongarch_timer driver Yao Zi
2026-10-29 5:07 ` [PATCH v6 15/20] board: emulation: Add qemu-loongarch Yao Zi
2026-10-29 5:07 ` [PATCH v6 16/20] efi: LoongArch: Define LoongArch bits everywhere Yao Zi
2026-10-29 5:07 ` [PATCH v6 17/20] efi: LoongArch: Implement everything Yao Zi
2026-10-29 5:07 ` [PATCH v6 18/20] doc: arch: Add documentation for LoongArch Yao Zi
2026-10-29 5:07 ` [PATCH v6 19/20] MAINTAINERS: Add entry " Yao Zi
2026-10-29 5:07 ` [PATCH v6 20/20] CI: Wire up qemu-loongarch64 Yao Zi
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=auq2JfDtb2gR72Lk@pie \
--to=me@ziyao.cc \
--cc=ilias.apalodimas@linaro.org \
--cc=jiaxun.yang@flygoat.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=xypron.glpk@gmx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox