Re: [PATCH] riscv: Fix CPU feature detection with SMP disabled

From: Palmer Dabbelt
Date: Thu Aug 10 2023 - 15:44:21 EST



On Wed, 02 Aug 2023 18:26:06 -0700, Samuel Holland wrote:
> commit 914d6f44fc50 ("RISC-V: only iterate over possible CPUs in ISA
> string parser") changed riscv_fill_hwcap() from iterating over CPU DT
> nodes to iterating over logical CPU IDs. Since this function runs long
> before cpu_dev_init() creates CPU devices, it hits the fallback path in
> of_cpu_device_node_get(), which itself iterates over the DT nodes,
> searching for a node with the requested CPU ID. (Incidentally, this
> makes riscv_fill_hwcap() now take quadratic time.)
>
> [...]

Applied, thanks!

[1/1] riscv: Fix CPU feature detection with SMP disabled
https://git.kernel.org/palmer/c/6514f81e1bd5

Best regards,
--
Palmer Dabbelt <palmer@xxxxxxxxxxxx>