[tip:x86/pti] selftests/x86/mpx: Fix incorrect bounds with old _sigfault

2018-02-14 Thread tip-bot for Rui Wang
Commit-ID: 961888b1d76d84efc66a8f5604b06ac12ac2f978 Gitweb: https://git.kernel.org/tip/961888b1d76d84efc66a8f5604b06ac12ac2f978 Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Mon, 18 Dec 2017 16:34:10 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 15 Fe

[tip:x86/pti] selftests/x86/mpx: Fix incorrect bounds with old _sigfault

2018-02-14 Thread tip-bot for Rui Wang
Commit-ID: 961888b1d76d84efc66a8f5604b06ac12ac2f978 Gitweb: https://git.kernel.org/tip/961888b1d76d84efc66a8f5604b06ac12ac2f978 Author: Rui Wang AuthorDate: Mon, 18 Dec 2017 16:34:10 +0800 Committer: Ingo Molnar CommitDate: Thu, 15 Feb 2018 01:15:52 +0100 selftests/x86/mpx: Fix

[tip:x86/pti] selftests/x86/mpx: Fix incorrect bounds with old _sigfault

2018-02-13 Thread tip-bot for Rui Wang
Commit-ID: d101567aec6653cc372af3b9b957299fee06cca8 Gitweb: https://git.kernel.org/tip/d101567aec6653cc372af3b9b957299fee06cca8 Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Mon, 18 Dec 2017 16:34:10 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Tue, 13 Fe

[tip:x86/pti] selftests/x86/mpx: Fix incorrect bounds with old _sigfault

2018-02-13 Thread tip-bot for Rui Wang
Commit-ID: d101567aec6653cc372af3b9b957299fee06cca8 Gitweb: https://git.kernel.org/tip/d101567aec6653cc372af3b9b957299fee06cca8 Author: Rui Wang AuthorDate: Mon, 18 Dec 2017 16:34:10 +0800 Committer: Ingo Molnar CommitDate: Tue, 13 Feb 2018 19:20:05 +0100 selftests/x86/mpx: Fix

[PATCH] x86/mpx/selftests: Fix wrong bounds with old _sigfault

2017-12-18 Thread Rui Wang
adow bounds for register 0 Fix it by using the correct offset of _lower/_upper in _sigfault. RHEL needs this patch to work. Fixes: e754aedc26ef ("x86/mpx, selftests: Add MPX self test") Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- tools/testing/selftests/x86/mp

[PATCH] x86/mpx/selftests: Fix wrong bounds with old _sigfault

2017-12-18 Thread Rui Wang
adow bounds for register 0 Fix it by using the correct offset of _lower/_upper in _sigfault. RHEL needs this patch to work. Fixes: e754aedc26ef ("x86/mpx, selftests: Add MPX self test") Signed-off-by: Rui Wang --- tools/testing/selftests/x86/mpx-mini-test.c | 27 ++

[tip:x86/urgent] x86/PCI: Implement pcibios_release_device to release IRQ from IOAPIC

2017-03-01 Thread tip-bot for Rui Wang
Commit-ID: 153654dbe595a68845ba14d5b0bfe299fa6a7e99 Gitweb: http://git.kernel.org/tip/153654dbe595a68845ba14d5b0bfe299fa6a7e99 Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Tue, 28 Feb 2017 21:34:28 +0800 Committer: Thomas Gleixner <t...@linutronix.de> CommitDate: Wed

[tip:x86/urgent] x86/ioapic: Split IOAPIC hot-removal into two steps

2017-03-01 Thread tip-bot for Rui Wang
Commit-ID: f2ae5da726172fcf82f7be801489dd585f6a38eb Gitweb: http://git.kernel.org/tip/f2ae5da726172fcf82f7be801489dd585f6a38eb Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Tue, 28 Feb 2017 21:34:29 +0800 Committer: Thomas Gleixner <t...@linutronix.de> CommitDate: Wed

[tip:x86/urgent] x86/PCI: Implement pcibios_release_device to release IRQ from IOAPIC

2017-03-01 Thread tip-bot for Rui Wang
Commit-ID: 153654dbe595a68845ba14d5b0bfe299fa6a7e99 Gitweb: http://git.kernel.org/tip/153654dbe595a68845ba14d5b0bfe299fa6a7e99 Author: Rui Wang AuthorDate: Tue, 28 Feb 2017 21:34:28 +0800 Committer: Thomas Gleixner CommitDate: Wed, 1 Mar 2017 10:51:41 +0100 x86/PCI: Implement

[tip:x86/urgent] x86/ioapic: Split IOAPIC hot-removal into two steps

2017-03-01 Thread tip-bot for Rui Wang
Commit-ID: f2ae5da726172fcf82f7be801489dd585f6a38eb Gitweb: http://git.kernel.org/tip/f2ae5da726172fcf82f7be801489dd585f6a38eb Author: Rui Wang AuthorDate: Tue, 28 Feb 2017 21:34:29 +0800 Committer: Thomas Gleixner CommitDate: Wed, 1 Mar 2017 10:51:41 +0100 x86/ioapic: Split IOAPIC

[PATCH v2 2/2] x86/ioapic: Split IOAPIC hot-removal into two steps

2017-02-28 Thread Rui Wang
the pcibios_release_device() of every PCI device under the same parent root bus, before the IOAPIC is hot-removed. This makes it possible for the IOAPIC to free any IRQ resource previously unable to get freed. v2: Fixed compiling error on i386 (missing stub of pci_ioapic_remove()) Signed-off-by: Rui Wang <rui.

[PATCH v2 1/2] x86/PCI: Implement pcibios_release_device to release IRQ from IOAPIC

2017-02-28 Thread Rui Wang
ase_device) Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- arch/x86/pci/common.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 0cb52ae..190e718 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -735,6

[PATCH v2 0/2] Improvement on ioapic hotplug

2017-02-28 Thread Rui Wang
em. IOAPIC hot-removal works correctly after applying this patchset. v2: 0001 Fixed a missing stub function causing compiling error on i386 0002 Fixed a typo on the subject line. Rui Wang (2): x86/PCI: Implement pcibios_release_device to release IRQ from IOAPIC x86/ioapic: Split IOAPIC h

[PATCH v2 0/2] Improvement on ioapic hotplug

2017-02-28 Thread Rui Wang
em. IOAPIC hot-removal works correctly after applying this patchset. v2: 0001 Fixed a missing stub function causing compiling error on i386 0002 Fixed a typo on the subject line. Rui Wang (2): x86/PCI: Implement pcibios_release_device to release IRQ from IOAPIC x86/ioapic: Split IOAPIC h

[PATCH v2 2/2] x86/ioapic: Split IOAPIC hot-removal into two steps

2017-02-28 Thread Rui Wang
the pcibios_release_device() of every PCI device under the same parent root bus, before the IOAPIC is hot-removed. This makes it possible for the IOAPIC to free any IRQ resource previously unable to get freed. v2: Fixed compiling error on i386 (missing stub of pci_ioapic_remove()) Signed-off-by: Rui Wang --- drivers

[PATCH v2 1/2] x86/PCI: Implement pcibios_release_device to release IRQ from IOAPIC

2017-02-28 Thread Rui Wang
ase_device) Signed-off-by: Rui Wang --- arch/x86/pci/common.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 0cb52ae..190e718 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -735,6 +735,15 @@ void pcibios_disable_devi

[PATCH 1/2] x86/PCI: Implement pci_release_device to release IRQ from IOAPIC

2017-02-27 Thread Rui Wang
bus, so we have the chance to hook every PCI device's pcibios_release_device(), before we remove the IOAPIC. This patch implements pcibios_release_device() on x86 to release any IRQ not released by the driver, so that the IOAPIC can then be safely hot-removed. Signed-off-by: Rui Wang <rui.y.w

[PATCH 1/2] x86/PCI: Implement pci_release_device to release IRQ from IOAPIC

2017-02-27 Thread Rui Wang
bus, so we have the chance to hook every PCI device's pcibios_release_device(), before we remove the IOAPIC. This patch implements pcibios_release_device() on x86 to release any IRQ not released by the driver, so that the IOAPIC can then be safely hot-removed. Signed-off-by: Rui Wang --- ar

[PATCH 0/2] Improvement on ioapic hotplug

2017-02-27 Thread Rui Wang
em. IOAPIC hot-removal works correctly after applying this patchset. Rui Wang (2): x86/PCI: Implement pci_release_device to release IRQ from IOAPIC x86/ioapic: Split IOAPIC hot-removal into two steps arch/x86/pci/common.c | 9 + drivers/acpi/internal.h | 1 + drivers/acpi/ioapi

[PATCH 0/2] Improvement on ioapic hotplug

2017-02-27 Thread Rui Wang
em. IOAPIC hot-removal works correctly after applying this patchset. Rui Wang (2): x86/PCI: Implement pci_release_device to release IRQ from IOAPIC x86/ioapic: Split IOAPIC hot-removal into two steps arch/x86/pci/common.c | 9 + drivers/acpi/internal.h | 1 + drivers/acpi/ioapi

[PATCH 2/2] x86/ioapic: Split IOAPIC hot-removal into two steps

2017-02-27 Thread Rui Wang
the pcibios_release_device() of every PCI device under the same parent root bus, before the IOAPIC is hot-removed. This makes it possible for the IOAPIC to free any IRQ resource previously unable to get freed. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/internal.h | 1 + drivers/acpi/io

[PATCH 2/2] x86/ioapic: Split IOAPIC hot-removal into two steps

2017-02-27 Thread Rui Wang
the pcibios_release_device() of every PCI device under the same parent root bus, before the IOAPIC is hot-removed. This makes it possible for the IOAPIC to free any IRQ resource previously unable to get freed. Signed-off-by: Rui Wang --- drivers/acpi/internal.h | 1 + drivers/acpi/ioapic.c | 22

[tip:x86/apic] x86/ioapic: Ignore root bridges without a companion ACPI device

2016-09-10 Thread tip-bot for Rui Wang
Commit-ID: d9c149d6ce1a94de578a4e323f6881fcb6b986ab Gitweb: http://git.kernel.org/tip/d9c149d6ce1a94de578a4e323f6881fcb6b986ab Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Sat, 10 Sep 2016 23:40:45 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Sat, 10 Se

[tip:x86/apic] x86/ioapic: Ignore root bridges without a companion ACPI device

2016-09-10 Thread tip-bot for Rui Wang
Commit-ID: d9c149d6ce1a94de578a4e323f6881fcb6b986ab Gitweb: http://git.kernel.org/tip/d9c149d6ce1a94de578a4e323f6881fcb6b986ab Author: Rui Wang AuthorDate: Sat, 10 Sep 2016 23:40:45 +0800 Committer: Ingo Molnar CommitDate: Sat, 10 Sep 2016 20:30:31 +0200 x86/ioapic: Ignore root

[PATCH] x86/ioapic: Ignore root bridges without a companion ACPI device

2016-09-10 Thread Rui Wang
Some PCI root bridges don't have a corresponding ACPI device. This can be the case on some old platforms. Don't call acpi_ioapic_add() on these bridges because they can't support ioapic hotplug. v2: Per Boris's review, removed the unnecessary local var; refined comment Signed-off-by: Rui Wang

[PATCH] x86/ioapic: Ignore root bridges without a companion ACPI device

2016-09-10 Thread Rui Wang
Some PCI root bridges don't have a corresponding ACPI device. This can be the case on some old platforms. Don't call acpi_ioapic_add() on these bridges because they can't support ioapic hotplug. v2: Per Boris's review, removed the unnecessary local var; refined comment Signed-off-by: Rui Wang

Re: 584c5c422f6c ("x86/ioapic: Support hot-removal of IOAPICs present during boot")

2016-09-10 Thread Rui Wang
On Sat, Sep 10, 2016 10:31 PM, Borislav Petkov wrote: > > On Sat, Sep 10, 2016 at 09:11:30PM +0800, Rui Wang wrote: > > Thanks for the analysis. Looks like acpi_gbl_root_node == 0. It is > > Is ACPI_HANDLE(root_bus->bridge) == ACPI_ROOT_OBJECT? > > Because this is wha

Re: 584c5c422f6c ("x86/ioapic: Support hot-removal of IOAPICs present during boot")

2016-09-10 Thread Rui Wang
On Sat, Sep 10, 2016 10:31 PM, Borislav Petkov wrote: > > On Sat, Sep 10, 2016 at 09:11:30PM +0800, Rui Wang wrote: > > Thanks for the analysis. Looks like acpi_gbl_root_node == 0. It is > > Is ACPI_HANDLE(root_bus->bridge) == ACPI_ROOT_OBJECT? > > Because this is wha

Re: 584c5c422f6c ("x86/ioapic: Support hot-removal of IOAPICs present during boot")

2016-09-10 Thread Rui Wang
On Sat, Sep 10, 2016 7:28 PM, Borislav Petkov wrote: > > 8143ef50 : > 8143ef50: e8 6b 16 42 00 callq 818605c0 > <__fentry__> > 8143ef55: 55 push %rbp > 8143ef56: 48 89 e5mov%rsp,%rbp >

Re: 584c5c422f6c ("x86/ioapic: Support hot-removal of IOAPICs present during boot")

2016-09-10 Thread Rui Wang
On Sat, Sep 10, 2016 7:28 PM, Borislav Petkov wrote: > > 8143ef50 : > 8143ef50: e8 6b 16 42 00 callq 818605c0 > <__fentry__> > 8143ef55: 55 push %rbp > 8143ef56: 48 89 e5mov%rsp,%rbp >

584c5c422f6c ("x86/ioapic: Support hot-removal of IOAPICs present during boot")

2016-09-09 Thread Rui Wang
On Saturday, September 10, 2016 6:07 AM, Borislav Petkov wrote: > > Hi, > > commit in $Subject from tip breaks booting on my SNB test box, it freezes > somewhere very early during boot. When I revert the aforementioned > commit ontop of Linus' master + tip/master from today, it boots fine. > >

584c5c422f6c ("x86/ioapic: Support hot-removal of IOAPICs present during boot")

2016-09-09 Thread Rui Wang
On Saturday, September 10, 2016 6:07 AM, Borislav Petkov wrote: > > Hi, > > commit in $Subject from tip breaks booting on my SNB test box, it freezes > somewhere very early during boot. When I revert the aforementioned > commit ontop of Linus' master + tip/master from today, it boots fine. > >

[tip:x86/apic] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 584c5c422f6c749ced1e0bc3c6837f650f64e1e1 Gitweb: http://git.kernel.org/tip/584c5c422f6c749ced1e0bc3c6837f650f64e1e1 Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Wed, 17 Aug 2016 16:00:34 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 18 Au

[tip:x86/apic] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 584c5c422f6c749ced1e0bc3c6837f650f64e1e1 Gitweb: http://git.kernel.org/tip/584c5c422f6c749ced1e0bc3c6837f650f64e1e1 Author: Rui Wang AuthorDate: Wed, 17 Aug 2016 16:00:34 +0800 Committer: Ingo Molnar CommitDate: Thu, 18 Aug 2016 11:45:18 +0200 x86/ioapic: Support hot

[tip:x86/apic] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 162b83bd5f1d7124e21da78bcf2685b9824d9ef0 Gitweb: http://git.kernel.org/tip/162b83bd5f1d7124e21da78bcf2685b9824d9ef0 Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Wed, 17 Aug 2016 16:00:36 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 18 Au

[tip:x86/apic] x86/ioapic: Fix setup_res() failing to get resource

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 6ab7eba5db93c11d61f6f7fbe21edbc875b26c1a Gitweb: http://git.kernel.org/tip/6ab7eba5db93c11d61f6f7fbe21edbc875b26c1a Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Wed, 17 Aug 2016 16:00:35 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 18 Au

[tip:x86/apic] x86/ioapic: Fix IOAPIC failing to request resource

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 624cad9d2907a0788b56e3ca664c5d7d02645ed4 Gitweb: http://git.kernel.org/tip/624cad9d2907a0788b56e3ca664c5d7d02645ed4 Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Wed, 17 Aug 2016 16:00:37 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 18 Au

[tip:x86/apic] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 162b83bd5f1d7124e21da78bcf2685b9824d9ef0 Gitweb: http://git.kernel.org/tip/162b83bd5f1d7124e21da78bcf2685b9824d9ef0 Author: Rui Wang AuthorDate: Wed, 17 Aug 2016 16:00:36 +0800 Committer: Ingo Molnar CommitDate: Thu, 18 Aug 2016 11:45:18 +0200 x86/ioapic: Fix lost IOAPIC

[tip:x86/apic] x86/ioapic: Fix setup_res() failing to get resource

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 6ab7eba5db93c11d61f6f7fbe21edbc875b26c1a Gitweb: http://git.kernel.org/tip/6ab7eba5db93c11d61f6f7fbe21edbc875b26c1a Author: Rui Wang AuthorDate: Wed, 17 Aug 2016 16:00:35 +0800 Committer: Ingo Molnar CommitDate: Thu, 18 Aug 2016 11:45:18 +0200 x86/ioapic: Fix setup_res

[tip:x86/apic] x86/ioapic: Fix IOAPIC failing to request resource

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: 624cad9d2907a0788b56e3ca664c5d7d02645ed4 Gitweb: http://git.kernel.org/tip/624cad9d2907a0788b56e3ca664c5d7d02645ed4 Author: Rui Wang AuthorDate: Wed, 17 Aug 2016 16:00:37 +0800 Committer: Ingo Molnar CommitDate: Thu, 18 Aug 2016 11:45:19 +0200 x86/ioapic: Fix IOAPIC failing

[tip:x86/apic] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: fe7bd58f5d25d5d655b1da4a084cc4ef6f085fee Gitweb: http://git.kernel.org/tip/fe7bd58f5d25d5d655b1da4a084cc4ef6f085fee Author: Rui Wang <rui.y.w...@intel.com> AuthorDate: Wed, 17 Aug 2016 16:00:33 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 18 Au

[tip:x86/apic] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-08-18 Thread tip-bot for Rui Wang
Commit-ID: fe7bd58f5d25d5d655b1da4a084cc4ef6f085fee Gitweb: http://git.kernel.org/tip/fe7bd58f5d25d5d655b1da4a084cc4ef6f085fee Author: Rui Wang AuthorDate: Wed, 17 Aug 2016 16:00:33 +0800 Committer: Ingo Molnar CommitDate: Thu, 18 Aug 2016 11:45:18 +0200 x86/ioapic: Change prototype

[PATCH v4 4/5] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-08-17 Thread Rui Wang
nge appears in "_CRS" of each IOAPIC device. Both ranges should be claimed from /proc/iomem for exclusive use. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --g

[PATCH v4 4/5] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-08-17 Thread Rui Wang
nge appears in "_CRS" of each IOAPIC device. Both ranges should be claimed from /proc/iomem for exclusive use. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/ioapic.c

[PATCH v4 1/5] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-08-17 Thread Rui Wang
Change the argument of acpi_ioapic_add() to a generic ACPI handle, and move its prototype from drivers/acpi/internal.h to include/linux/acpi.h so that it can be called from outside the pci_root driver. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/internal.h | 2 -- d

[PATCH v4 2/5] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-17 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang <rui.y.w...@intel.com> Acked-by: Bjorn Helgaas <bhelg...@google.com> --- drivers/acpi/pci

[PATCH v4 1/5] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-08-17 Thread Rui Wang
Change the argument of acpi_ioapic_add() to a generic ACPI handle, and move its prototype from drivers/acpi/internal.h to include/linux/acpi.h so that it can be called from outside the pci_root driver. Signed-off-by: Rui Wang --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 6

[PATCH v4 2/5] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-17 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang Acked-by: Bjorn Helgaas --- drivers/acpi/pci_root.c | 10 ++ drivers/pci/setup-bus.c | 5 - 2

[PATCH v4 5/5] x86/ioapic: Fix ioapic failing to request resource

2016-08-17 Thread Rui Wang
ff). Fix it by using insert_resource() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/d

[PATCH v4 5/5] x86/ioapic: Fix ioapic failing to request resource

2016-08-17 Thread Rui Wang
ff). Fix it by using insert_resource() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index ee2

[PATCH v4 0/5] Fixing a set of bugs for ioapic hotplug

2016-08-17 Thread Rui Wang
e in a separate patch so they wouldn't obscure the meat of the change, i.e., the addition of calls to acpi_ioapic_add()." * Removed acpi_ioapic_add() as an exported symbol. * Fixed some typos, and s/acpi/ACPI/, s/ioapic/IOAPIC/ throughout. * Fixed a warning from 0-day testing. Rui Wang (5):

[PATCH v4 0/5] Fixing a set of bugs for ioapic hotplug

2016-08-17 Thread Rui Wang
wouldn't obscure the meat of the change, i.e., the addition of calls to acpi_ioapic_add()." * Removed acpi_ioapic_add() as an exported symbol. * Fixed some typos, and s/acpi/ACPI/, s/ioapic/IOAPIC/ throughout. * Fixed a warning from 0-day testing. Rui Wang (5): x86/ioapic: Ch

[PATCH v4 3/5] x86/ioapic: Fix setup_res() failing to get resource

2016-08-17 Thread Rui Wang
acpi_dev_filter_resource_type() returns 0 on success, and 1 on failure. A return value of zero means there's a matching resource, so we should continue within setup_res() to get the resource. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 2 +- 1 file chan

[PATCH v4 3/5] x86/ioapic: Fix setup_res() failing to get resource

2016-08-17 Thread Rui Wang
acpi_dev_filter_resource_type() returns 0 on success, and 1 on failure. A return value of zero means there's a matching resource, so we should continue within setup_res() to get the resource. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3 0/5] Fixing a set of bugs for ioapic hotplug

2016-08-16 Thread Rui Wang
On Wed, Aug 17, 2016 8:36 AM Rafael J. Wysocki wrote: > On Wednesday, August 10, 2016 12:01:53 PM Rui Wang wrote: > > A set of patches fixing bugs found while testing IOAPIC hotplug. > > This should have been posted to the x...@kernel.org list too for the benefit > of the mai

[PATCH v3 0/5] Fixing a set of bugs for ioapic hotplug

2016-08-16 Thread Rui Wang
On Wed, Aug 17, 2016 8:36 AM Rafael J. Wysocki wrote: > On Wednesday, August 10, 2016 12:01:53 PM Rui Wang wrote: > > A set of patches fixing bugs found while testing IOAPIC hotplug. > > This should have been posted to the x...@kernel.org list too for the benefit > of the mai

[PATCH v3 4/5] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-08-09 Thread Rui Wang
nge appears in "_CRS" of each IOAPIC device. Both ranges should be claimed from /proc/iomem for exclusive use. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --g

[PATCH v3 2/5] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-09 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/pci_root.c | 10 ++ drivers/pci/setup-bus.c | 5 ++

[PATCH v3 1/5] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-08-09 Thread Rui Wang
Change the argument of acpi_ioapic_add() to a generic ACPI handle, and move its prototype from drivers/acpi/internal.h to include/linux/acpi.h so that it can be called from outside the pci_root driver. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/internal.h | 2 -- d

[PATCH v3 4/5] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-08-09 Thread Rui Wang
nge appears in "_CRS" of each IOAPIC device. Both ranges should be claimed from /proc/iomem for exclusive use. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/ioapic.c

[PATCH v3 2/5] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-09 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang --- drivers/acpi/pci_root.c | 10 ++ drivers/pci/setup-bus.c | 5 - 2 files changed, 14

[PATCH v3 1/5] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-08-09 Thread Rui Wang
Change the argument of acpi_ioapic_add() to a generic ACPI handle, and move its prototype from drivers/acpi/internal.h to include/linux/acpi.h so that it can be called from outside the pci_root driver. Signed-off-by: Rui Wang --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 6

[PATCH v3 0/5] Fixing a set of bugs for ioapic hotplug

2016-08-09 Thread Rui Wang
/ioapic/IOAPIC/ throughout. * Fixed a warning from 0-day testing. Rui Wang (5): x86/ioapic: Change prototype of acpi_ioapic_add() x86/ioapic: Support hot-removal of IOAPICs present during boot x86/ioapic: Fix setup_res() failing to get resource x86/ioapic: Fix lost IOAPIC resource aft

[PATCH v3 0/5] Fixing a set of bugs for ioapic hotplug

2016-08-09 Thread Rui Wang
/ioapic/IOAPIC/ throughout. * Fixed a warning from 0-day testing. Rui Wang (5): x86/ioapic: Change prototype of acpi_ioapic_add() x86/ioapic: Support hot-removal of IOAPICs present during boot x86/ioapic: Fix setup_res() failing to get resource x86/ioapic: Fix lost IOAPIC resource aft

[PATCH v3 3/5] x86/ioapic: Fix setup_res() failing to get resource

2016-08-09 Thread Rui Wang
acpi_dev_filter_resource_type() returns 0 on success, and 1 on failure. A return value of zero means there's a matching resource, so we should continue within setup_res() to get the resource. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 2 +- 1 file chan

[PATCH v3 5/5] x86/ioapic: Fix ioapic failing to request resource

2016-08-09 Thread Rui Wang
ff). Fix it by using insert_resource() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/d

[PATCH v3 3/5] x86/ioapic: Fix setup_res() failing to get resource

2016-08-09 Thread Rui Wang
acpi_dev_filter_resource_type() returns 0 on success, and 1 on failure. A return value of zero means there's a matching resource, so we should continue within setup_res() to get the resource. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3 5/5] x86/ioapic: Fix ioapic failing to request resource

2016-08-09 Thread Rui Wang
ff). Fix it by using insert_resource() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index ee2

Re: [PATCH V5 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-08 Thread Rui Wang
On Tuesday, Aug 9, 2016 4:23 AM, Bjorn Helgaas wrote: > On Sun, Jun 26, 2016 at 11:44:57AM +0800, Rui Wang wrote: > > v5: Remove #ifdef CONFIG_X86 from setup-bus.c, making it neutral to > archs. > > v4: Add comments explaining when to call acpi_ioapic_add(). > > v3: Prev

Re: [PATCH V5 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-08 Thread Rui Wang
On Tuesday, Aug 9, 2016 4:23 AM, Bjorn Helgaas wrote: > On Sun, Jun 26, 2016 at 11:44:57AM +0800, Rui Wang wrote: > > v5: Remove #ifdef CONFIG_X86 from setup-bus.c, making it neutral to > archs. > > v4: Add comments explaining when to call acpi_ioapic_add(). > > v3: Prev

[PATCH v2 0/5] Fixing a set of bugs for ioapic hotplug

2016-07-27 Thread Rui Wang
meat of the change, i.e., the addition of calls to acpi_ioapic_add()." * Removed acpi_ioapic_add() as an exported symbol. * Fixed some typos, and s/acpi/ACPI/, s/ioapic/IOAPIC/ throughout. * Fixed a warning from 0-day testing. Rui Wang (5): x86/ioapic: Change prototype of acpi_ioapic_add()

[PATCH v2 2/5] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-07-27 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/pci_root.c | 10 ++ drivers/pci/setup-bus.c | 5 ++

[PATCH v2 1/5] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-07-27 Thread Rui Wang
Change the argument of acpi_ioapic_add() to a generic ACPI handle, and move its prototype from drivers/acpi/internal.h to include/linux/acpi.h so that it can be called from outside the pci_root driver. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/internal.h | 2 -- d

[PATCH v2 0/5] Fixing a set of bugs for ioapic hotplug

2016-07-27 Thread Rui Wang
meat of the change, i.e., the addition of calls to acpi_ioapic_add()." * Removed acpi_ioapic_add() as an exported symbol. * Fixed some typos, and s/acpi/ACPI/, s/ioapic/IOAPIC/ throughout. * Fixed a warning from 0-day testing. Rui Wang (5): x86/ioapic: Change prototype of acpi_ioapic_add()

[PATCH v2 2/5] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-07-27 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang --- drivers/acpi/pci_root.c | 10 ++ drivers/pci/setup-bus.c | 5 - 2 files changed, 14

[PATCH v2 1/5] x86/ioapic: Change prototype of acpi_ioapic_add()

2016-07-27 Thread Rui Wang
Change the argument of acpi_ioapic_add() to a generic ACPI handle, and move its prototype from drivers/acpi/internal.h to include/linux/acpi.h so that it can be called from outside the pci_root driver. Signed-off-by: Rui Wang --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 6

[PATCH v2 4/5] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-07-27 Thread Rui Wang
nge appears in "_CRS" of each IOAPIC device. Both ranges should be claimed from /proc/iomem for exclusive use. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --g

[PATCH v2 5/5] x86/ioapic: Fix ioapic failing to request resource

2016-07-27 Thread Rui Wang
ff). Fix it by using insert_resource() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/d

[PATCH v2 5/5] x86/ioapic: Fix ioapic failing to request resource

2016-07-27 Thread Rui Wang
ff). Fix it by using insert_resource() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index ee2

[PATCH v2 4/5] x86/ioapic: Fix lost IOAPIC resource after hot-removal and hotadd

2016-07-27 Thread Rui Wang
nge appears in "_CRS" of each IOAPIC device. Both ranges should be claimed from /proc/iomem for exclusive use. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/ioapic.c

[PATCH v2 3/5] x86/ioapic: Fix setup_res() failing to get resource

2016-07-27 Thread Rui Wang
setup_res() doesn't actually get any resource because it mistakenly checks the return value of acpi_dev_filter_resource_type(), which returns 0 on success, and 1 on failure. Fix it by taking the return value of non-zero as failing to match the specified resource type. Signed-off-by: Rui Wang

[PATCH v2 3/5] x86/ioapic: Fix setup_res() failing to get resource

2016-07-27 Thread Rui Wang
setup_res() doesn't actually get any resource because it mistakenly checks the return value of acpi_dev_filter_resource_type(), which returns 0 on success, and 1 on failure. Fix it by taking the return value of non-zero as failing to match the specified resource type. Signed-off-by: Rui Wang

Re: [PATCH 3/4] x86/ioapic: Fix lost ioapic resource after hot-removal and hotadd

2016-07-26 Thread Rui Wang
On Wed, July 27, 2016 4:24 AM, Bjorn Helgaas wrote: > On Wed, Jul 27, 2016 at 12:13:16AM +0800, Rui Wang wrote: > > ioapic resource at 0xfecx gets lost from /proc/iomem after > > hot-removing and then hot-adding the ioapic devices. > > > > After system boot, i

Re: [PATCH 3/4] x86/ioapic: Fix lost ioapic resource after hot-removal and hotadd

2016-07-26 Thread Rui Wang
On Wed, July 27, 2016 4:24 AM, Bjorn Helgaas wrote: > On Wed, Jul 27, 2016 at 12:13:16AM +0800, Rui Wang wrote: > > ioapic resource at 0xfecx gets lost from /proc/iomem after > > hot-removing and then hot-adding the ioapic devices. > > > > After system boot, i

Re: [PATCH 1/4] x86/ioapic: Support hot-removal of IOAPICs present during boot boot

2016-07-26 Thread Rui Wang
On Wed, July 27, 2016 4:20 AM Bjorn Helgaas wrote: > On Wed, Jul 27, 2016 at 12:13:14AM +0800, Rui Wang wrote: > > IOAPICs present during system boot aren't added to ioapic_list, thus > > are unable to be hot-removed. Fix it by calling > > acpi_ioapic_add() during

Re: [PATCH 1/4] x86/ioapic: Support hot-removal of IOAPICs present during boot boot

2016-07-26 Thread Rui Wang
On Wed, July 27, 2016 4:20 AM Bjorn Helgaas wrote: > On Wed, Jul 27, 2016 at 12:13:14AM +0800, Rui Wang wrote: > > IOAPICs present during system boot aren't added to ioapic_list, thus > > are unable to be hot-removed. Fix it by calling > > acpi_ioapic_add() during

[PATCH 2/4] x86/ioapic: Fix setup_res() failing to get resource

2016-07-26 Thread Rui Wang
setup_res() doesn't actually get any resoure because it mistakenly checks the return value of acpi_dev_filter_resource_type(), which returns 0 on success, and 1 on failure. Fix it by taking the return value of non-zero as failing to match the specified resource type. Signed-off-by: Rui Wang

[PATCH 3/4] x86/ioapic: Fix lost ioapic resource after hot-removal and hotadd

2016-07-26 Thread Rui Wang
for exclusive use. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index daf4a40..80b0b1a 100644 --- a/drivers/acpi/io

[PATCH 2/4] x86/ioapic: Fix setup_res() failing to get resource

2016-07-26 Thread Rui Wang
setup_res() doesn't actually get any resoure because it mistakenly checks the return value of acpi_dev_filter_resource_type(), which returns 0 on success, and 1 on failure. Fix it by taking the return value of non-zero as failing to match the specified resource type. Signed-off-by: Rui Wang

[PATCH 3/4] x86/ioapic: Fix lost ioapic resource after hot-removal and hotadd

2016-07-26 Thread Rui Wang
for exclusive use. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index daf4a40..80b0b1a 100644 --- a/drivers/acpi/ioapic.c +++ b/drivers/acpi

[PATCH 1/4] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-07-26 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 7 --- d

[PATCH 1/4] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-07-26 Thread Rui Wang
IOAPICs present during system boot aren't added to ioapic_list, thus are unable to be hot-removed. Fix it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 7 --- drivers/acpi/pci_root.c | 13

[PATCH 4/4] x86/ioapic: Fix ioapic failing to request resource

2016-07-26 Thread Rui Wang
ff). Fix it by using insert_resoure() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/d

[PATCH 4/4] x86/ioapic: Fix ioapic failing to request resource

2016-07-26 Thread Rui Wang
ff). Fix it by using insert_resoure() which can request resources by taking the conflicting resource as the parent. Signed-off-by: Rui Wang --- drivers/acpi/ioapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index 80b

[PATCH 0/4] Fixing a set of bugs for ioapic hotplug

2016-07-26 Thread Rui Wang
Hi all, The 1st patch has been discussed before Bjorn went on vacation. I've fixed all the issues. Bjorn, please advise how we'll move forward. The remaining patches fix newly found bugs while testing ioapic hotplug. Regards, Rui Rui Wang (4): x86/ioapic: Support hot-removal of IOAPICs

[PATCH 0/4] Fixing a set of bugs for ioapic hotplug

2016-07-26 Thread Rui Wang
Hi all, The 1st patch has been discussed before Bjorn went on vacation. I've fixed all the issues. Bjorn, please advise how we'll move forward. The remaining patches fix newly found bugs while testing ioapic hotplug. Regards, Rui Rui Wang (4): x86/ioapic: Support hot-removal of IOAPICs

[PATCH V5 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-25 Thread Rui Wang
it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang <rui.y.w...@intel.com> --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 7 --- drivers/acpi/pci_root.c | 13 - drivers/pci/setup-bus.c | 5 - include/linux/acpi.h

[PATCH V5 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-25 Thread Rui Wang
it by calling acpi_ioapic_add() during root bus enumeration. Signed-off-by: Rui Wang --- drivers/acpi/internal.h | 2 -- drivers/acpi/ioapic.c | 7 --- drivers/acpi/pci_root.c | 13 - drivers/pci/setup-bus.c | 5 - include/linux/acpi.h| 6 ++ 5 files changed, 26

Re: [PATCH V4 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-24 Thread Rui Wang
On Fri, Jun 24, 2016 1:35 AM Bjorn Helgaas wrote: > On Thu, Jun 23, 2016 at 01:11:41PM +0800, Rui Wang wrote: > > On Wed, June 22, 2016 11:15 PM Bjorn Helgaas wrote: > > > [...] > > > > @@ -1779,8 +1780,12 @@ void __init > > >

Re: [PATCH V4 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-24 Thread Rui Wang
On Fri, Jun 24, 2016 1:35 AM Bjorn Helgaas wrote: > On Thu, Jun 23, 2016 at 01:11:41PM +0800, Rui Wang wrote: > > On Wed, June 22, 2016 11:15 PM Bjorn Helgaas wrote: > > > [...] > > > > @@ -1779,8 +1780,12 @@ void __init > > >

  1   2   3   >