Re: [PATCH v5 03/17] riscv: vector: Use vlenb from DT

2024-05-03 Thread Charlie Jenkins
On Fri, May 03, 2024 at 06:26:58PM +0100, Conor Dooley wrote: > On Fri, May 03, 2024 at 10:15:16AM -0700, Charlie Jenkins wrote: > > The DT is improperly > > formatted since it has heterogeneous vlenb entries and has V enabled, > > but since the user disabled V in the kernel skipping the warning

Re: [PATCH v5 03/17] riscv: vector: Use vlenb from DT

2024-05-03 Thread Conor Dooley
On Fri, May 03, 2024 at 10:15:16AM -0700, Charlie Jenkins wrote: > The DT is improperly > formatted since it has heterogeneous vlenb entries and has V enabled, > but since the user disabled V in the kernel skipping the warning is > reasonable. I wouldn't go as far as "improperly formatted", as if

Re: [PATCH v5 03/17] riscv: vector: Use vlenb from DT

2024-05-03 Thread Charlie Jenkins
On Fri, May 03, 2024 at 05:59:33PM +0100, Conor Dooley wrote: > On Thu, May 02, 2024 at 09:46:38PM -0700, Charlie Jenkins wrote: > > If vlenb is provided in the device tree, prefer that over reading the > > vlenb csr. > > > > Signed-off-by: Charlie Jenkins > > --- > >

Re: [PATCH v5 03/17] riscv: vector: Use vlenb from DT

2024-05-03 Thread Conor Dooley
On Thu, May 02, 2024 at 09:46:38PM -0700, Charlie Jenkins wrote: > If vlenb is provided in the device tree, prefer that over reading the > vlenb csr. > > Signed-off-by: Charlie Jenkins > --- > arch/riscv/include/asm/cpufeature.h | 2 ++ > arch/riscv/kernel/cpufeature.c | 43 >

[PATCH v5 03/17] riscv: vector: Use vlenb from DT

2024-05-02 Thread Charlie Jenkins
If vlenb is provided in the device tree, prefer that over reading the vlenb csr. Signed-off-by: Charlie Jenkins --- arch/riscv/include/asm/cpufeature.h | 2 ++ arch/riscv/kernel/cpufeature.c | 43 + arch/riscv/kernel/vector.c | 12 ++-