[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169169664355.3729.14458848108996711975.b4-ty@rivosinc.com>
Date: Thu, 10 Aug 2023 12:44:03 -0700
From: Palmer Dabbelt <palmer@...osinc.com>
To: Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
linux-riscv@...ts.infradead.org,
Samuel Holland <samuel.holland@...ive.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] riscv: Fix CPU feature detection with SMP disabled
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@...osinc.com>
Powered by blists - more mailing lists