From: Gao Xiang <xiang@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Gao Xiang" <xiang@kernel.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Michael Bommarito" <michael.bommarito@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"SJ Park" <sj@kernel.org>,
"Gao Xiang" <hsiangkao@linux.alibaba.com>,
"Yue Hu" <zbestahu@gmail.com>,
"Jeffle Xu" <jefflexu@linux.alibaba.com>,
"Sandeep Dhavale" <dhavale@google.com>,
"Chunhai Guo" <guochunhai@vivo.com>,
linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org,
"Chao Yu" <chao@kernel.org>,
"David Hildenbrand" <david@redhat.com>,
linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Re: [PATCH v3] erofs: cap LZMA stream pool size
Date: Wed, 12 Aug 2026 18:54:48 +0800 [thread overview]
Message-ID: <anxQ-DohuQvuKwAH@XiangdeMacBook-Pro.local> (raw)
In-Reply-To: <CAMuHMdWQLwgShMK7G-6soiZxtRPYWLizBLRdouwxFUcFXUJM-Q@mail.gmail.com>
Hi Geert,
On Wed, Aug 12, 2026 at 11:30:14AM +0200, Geert Uytterhoeven wrote:
> Hi Gao,
>
> On Wed, 12 Aug 2026 at 01:37, Gao Xiang <xiang@kernel.org> wrote:
> > On Tue, Aug 11, 2026 at 03:37:38PM -0400, Michael Bommarito wrote:
> > > On Tue, Aug 11, 2026 at 3:35 PM Guenter Roeck <linux@roeck-us.net> wrote:
> > > > > Any progress with fixing this for v7.2?
> > >
> > > I would like to fix this since I started the problem with the original
> > > patch, but I feel a bit stuck. My v1 and v2 patches would not have
> > > triggered the build failure, but Gao made valid points about the
> > > trade-offs that led us to this v3. Maybe it would be worth your
> > > opinion on the config approach in those earlier patches?
> >
> > Sorry about the late reply.
> >
> > As I said, I really dislike hardcoded range, but it is an issue that no
> > NR_CPUS definition on CONFIG_SMP:
> >
> > I wonder if the following diff resolves the m68k issue (I'm not an
> > Kconfig expert but it seems to work on x86_64 !CONFIG_SMP):
> >
> > diff --git a/fs/erofs/Kconfig b/fs/erofs/Kconfig
> > index 8ca1767dafb6..2dfc313588d2 100644
> > --- a/fs/erofs/Kconfig
> > +++ b/fs/erofs/Kconfig
> > @@ -134,7 +134,8 @@ config EROFS_FS_ZIP_LZMA
> > config EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS
> > int "EROFS LZMA default maximum decompression streams"
> > depends on EROFS_FS_ZIP_LZMA
> > - range 1 NR_CPUS
> > + range 1 NR_CPUS if SMP
> > + range 1 1 if !SMP
> > default 16
> > help
> > By default EROFS allocates one LZMA decompression stream per CPU.
>
> Thank you, that seems to work (despite still seeing the warning on m68k,
> as NR_CPUS does not exist).
>
...
>
> $ make ARCH=m68k allmodconfig
> fs/erofs/Kconfig:137:warning: range is invalid
>
> Warning...
>
Yes, other arches shouldn't have the warning because I think other
arches (including microblaze) defines NR_CPUS in Kconfig, except m68k.
The following diff can eliminate the m68k warning above, I think m68k
folks could consider this way if you really don't want to define an
explicit NR_CPUS. Anyway, I think it should go with another patch:
```
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 11835eb59d94..90499f126c73 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -44,6 +44,9 @@ config M68K
select UACCESS_MEMCPY if !MMU
select ZONE_DMA
+config NR_CPUS
+ int
+
config CPU_BIG_ENDIAN
def_bool y
```
I will try to form a formal patch (with the diff in the previous reply)
directly to Linus (since I don't have other urgent patches for
Linux 7.2.)
Thanks,
Gao Xiang
next prev parent reply other threads:[~2026-08-12 10:54 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 11:47 Michael Bommarito
2026-07-17 3:43 ` Gao Xiang
2026-07-21 3:44 ` Gao Xiang
2026-07-28 3:46 ` SJ Park
2026-07-28 6:31 ` Gao Xiang
2026-07-28 6:54 ` SJ Park
2026-08-03 8:09 ` Geert Uytterhoeven
2026-08-03 9:12 ` Uwe Kleine-König
2026-08-11 19:27 ` Geert Uytterhoeven
2026-08-11 19:35 ` Guenter Roeck
2026-08-11 19:37 ` Michael Bommarito
2026-08-11 23:36 ` Gao Xiang
2026-08-12 9:30 ` Geert Uytterhoeven
2026-08-12 10:54 ` Gao Xiang [this message]
2026-08-12 11:28 ` Geert Uytterhoeven
2026-08-12 13:11 ` [PATCH] erofs: fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS on some UP platforms Gao Xiang
2026-08-12 13:34 ` Geert Uytterhoeven
2026-08-12 14:13 ` Gao Xiang
2026-08-12 14:21 ` SJ Park
2026-08-17 7:32 ` Geert Uytterhoeven
2026-08-17 7:48 ` Gao Xiang
2026-08-17 8:05 ` Geert Uytterhoeven
2026-08-17 8:09 ` Gao Xiang
2026-08-17 8:43 ` Geert Uytterhoeven
2026-08-17 9:04 ` Gao Xiang
2026-08-17 9:21 ` Geert Uytterhoeven
2026-08-17 9:47 ` Gao Xiang
2026-08-17 10:06 ` Gao Xiang
2026-08-12 14:25 ` [PATCH v3] erofs: cap LZMA stream pool size Guenter Roeck
2026-08-14 18:26 ` Gao Xiang
2026-08-14 18:44 ` Guenter Roeck
2026-08-14 18:50 ` Gao Xiang
2026-08-14 19:05 ` Guenter Roeck
2026-08-15 11:41 ` Geert Uytterhoeven
2026-08-15 13:31 ` Guenter Roeck
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=anxQ-DohuQvuKwAH@XiangdeMacBook-Pro.local \
--to=xiang@kernel.org \
--cc=chao@kernel.org \
--cc=david@redhat.com \
--cc=dhavale@google.com \
--cc=geert@linux-m68k.org \
--cc=guochunhai@vivo.com \
--cc=hsiangkao@linux.alibaba.com \
--cc=jefflexu@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=michael.bommarito@gmail.com \
--cc=sj@kernel.org \
--cc=u.kleine-koenig@baylibre.com \
--cc=zbestahu@gmail.com \
/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
all inboxes | Powered by JetHome®