|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/3] xen/arm: fix buf size in make_cpus_node
Hi Stefano, On 10/8/19 2:14 AM, Stefano Stabellini wrote: The size of buf is calculated wrongly: the number is 64bit, not 32bit. While the variable mpdir_aff is 64-bit, we only write the first 32-bit in the property reg (#address-cells == 1 and fdt_property_cell()). So what needs to be modified is the format here. Also, looking the CPU bindings (see linux/Documentation/devicetree/bindings/arm/cpus.yaml), technically only the bits [23:0] of the mpidr should be used. The rest is zeroed. This is ok because vcpuid_to_vaffinity() is always returning a value following the requirements above. However, for correctness, this may want to be fixed. I am afraid this is not fixing this patch: snprintf(buf, sizeof(buf), "cpu@%u", cpu); So the 10 bytes were actually correct back then.The problem was introduced by commit c81a791d34 "xen/arm: Set 'reg' of cpu node for dom0 to match MPIDR's affinity". Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |