Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-03-03 Thread Takao Indoh
(2013/01/23 9:47), Thomas Renninger wrote: > On Monday, January 21, 2013 10:11:04 AM Takao Indoh wrote: >> (2013/01/08 4:09), Thomas Renninger wrote: > ... >>> I tried the provided patches first on 2.6.32, then I verfied with 3.8-rc2 >>> and in both cases th

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-03-03 Thread Takao Indoh
(2013/01/23 9:47), Thomas Renninger wrote: On Monday, January 21, 2013 10:11:04 AM Takao Indoh wrote: (2013/01/08 4:09), Thomas Renninger wrote: ... I tried the provided patches first on 2.6.32, then I verfied with 3.8-rc2 and in both cases the disk is not detected anymore in reset_devices

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-29 Thread Takao Indoh
(2013/01/29 10:14), Thomas Renninger wrote: > On Thursday, January 24, 2013 09:23:14 AM Takao Indoh wrote: >> (2013/01/23 9:47), Thomas Renninger wrote: >>> On Monday, January 21, 2013 10:11:04 AM Takao Indoh wrote: >>>> (2013/01/08 4:09), Thomas Renninger wr

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-29 Thread Takao Indoh
(2013/01/29 10:14), Thomas Renninger wrote: On Thursday, January 24, 2013 09:23:14 AM Takao Indoh wrote: (2013/01/23 9:47), Thomas Renninger wrote: On Monday, January 21, 2013 10:11:04 AM Takao Indoh wrote: (2013/01/08 4:09), Thomas Renninger wrote: ... I tried the provided patches first

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-23 Thread Takao Indoh
(2013/01/23 9:47), Thomas Renninger wrote: On Monday, January 21, 2013 10:11:04 AM Takao Indoh wrote: (2013/01/08 4:09), Thomas Renninger wrote: ... I tried the provided patches first on 2.6.32, then I verfied with 3.8-rc2 and in both cases the disk is not detected anymore in reset_devices

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-23 Thread Takao Indoh
(2013/01/23 9:47), Thomas Renninger wrote: On Monday, January 21, 2013 10:11:04 AM Takao Indoh wrote: (2013/01/08 4:09), Thomas Renninger wrote: ... I tried the provided patches first on 2.6.32, then I verfied with 3.8-rc2 and in both cases the disk is not detected anymore in reset_devices

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-20 Thread Takao Indoh
(2013/01/08 4:09), Thomas Renninger wrote: On Friday, December 21, 2012 08:19:05 AM Yinghai Lu wrote: On Fri, Nov 30, 2012 at 7:49 AM, MUNEDA Takahiro wrote: On Tue, 27 Nov 2012 09:42:20 +0900 (JST), Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-20 Thread Takao Indoh
(2013/01/08 4:09), Thomas Renninger wrote: On Friday, December 21, 2012 08:19:05 AM Yinghai Lu wrote: On Fri, Nov 30, 2012 at 7:49 AM, MUNEDA Takahiro muneda.takah...@jp.fujitsu.com wrote: On Tue, 27 Nov 2012 09:42:20 +0900 (JST), Takao Indoh indou.ta...@jp.fujitsu.com wrote: These patches

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-08 Thread Takao Indoh
(or other PCI(e) error handlers get active?)? Or AER framework may be able to handle this. Actually it has a function to reset endpoint when error is detected. Thanks, Takao Indoh If this does not help the next step could be to stop DMAR error interrupt handling or other iommu commands to keep t

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2013-01-08 Thread Takao Indoh
PCI(e) error handlers get active?)? Or AER framework may be able to handle this. Actually it has a function to reset endpoint when error is detected. Thanks, Takao Indoh If this does not help the next step could be to stop DMAR error interrupt handling or other iommu commands to keep

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2012-12-21 Thread Takao Indoh
256 digest. Thanks, Takao Indoh 2012/11/27 Takao Indoh mailto:indou.ta...@jp.fujitsu.com>> These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When "reset_devices" is specified, a hot reset is triggered on each PCIe root port an

Re: [PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2012-12-21 Thread Takao Indoh
. Thanks, Takao Indoh 2012/11/27 Takao Indoh indou.ta...@jp.fujitsu.com mailto:indou.ta...@jp.fujitsu.com These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When reset_devices is specified, a hot reset is triggered on each PCIe root port

[PATCH v7 5/5] x86, pci: Enable PCI INTx when MSI is disabled

2012-11-26 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh --- arch/x86/pci/common.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -615,8

[PATCH v7 4/5] x86, pci: Reset PCIe devices at boot time

2012-11-26 Thread Takao Indoh
Ie devices during boot to stop its DMA. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |1 + arch/x86/kernel/setup.c |3 + arch/x86/pci/early.c | 241 + 3 files changed, 245 insertions(+), 0 deletions(-) diff --

[PATCH v7 3/5] Make reset_devices available at early stage

2012-11-26 Thread Takao Indoh
Change reset_devices from __setup to early_param so this parameter is available at early stage. Signed-off-by: Takao Indoh --- init/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index e33e09d..f2b24cb 100644 --- a/init/main.c +++ b

[PATCH v7 2/5] PCI: Define the maximum number of PCI function

2012-11-26 Thread Takao Indoh
Define the maximum number of PCI function so that PCI functions can be enumerated without using "8". Signed-off-by: Takao Indoh --- include/linux/pci.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index ee2179

[PATCH v7 1/5] x86, pci: add dummy pci device for early stage

2012-11-26 Thread Takao Indoh
So we can pass pci_dev *dev to reuse some generic pci functions. The original patch was written by Yinghai Lu. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |2 + arch/x86/pci/early.c | 74 + 2 files changed, 76

[PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2012-11-26 Thread Takao Indoh
devices so that they are called only once. https://lkml.org/lkml/2012/10/10/57 v2: Reset devices in setup_arch() because reset need to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Taka

[PATCH v7 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2012-11-26 Thread Takao Indoh
that they are called only once. https://lkml.org/lkml/2012/10/10/57 v2: Reset devices in setup_arch() because reset need to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Takao Indoh (5

[PATCH v7 1/5] x86, pci: add dummy pci device for early stage

2012-11-26 Thread Takao Indoh
So we can pass pci_dev *dev to reuse some generic pci functions. The original patch was written by Yinghai Lu. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |2 + arch/x86/pci/early.c | 74 + 2

[PATCH v7 2/5] PCI: Define the maximum number of PCI function

2012-11-26 Thread Takao Indoh
Define the maximum number of PCI function so that PCI functions can be enumerated without using 8. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- include/linux/pci.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h

[PATCH v7 3/5] Make reset_devices available at early stage

2012-11-26 Thread Takao Indoh
Change reset_devices from __setup to early_param so this parameter is available at early stage. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- init/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index e33e09d..f2b24cb

[PATCH v7 4/5] x86, pci: Reset PCIe devices at boot time

2012-11-26 Thread Takao Indoh
during boot to stop its DMA. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 + arch/x86/kernel/setup.c |3 + arch/x86/pci/early.c | 241 + 3 files changed, 245 insertions(+), 0 deletions

[PATCH v7 5/5] x86, pci: Enable PCI INTx when MSI is disabled

2012-11-26 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/pci/common.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86

Re: [PATCH v6 1/5] x86, pci: add dummy pci device for early stage

2012-11-13 Thread Takao Indoh
(2012/11/13 19:01), Andrew Murray wrote: Hello, Some comments inline... On 13 November 2012 09:07, Takao Indoh wrote: From: Yinghai Lu So we can pass pci_dev *dev to reuse some generic pci functions. Signed-off-by: Yinghai Lu Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci

[PATCH v6 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2012-11-13 Thread Takao Indoh
to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Takao Indoh (4): PCI: Define the maximum number of PCI function Make reset_devices available at early stage x86, pci:

[PATCH v6 5/5] x86, pci: Enable PCI INTx when MSI is disabled

2012-11-13 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh --- arch/x86/pci/common.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -615,8

[PATCH v6 4/5] x86, pci: Reset PCIe devices at boot time

2012-11-13 Thread Takao Indoh
tch resets PCIe devices by hot reset and its DMA is stopped when reset_devices is specified. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |1 + arch/x86/kernel/setup.c |3 + arch/x86/pci/early.c | 228 + 3 fil

[PATCH v6 3/5] Make reset_devices available at early stage

2012-11-13 Thread Takao Indoh
Change reset_devices from __setup to early_param so this parameter is available at early stage. Signed-off-by: Takao Indoh --- init/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index e33e09d..f2b24cb 100644 --- a/init/main.c +++ b

[PATCH v6 2/5] PCI: Define the maximum number of PCI function

2012-11-13 Thread Takao Indoh
Define the maximum number of PCI function so that PCI functions can be enumerated without using "8". Signed-off-by: Takao Indoh --- include/linux/pci.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index ee2179

[PATCH v6 1/5] x86, pci: add dummy pci device for early stage

2012-11-13 Thread Takao Indoh
From: Yinghai Lu So we can pass pci_dev *dev to reuse some generic pci functions. Signed-off-by: Yinghai Lu Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |2 + arch/x86/pci/early.c | 75 + 2 files changed, 77

[PATCH v6 1/5] x86, pci: add dummy pci device for early stage

2012-11-13 Thread Takao Indoh
From: Yinghai Lu ying...@kernel.org So we can pass pci_dev *dev to reuse some generic pci functions. Signed-off-by: Yinghai Lu ying...@kernel.org Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |2 + arch/x86/pci/early.c | 75

[PATCH v6 2/5] PCI: Define the maximum number of PCI function

2012-11-13 Thread Takao Indoh
Define the maximum number of PCI function so that PCI functions can be enumerated without using 8. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- include/linux/pci.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h

[PATCH v6 3/5] Make reset_devices available at early stage

2012-11-13 Thread Takao Indoh
Change reset_devices from __setup to early_param so this parameter is available at early stage. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- init/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index e33e09d..f2b24cb

[PATCH v6 4/5] x86, pci: Reset PCIe devices at boot time

2012-11-13 Thread Takao Indoh
devices by hot reset and its DMA is stopped when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 + arch/x86/kernel/setup.c |3 + arch/x86/pci/early.c | 228

[PATCH v6 5/5] x86, pci: Enable PCI INTx when MSI is disabled

2012-11-13 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/pci/common.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86

[PATCH v6 0/5] Reset PCIe devices to address DMA problem on kdump with iommu

2012-11-13 Thread Takao Indoh
before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Takao Indoh (4): PCI: Define the maximum number of PCI function Make reset_devices available at early stage x86, pci: Reset PCIe

Re: [PATCH v6 1/5] x86, pci: add dummy pci device for early stage

2012-11-13 Thread Takao Indoh
(2012/11/13 19:01), Andrew Murray wrote: Hello, Some comments inline... On 13 November 2012 09:07, Takao Indoh indou.ta...@jp.fujitsu.com wrote: From: Yinghai Lu ying...@kernel.org So we can pass pci_dev *dev to reuse some generic pci functions. Signed-off-by: Yinghai Lu ying...@kernel.org

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-11-06 Thread Takao Indoh
(2012/10/16 13:23), Takao Indoh wrote: (2012/10/16 3:36), Yinghai Lu wrote: On Mon, Oct 15, 2012 at 12:00 AM, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. how about pci devices that domain_nr is not zero ? This

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-11-06 Thread Takao Indoh
(2012/10/16 13:23), Takao Indoh wrote: (2012/10/16 3:36), Yinghai Lu wrote: On Mon, Oct 15, 2012 at 12:00 AM, Takao Indoh indou.ta...@jp.fujitsu.com wrote: This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. how about pci devices that domain_nr

Re: [PATCH v5 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-31 Thread Takao Indoh
(2012/10/17 15:23), Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When "reset_devices" is specified, a hot reset is triggered on each PCIe root port and downstream port to reset its downstream endpoint. Background: A kdu

Re: [PATCH v5 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-31 Thread Takao Indoh
(2012/10/17 15:23), Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When reset_devices is specified, a hot reset is triggered on each PCIe root port and downstream port to reset its downstream endpoint. Background: A kdump problem

Re: [PATCH v5 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-19 Thread Takao Indoh
(2012/10/19 0:32), Khalid Aziz wrote: > On Wed, 2012-10-17 at 15:23 +0900, Takao Indoh wrote: >> This patch resets PCIe devices at boot time by hot reset when >> "reset_devices" is specified. >> >> Signed-off-by: Takao Indoh >> --- >> arch/

Re: [PATCH v5 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-19 Thread Takao Indoh
(2012/10/19 0:32), Khalid Aziz wrote: On Wed, 2012-10-17 at 15:23 +0900, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 arch

[PATCH v5 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-17 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 353 inc

[PATCH v5 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-17 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -615,8

[PATCH v5 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-17 Thread Takao Indoh
4 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-i

[PATCH v5 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-17 Thread Takao Indoh
fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

[PATCH v5 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-17 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86

[PATCH v5 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-17 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 353

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-16 Thread Takao Indoh
(2012/10/16 2:17), Khalid Aziz wrote: > On Mon, 2012-10-15 at 16:00 +0900, Takao Indoh wrote: >> This patch resets PCIe devices at boot time by hot reset when >> "reset_devices" is specified. >> >> Signed-off-by: Takao Indoh >> --- >> arch/

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-16 Thread Takao Indoh
(2012/10/16 2:17), Khalid Aziz wrote: On Mon, 2012-10-15 at 16:00 +0900, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 arch

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-15 Thread Takao Indoh
(2012/10/16 3:36), Yinghai Lu wrote: On Mon, Oct 15, 2012 at 12:00 AM, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. how about pci devices that domain_nr is not zero ? This patch does not support multiple d

[PATCH v4 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-15 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -615,8

[PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-15 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 344 inc

[PATCH v4 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-15 Thread Takao Indoh
reset need to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

[PATCH v4 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-15 Thread Takao Indoh
to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

[PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-15 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 344

[PATCH v4 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-15 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-15 Thread Takao Indoh
(2012/10/16 3:36), Yinghai Lu wrote: On Mon, Oct 15, 2012 at 12:00 AM, Takao Indoh indou.ta...@jp.fujitsu.com wrote: This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. how about pci devices that domain_nr is not zero ? This patch does not support

Re: [PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-12 Thread Takao Indoh
(2012/10/12 2:28), Khalid Aziz wrote: On Thu, 2012-10-11 at 15:16 +0900, Takao Indoh wrote: (2012/10/11 5:08), Khalid Aziz wrote: . +static void __init do_reset(u8 bus, u8 slot, u8 func) +{ + u16 ctrl; + + printk(KERN_INFO "pci :%02x:%02x.%d reset\n", bus,

Re: [PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-12 Thread Takao Indoh
(2012/10/12 2:28), Khalid Aziz wrote: On Thu, 2012-10-11 at 15:16 +0900, Takao Indoh wrote: (2012/10/11 5:08), Khalid Aziz wrote: . +static void __init do_reset(u8 bus, u8 slot, u8 func) +{ + u16 ctrl; + + printk(KERN_INFO pci :%02x:%02x.%d reset\n, bus, slot, func

Re: [PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-11 Thread Takao Indoh
(2012/10/11 5:08), Khalid Aziz wrote: Please see comments inline: On Wed, 2012-10-10 at 16:51 +0900, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direc

Re: [PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-11 Thread Takao Indoh
(2012/10/11 5:08), Khalid Aziz wrote: Please see comments inline: On Wed, 2012-10-10 at 16:51 +0900, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm

[PATCH v3 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-10 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -615,8

[PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-10 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 299 d

[PATCH v3 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-10 Thread Takao Indoh
et devices in setup_arch() because reset need to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line "unsubscri

[PATCH v3 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-10 Thread Takao Indoh
in setup_arch() because reset need to be done before interrupt remapping is initialized. https://lkml.org/lkml/2012/10/2/54 v1: Add fixup_final quirk to reset PCIe devices https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line unsubscribe linux-kernel

[PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-10 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 299

[PATCH v3 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-10 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86

Re: [PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-09 Thread Takao Indoh
(2012/10/10 1:05), Don Dutile wrote: On 10/09/2012 05:03 AM, Takao Indoh wrote: (2012/10/03 22:23), Don Dutile wrote: On 10/02/2012 03:49 AM, Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When "reset_devices" is specif

Re: [PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-09 Thread Takao Indoh
(2012/10/03 22:23), Don Dutile wrote: On 10/02/2012 03:49 AM, Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When "reset_devices" is specified, a hot reset is triggered on each PCIe root port and downstream port to

Re: [PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-09 Thread Takao Indoh
(2012/10/03 22:23), Don Dutile wrote: On 10/02/2012 03:49 AM, Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When reset_devices is specified, a hot reset is triggered on each PCIe root port and downstream port to reset its downstream

Re: [PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-09 Thread Takao Indoh
(2012/10/10 1:05), Don Dutile wrote: On 10/09/2012 05:03 AM, Takao Indoh wrote: (2012/10/03 22:23), Don Dutile wrote: On 10/02/2012 03:49 AM, Takao Indoh wrote: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When reset_devices is specified, a hot

Re: [PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-02 Thread Takao Indoh
(2012/10/03 4:37), Andi Kleen wrote: Takao Indoh writes: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When "reset_devices" is specified, a hot reset is triggered on each PCIe root port and downstream port to reset its downstream endpoin

[PATCH v2 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-02 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -615,8

[PATCH v2 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-02 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when "reset_devices" is specified. Signed-off-by: Takao Indoh --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 302 d

[PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-02 Thread Takao Indoh
t the port whose child endpoint is VGA device. v2: Reset devices in setup_arch() because reset need to be done before interrupt remapping is initialized. v1: https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line "unsubscribe linux-kern

[PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-02 Thread Takao Indoh
whose child endpoint is VGA device. v2: Reset devices in setup_arch() because reset need to be done before interrupt remapping is initialized. v1: https://lkml.org/lkml/2012/8/3/160 Thanks, Takao Indoh -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH v2 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-02 Thread Takao Indoh
This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1 arch/x86/kernel/setup.c |3 arch/x86/pci/early.c | 302

[PATCH v2 2/2] x86, pci: Enable PCI INTx when MSI is disabled

2012-10-02 Thread Takao Indoh
. This patch fix this problem. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/pci/common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 720e973..2bb7ecc 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86

Re: [PATCH v2 0/2] Reset PCIe devices to address DMA problem on kdump with iommu

2012-10-02 Thread Takao Indoh
(2012/10/03 4:37), Andi Kleen wrote: Takao Indoh indou.ta...@jp.fujitsu.com writes: These patches reset PCIe devices at boot time to address DMA problem on kdump with iommu. When reset_devices is specified, a hot reset is triggered on each PCIe root port and downstream port to reset its

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-24 Thread Takao Indoh
(2012/09/15 0:48), Vivek Goyal wrote: > On Wed, Sep 12, 2012 at 06:00:55PM +0900, Takao Indoh wrote: >> (2012/09/11 23:43), Vivek Goyal wrote: >>> On Tue, Sep 11, 2012 at 07:32:35PM +0900, Takao Indoh wrote: >>> >>> [..] >>>> I'll post new patc

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-24 Thread Takao Indoh
to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html a DMI quirk for a PCIe switch? pci-quirk maybe? there is a hook in per-device pci reset code path, which could be setup for such a case. Yep, I think early-quirk is better. Thanks, T

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-24 Thread Takao Indoh
...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html a DMI quirk for a PCIe switch? pci-quirk maybe? there is a hook in per-device pci reset code path, which could be setup for such a case. Yep, I think early-quirk is better. Thanks, Takao Indoh -- To unsubscribe

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-24 Thread Takao Indoh
(2012/09/15 0:48), Vivek Goyal wrote: On Wed, Sep 12, 2012 at 06:00:55PM +0900, Takao Indoh wrote: (2012/09/11 23:43), Vivek Goyal wrote: On Tue, Sep 11, 2012 at 07:32:35PM +0900, Takao Indoh wrote: [..] I'll post new patch which clears bus master bit and resets devices in second kernel

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-18 Thread Takao Indoh
to disable this function on such a machine. Wouldn't a DMI quirk be better for this? That way the second kernel internally would know not to do this. That sounds good. I'll try it, thanks. Thanks, Takao Indoh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-18 Thread Takao Indoh
to disable this function on such a machine. Wouldn't a DMI quirk be better for this? That way the second kernel internally would know not to do this. That sounds good. I'll try it, thanks. Thanks, Takao Indoh -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-12 Thread Takao Indoh
(2012/09/11 23:43), Vivek Goyal wrote: On Tue, Sep 11, 2012 at 07:32:35PM +0900, Takao Indoh wrote: [..] I'll post new patch which clears bus master bit and resets devices in second kernel. As to the boot parameter to enable this function, you suggested using reset_devices. I found

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-12 Thread Takao Indoh
(2012/09/11 23:43), Vivek Goyal wrote: On Tue, Sep 11, 2012 at 07:32:35PM +0900, Takao Indoh wrote: [..] I'll post new patch which clears bus master bit and resets devices in second kernel. As to the boot parameter to enable this function, you suggested using reset_devices. I found

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-11 Thread Takao Indoh
(2012/09/10 23:36), Vivek Goyal wrote: On Wed, Sep 05, 2012 at 08:09:58PM +0900, Takao Indoh wrote: (2012/08/07 5:39), Vivek Goyal wrote: On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: Hi Vivek, (2012/08/03 20:46), Vivek Goyal wrote: On Fri, Aug 03, 2012 at 08:24:31PM +0900

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-11 Thread Takao Indoh
(2012/09/10 23:36), Vivek Goyal wrote: On Wed, Sep 05, 2012 at 08:09:58PM +0900, Takao Indoh wrote: (2012/08/07 5:39), Vivek Goyal wrote: On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: Hi Vivek, (2012/08/03 20:46), Vivek Goyal wrote: On Fri, Aug 03, 2012 at 08:24:31PM +0900

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-10 Thread Takao Indoh
(2012/09/10 11:34), Kaneshige, Kenji wrote: >> -Original Message- >> From: linux-pci-ow...@vger.kernel.org >> [mailto:linux-pci-ow...@vger.kernel.org] On Behalf Of Takao Indoh >> Sent: Wednesday, September 05, 2012 8:10 PM >> To: vgo...@redhat.com >>

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-10 Thread Takao Indoh
(2012/09/10 11:34), Kaneshige, Kenji wrote: -Original Message- From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci-ow...@vger.kernel.org] On Behalf Of Takao Indoh Sent: Wednesday, September 05, 2012 8:10 PM To: vgo...@redhat.com Cc: ke...@lists.infradead.org; linux-kernel

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-05 Thread Takao Indoh
(2012/08/07 5:39), Vivek Goyal wrote: On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: Hi Vivek, (2012/08/03 20:46), Vivek Goyal wrote: On Fri, Aug 03, 2012 at 08:24:31PM +0900, Takao Indoh wrote: Hi all, This patch adds kernel parameter "reset_pcie_devices" which r

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-09-05 Thread Takao Indoh
(2012/08/07 5:39), Vivek Goyal wrote: On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: Hi Vivek, (2012/08/03 20:46), Vivek Goyal wrote: On Fri, Aug 03, 2012 at 08:24:31PM +0900, Takao Indoh wrote: Hi all, This patch adds kernel parameter reset_pcie_devices which resets PCIe

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-08-07 Thread Takao Indoh
(2012/08/07 5:39), Vivek Goyal wrote: > On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: >> Hi Vivek, >> >> (2012/08/03 20:46), Vivek Goyal wrote: >>> On Fri, Aug 03, 2012 at 08:24:31PM +0900, Takao Indoh wrote: >>>> Hi all,

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-08-07 Thread Takao Indoh
(2012/08/07 5:39), Vivek Goyal wrote: On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: Hi Vivek, (2012/08/03 20:46), Vivek Goyal wrote: On Fri, Aug 03, 2012 at 08:24:31PM +0900, Takao Indoh wrote: Hi all, This patch adds kernel parameter reset_pcie_devices which resets PCIe

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-08-05 Thread Takao Indoh
Hi Don, (2012/08/06 13:09), Don Dutile wrote: > On 08/03/2012 07:24 AM, Takao Indoh wrote: >> Hi all, >> >> This patch adds kernel parameter "reset_pcie_devices" which resets PCIe >> devices at boot time to address DMA problem on kdump with iommu. When >&g

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-08-05 Thread Takao Indoh
Hi Vivek, (2012/08/03 20:46), Vivek Goyal wrote: > On Fri, Aug 03, 2012 at 08:24:31PM +0900, Takao Indoh wrote: >> Hi all, >> >> This patch adds kernel parameter "reset_pcie_devices" which resets PCIe >> devices at boot time to address DMA problem on kdu

<    1   2   3   4   >