Re: [RFC PATCH 3/8] spapr_numa.c: wait for CAS before writing rtas DT

2021-06-15 Thread Daniel Henrique Barboza
On 6/15/21 1:02 AM, David Gibson wrote: On Mon, Jun 14, 2021 at 10:33:04PM -0300, Daniel Henrique Barboza wrote: spapr_numa_write_rtas_dt() is called from spapr_dt_rtas(), which in turned is called by spapr_build_fdt(). spapr_build_fdt() is called in two places: spapr_machine_reset() and do_c

Re: [RFC PATCH 3/8] spapr_numa.c: wait for CAS before writing rtas DT

2021-06-14 Thread David Gibson
On Mon, Jun 14, 2021 at 10:33:04PM -0300, Daniel Henrique Barboza wrote: > spapr_numa_write_rtas_dt() is called from spapr_dt_rtas(), which in > turned is called by spapr_build_fdt(). spapr_build_fdt() is called in > two places: spapr_machine_reset() and do_client_architecture_support(). > When cal

[RFC PATCH 3/8] spapr_numa.c: wait for CAS before writing rtas DT

2021-06-14 Thread Daniel Henrique Barboza
spapr_numa_write_rtas_dt() is called from spapr_dt_rtas(), which in turned is called by spapr_build_fdt(). spapr_build_fdt() is called in two places: spapr_machine_reset() and do_client_architecture_support(). When called in machine_reset() we're writing RTAS nodes with NUMA artifacts without going