Re: [PATCH] target/riscv: Fix PMU node property for virt machine

2023-04-27 Thread Conor Dooley
On Thu, Apr 27, 2023 at 01:28:18PM +0800, Yu-Chien Peter Lin wrote: > Hi Conor, > > Thank you for your prompt response. > > On Fri, Apr 21, 2023 at 06:59:40PM +0100, Conor Dooley wrote: > > On Fri, Apr 21, 2023 at 09:14:37PM +0800, Yu Chien Peter Lin wrote: > > > The length of fdt_event_ctr_map[2

Re: [PATCH] target/riscv: Fix PMU node property for virt machine

2023-04-26 Thread Yu-Chien Peter Lin
Hi Conor, Thank you for your prompt response. On Fri, Apr 21, 2023 at 06:59:40PM +0100, Conor Dooley wrote: > On Fri, Apr 21, 2023 at 09:14:37PM +0800, Yu Chien Peter Lin wrote: > > The length of fdt_event_ctr_map[20] will add 5 dummy cells in > > "riscv,event-to-mhpmcounters" property, so direct

Re: [PATCH] target/riscv: Fix PMU node property for virt machine

2023-04-21 Thread Conor Dooley
On Fri, Apr 21, 2023 at 09:14:37PM +0800, Yu Chien Peter Lin wrote: > The length of fdt_event_ctr_map[20] will add 5 dummy cells in > "riscv,event-to-mhpmcounters" property, so directly initialize > the array without an explicit size. > > This patch also fixes the typo of PMU cache operation resul

[PATCH] target/riscv: Fix PMU node property for virt machine

2023-04-21 Thread Yu Chien Peter Lin
The length of fdt_event_ctr_map[20] will add 5 dummy cells in "riscv,event-to-mhpmcounters" property, so directly initialize the array without an explicit size. This patch also fixes the typo of PMU cache operation result ID of MISS (0x1) in the comments, and renames event idx 0x10021 to RISCV_PMU