[Patch v4 22/23] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2015-02-04 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. [ tglx: Fixed docbook comment ] Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu Cc: Konrad

[Patch v2 22/23] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2015-02-01 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. [ tglx: Fixed docbook comment ] Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu Cc: Konrad

[Patch v2 21/22] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2015-01-28 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. [ tglx: Fixed docbook comment ] Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu Cc: Konrad

[tip:x86/apic] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-11-03 Thread tip-bot for Yinghai Lu
parse IOAPIC ID for IOAPIC hotplug We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. [ tglx: Fixed docbook comment ] Signed-off-by: Yinghai Lu Signed-off-by: Jiang

[Patch v8 07/18] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-11-01 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- drivers/acpi/processor_core.c | 122 ++

[Patch v7 07/18] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-10-26 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- drivers/acpi/processor_core.c | 122 ++

[Patch v6 04/15] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-09-24 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- drivers/acpi/processor_core.c | 122 ++

ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-09-15 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- Hi Thomas, I have fixed the docb

Re: [Patch v5 04/15] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-09-11 Thread Thomas Gleixner
On Thu, 11 Sep 2014, Jiang Liu wrote: > + > +#ifdef CONFIG_ACPI_HOTPLUG_IOAPIC > +static int map_ioapic_id(struct acpi_subtable_header *entry, u32 gsi_base, > + u64 *phys_addr, int *ioapic_id) I find these function names map_* quite confusing. All they do is a lookup, right?

[Patch v5 04/15] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-09-11 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- drivers/acpi/processor_core.c | 122 ++

Re: [Patch v4 05/16] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-09-09 Thread Jiang Liu
On 2014/9/9 18:54, Thomas Gleixner wrote: > On Thu, 28 Aug 2014, Jiang Liu wrote: >> >> +static struct acpi_table_madt *madt; >> +static int read_madt; > > Pretty lousy file visible variable names. > > So we end up with two copies of the butt ugly > >if (!read_madt) { > . >

Re: [Patch v4 05/16] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-09-09 Thread Thomas Gleixner
On Thu, 28 Aug 2014, Jiang Liu wrote: > > +static struct acpi_table_madt *madt; > +static int read_madt; Pretty lousy file visible variable names. So we end up with two copies of the butt ugly if (!read_madt) { . } stuff instead of creating a helper function which hides that

[Patch v4 05/16] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-08-27 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- drivers/acpi/apic_id.c | 96 +