Re: [PATCH 13/21] x86, acpi: Try to find SRAT in firmware earlier.

2013-07-24 Thread Tejun Heo
On Wed, Jul 24, 2013 at 06:12:03PM +0800, Tang Chen wrote: > Do you mean get the SRAT's address without touching any ACPI global > variables, such as acpi_gbl_root_table_list ? > > The physical addresses of all tables is stored in RSDT (Root System > Description Table), which is the root table. We

Re: [PATCH 13/21] x86, acpi: Try to find SRAT in firmware earlier.

2013-07-24 Thread Tang Chen
On 07/24/2013 07:26 AM, Cody P Schafer wrote: On 07/19/2013 12:59 AM, Tang Chen wrote: .. +/* + * acpi_get_table_desc - Get the acpi table descriptor of a specific table. + * @signature: The signature of the table to be found. + * @out_desc: The out returned descriptor. The "@out_desc:" l

Re: [PATCH 13/21] x86, acpi: Try to find SRAT in firmware earlier.

2013-07-24 Thread Tang Chen
On 07/24/2013 04:49 AM, Tejun Heo wrote: On Fri, Jul 19, 2013 at 03:59:26PM +0800, Tang Chen wrote: .. + for (pos = 0; +pos< acpi_gbl_root_table_list.current_table_count; +pos++) { + if (!ACPI_COMPARE_NAME + (&(acpi_gbl_root_tab

Re: [PATCH 13/21] x86, acpi: Try to find SRAT in firmware earlier.

2013-07-23 Thread Cody P Schafer
On 07/19/2013 12:59 AM, Tang Chen wrote: This patch introduce early_acpi_firmware_srat() to find the phys addr of SRAT provided by firmware. And call it in reserve_hotpluggable_memory(). Since we have initialized acpi_gbl_root_table_list earlier, and store all the tables' phys addrs and signatur

Re: [PATCH 13/21] x86, acpi: Try to find SRAT in firmware earlier.

2013-07-23 Thread Tejun Heo
On Fri, Jul 19, 2013 at 03:59:26PM +0800, Tang Chen wrote: > +/* /** > + * acpi_get_table_desc - Get the acpi table descriptor of a specific table. > + * @signature: The signature of the table to be found. > + * @out_desc: The out returned descriptor. > + * > + * This function iterates acpi_gbl_r

[PATCH 13/21] x86, acpi: Try to find SRAT in firmware earlier.

2013-07-19 Thread Tang Chen
This patch introduce early_acpi_firmware_srat() to find the phys addr of SRAT provided by firmware. And call it in reserve_hotpluggable_memory(). Since we have initialized acpi_gbl_root_table_list earlier, and store all the tables' phys addrs and signatures in it, it is easy to find the SRAT. Sig