RE: [PATCH v3] driver core: platform: expose numa_node to users in sysfs

2020-07-02 Thread Song Bao Hua (Barry Song)
> > However, it is still much more clear and credible to users by exposing the > data > directly from ACPI table. > Except ARM64 iort, numa_node is actually also applicable to x86 and other architectures through general acpi_create_platform_device() API: drivers/acpi/scan.c: static void

RE: [PATCH v3] driver core: platform: expose numa_node to users in sysfs

2020-06-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: John Garry > Sent: Monday, June 22, 2020 10:49 PM > To: Song Bao Hua (Barry Song) ; > gre...@linuxfoundation.org; raf...@kernel.org > Cc: Robin Murphy ; linux-kernel@vger.kernel.org; > Zengtao (B) ; Linuxarm > Subject: Re: [PATCH v

Re: [PATCH v3] driver core: platform: expose numa_node to users in sysfs

2020-06-22 Thread John Garry
On 19/06/2020 04:00, Barry Song wrote: Some platform devices like ARM SMMU are memory-mapped and populated by ACPI/IORT. In this case, NUMA topology of those platform devices are exported by firmware as well. Software might care about the numa_node of those devices in order to achieve NUMA