[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdVLvCNZtc2qYrsnMz5L0Hyr70x-Hj5NA8izYBH2tf=yFg@mail.gmail.com>
Date: Tue, 21 Jan 2025 15:12:13 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: Russell King <linux@...linux.org.uk>, Linus Walleij <linus.walleij@...aro.org>,
Sudeep Holla <sudeep.holla@....com>, Ard Biesheuvel <ardb@...nel.org>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>, Arnd Bergmann <arnd@...db.de>,
linux-arm-kernel@...ts.infradead.org, linux-samsung-soc@...r.kernel.org,
linux-kernel@...r.kernel.org, Marek Szyprowski <m.szyprowski@...sung.com>,
Linux-Renesas <linux-renesas-soc@...r.kernel.org>
Subject: Re: [PATCH] ARM: cacheinfo fix format field mask
Hi Dmitry,
Thanks for your patch!
On Wed, Jan 15, 2025 at 12:11 PM Dmitry Baryshkov
<dmitry.baryshkov@...aro.org> wrote:
> Fix C&P error left unnoticed during the reviews. The FORMAT field spans
> over bits 29-31, not 24-27 of the CTR register.
Please add
This causes a warning on e.g. Cortex-A8 and Cortex-A9:
WARNING: CPU: 0 PID: 0 at arch/arm/kernel/cacheinfo.c:43
cache_line_size+0x84/0x94
so people find this patch when looking up the warning.
> Fixes: a9ff94477836 ("ARM: 9433/2: implement cacheinfo support")
> Reported-by: Marek Szyprowski <m.szyprowski@...sung.com>
> Closes: https://lore.kernel.org/linux-arm-msm/01515ea0-c6f0-479f-9da5-764d9ee79ed6@samsung.com/
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
This fixes the warning on Cortex-A8/A9, so
Tested-by: Geert Uytterhoeven <geert+renesas@...der.be>
Note that this changes HWalign on Cortex-A9 (various Renesas SoCs,
with 1, 2, or 4 CPU cores):
-SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=<N>, Nodes=1
+SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=<N>, Nodes=1
On Cortex-A8 (BeagleBone Black, i.e. AM335x), it changes HWalign,
and causes a warning message:
-SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
+SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
...
+cacheinfo: Unable to detect cache hierarchy for CPU 0
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists