linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD
@ 2017-04-20 10:27 Jisheng Zhang
  2017-04-20 15:07 ` Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jisheng Zhang @ 2017-04-20 10:27 UTC (permalink / raw)
  To: bhelgaas, jingoohan1, Joao.Pinto, svarbanov, keith.busch
  Cc: linux-pci, linux-kernel, linux-arm-msm, Jisheng Zhang

Similar as commit 8ff0ef996ca0 ("PCI: host: Mark PCIe/PCI (MSI) IRQ
cascade handlers as IRQF_NO_THREAD"), we should mark PCIe/PCI (MSI)
IRQ cascade handlers IRQF_NO_THREAD explicitly. I just found this
issue in pcie-designware-plat driver, then searched the code, I think
we should fix pcie-qcom and vmd as well.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
 drivers/pci/dwc/pcie-designware-plat.c | 3 ++-
 drivers/pci/dwc/pcie-qcom.c            | 3 ++-
 drivers/pci/host/vmd.c                 | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/dwc/pcie-designware-plat.c b/drivers/pci/dwc/pcie-designware-plat.c
index f20d494922ab..0db1dafc82bb 100644
--- a/drivers/pci/dwc/pcie-designware-plat.c
+++ b/drivers/pci/dwc/pcie-designware-plat.c
@@ -67,7 +67,8 @@ static int dw_plat_add_pcie_port(struct pcie_port *pp,
 
 		ret = devm_request_irq(dev, pp->msi_irq,
 					dw_plat_pcie_msi_irq_handler,
-					IRQF_SHARED, "dw-plat-pcie-msi", pp);
+					IRQF_SHARED | IRQF_NO_THREAD,
+					"dw-plat-pcie-msi", pp);
 		if (ret) {
 			dev_err(dev, "failed to request MSI IRQ\n");
 			return ret;
diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c
index 67eb7f5926dd..a5570c58081e 100644
--- a/drivers/pci/dwc/pcie-qcom.c
+++ b/drivers/pci/dwc/pcie-qcom.c
@@ -727,7 +727,8 @@ static int qcom_pcie_probe(struct platform_device *pdev)
 
 		ret = devm_request_irq(dev, pp->msi_irq,
 				       qcom_pcie_msi_irq_handler,
-				       IRQF_SHARED, "qcom-pcie-msi", pp);
+				       IRQF_SHARED | IRQF_NO_THREAD,
+				       "qcom-pcie-msi", pp);
 		if (ret) {
 			dev_err(dev, "cannot request msi irq\n");
 			return ret;
diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c
index e27ad2a3bd33..784f63beb487 100644
--- a/drivers/pci/host/vmd.c
+++ b/drivers/pci/host/vmd.c
@@ -704,7 +704,8 @@ static int vmd_probe(struct pci_dev *dev, const struct pci_device_id *id)
 
 		INIT_LIST_HEAD(&vmd->irqs[i].irq_list);
 		err = devm_request_irq(&dev->dev, pci_irq_vector(dev, i),
-				       vmd_irq, 0, "vmd", &vmd->irqs[i]);
+				       vmd_irq, IRQF_NO_THREAD,
+				       "vmd", &vmd->irqs[i]);
 		if (err)
 			return err;
 	}
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD
  2017-04-20 10:27 [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD Jisheng Zhang
@ 2017-04-20 15:07 ` Jingoo Han
  2017-04-20 15:20 ` Keith Busch
  2017-05-23 18:57 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Jingoo Han @ 2017-04-20 15:07 UTC (permalink / raw)
  To: 'Jisheng Zhang', bhelgaas
  Cc: Joao.Pinto, svarbanov, keith.busch, linux-pci, linux-kernel,
	linux-arm-msm

On Thursday, April 20, 2017 6:27 AM, Jisheng Zhang wrote:
> 
> Similar as commit 8ff0ef996ca0 ("PCI: host: Mark PCIe/PCI (MSI) IRQ
> cascade handlers as IRQF_NO_THREAD"), we should mark PCIe/PCI (MSI)
> IRQ cascade handlers IRQF_NO_THREAD explicitly. I just found this
> issue in pcie-designware-plat driver, then searched the code, I think
> we should fix pcie-qcom and vmd as well.
> 
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>

For pcie-designware-plat.c,

Acked-by: Jingoo Han <jingoohan1@gmail.com>
Thank you.

Best regards,
Jingoo Han

> ---
>  drivers/pci/dwc/pcie-designware-plat.c | 3 ++-
>  drivers/pci/dwc/pcie-qcom.c            | 3 ++-
>  drivers/pci/host/vmd.c                 | 3 ++-
>  3 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/pci/dwc/pcie-designware-plat.c
> b/drivers/pci/dwc/pcie-designware-plat.c
> index f20d494922ab..0db1dafc82bb 100644
> --- a/drivers/pci/dwc/pcie-designware-plat.c
> +++ b/drivers/pci/dwc/pcie-designware-plat.c
> @@ -67,7 +67,8 @@ static int dw_plat_add_pcie_port(struct pcie_port *pp,
> 
>  		ret = devm_request_irq(dev, pp->msi_irq,
>  					dw_plat_pcie_msi_irq_handler,
> -					IRQF_SHARED, "dw-plat-pcie-msi",
pp);
> +					IRQF_SHARED | IRQF_NO_THREAD,
> +					"dw-plat-pcie-msi", pp);
>  		if (ret) {
>  			dev_err(dev, "failed to request MSI IRQ\n");
>  			return ret;
> diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c
> index 67eb7f5926dd..a5570c58081e 100644
> --- a/drivers/pci/dwc/pcie-qcom.c
> +++ b/drivers/pci/dwc/pcie-qcom.c
> @@ -727,7 +727,8 @@ static int qcom_pcie_probe(struct platform_device
> *pdev)
> 
>  		ret = devm_request_irq(dev, pp->msi_irq,
>  				       qcom_pcie_msi_irq_handler,
> -				       IRQF_SHARED, "qcom-pcie-msi", pp);
> +				       IRQF_SHARED | IRQF_NO_THREAD,
> +				       "qcom-pcie-msi", pp);
>  		if (ret) {
>  			dev_err(dev, "cannot request msi irq\n");
>  			return ret;
> diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c
> index e27ad2a3bd33..784f63beb487 100644
> --- a/drivers/pci/host/vmd.c
> +++ b/drivers/pci/host/vmd.c
> @@ -704,7 +704,8 @@ static int vmd_probe(struct pci_dev *dev, const struct
> pci_device_id *id)
> 
>  		INIT_LIST_HEAD(&vmd->irqs[i].irq_list);
>  		err = devm_request_irq(&dev->dev, pci_irq_vector(dev, i),
> -				       vmd_irq, 0, "vmd", &vmd->irqs[i]);
> +				       vmd_irq, IRQF_NO_THREAD,
> +				       "vmd", &vmd->irqs[i]);
>  		if (err)
>  			return err;
>  	}
> --
> 2.11.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD
  2017-04-20 10:27 [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD Jisheng Zhang
  2017-04-20 15:07 ` Jingoo Han
@ 2017-04-20 15:20 ` Keith Busch
  2017-05-23 18:57 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Keith Busch @ 2017-04-20 15:20 UTC (permalink / raw)
  To: Jisheng Zhang
  Cc: bhelgaas, jingoohan1, Joao.Pinto, svarbanov, linux-pci,
	linux-kernel, linux-arm-msm

On Thu, Apr 20, 2017 at 06:27:18PM +0800, Jisheng Zhang wrote:
> Similar as commit 8ff0ef996ca0 ("PCI: host: Mark PCIe/PCI (MSI) IRQ
> cascade handlers as IRQF_NO_THREAD"), we should mark PCIe/PCI (MSI)
> IRQ cascade handlers IRQF_NO_THREAD explicitly. I just found this
> issue in pcie-designware-plat driver, then searched the code, I think
> we should fix pcie-qcom and vmd as well.
> 
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> ---
>  drivers/pci/dwc/pcie-designware-plat.c | 3 ++-
>  drivers/pci/dwc/pcie-qcom.c            | 3 ++-
>  drivers/pci/host/vmd.c                 | 3 ++-
>  3 files changed, 6 insertions(+), 3 deletions(-)

Okay for vmd driver.

Reviewed-by: Keith Busch <keith.busch@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD
  2017-04-20 10:27 [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD Jisheng Zhang
  2017-04-20 15:07 ` Jingoo Han
  2017-04-20 15:20 ` Keith Busch
@ 2017-05-23 18:57 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2017-05-23 18:57 UTC (permalink / raw)
  To: Jisheng Zhang
  Cc: bhelgaas, jingoohan1, Joao.Pinto, svarbanov, keith.busch,
	linux-pci, linux-kernel, linux-arm-msm

On Thu, Apr 20, 2017 at 06:27:18PM +0800, Jisheng Zhang wrote:
> Similar as commit 8ff0ef996ca0 ("PCI: host: Mark PCIe/PCI (MSI) IRQ
> cascade handlers as IRQF_NO_THREAD"), we should mark PCIe/PCI (MSI)
> IRQ cascade handlers IRQF_NO_THREAD explicitly. I just found this
> issue in pcie-designware-plat driver, then searched the code, I think
> we should fix pcie-qcom and vmd as well.
> 
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>

Applied with ack/reviewed-by from Jingoo and Keith to pci/host-designware
for v4.13, thanks!

> ---
>  drivers/pci/dwc/pcie-designware-plat.c | 3 ++-
>  drivers/pci/dwc/pcie-qcom.c            | 3 ++-
>  drivers/pci/host/vmd.c                 | 3 ++-
>  3 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/pci/dwc/pcie-designware-plat.c b/drivers/pci/dwc/pcie-designware-plat.c
> index f20d494922ab..0db1dafc82bb 100644
> --- a/drivers/pci/dwc/pcie-designware-plat.c
> +++ b/drivers/pci/dwc/pcie-designware-plat.c
> @@ -67,7 +67,8 @@ static int dw_plat_add_pcie_port(struct pcie_port *pp,
>  
>  		ret = devm_request_irq(dev, pp->msi_irq,
>  					dw_plat_pcie_msi_irq_handler,
> -					IRQF_SHARED, "dw-plat-pcie-msi", pp);
> +					IRQF_SHARED | IRQF_NO_THREAD,
> +					"dw-plat-pcie-msi", pp);
>  		if (ret) {
>  			dev_err(dev, "failed to request MSI IRQ\n");
>  			return ret;
> diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c
> index 67eb7f5926dd..a5570c58081e 100644
> --- a/drivers/pci/dwc/pcie-qcom.c
> +++ b/drivers/pci/dwc/pcie-qcom.c
> @@ -727,7 +727,8 @@ static int qcom_pcie_probe(struct platform_device *pdev)
>  
>  		ret = devm_request_irq(dev, pp->msi_irq,
>  				       qcom_pcie_msi_irq_handler,
> -				       IRQF_SHARED, "qcom-pcie-msi", pp);
> +				       IRQF_SHARED | IRQF_NO_THREAD,
> +				       "qcom-pcie-msi", pp);
>  		if (ret) {
>  			dev_err(dev, "cannot request msi irq\n");
>  			return ret;
> diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c
> index e27ad2a3bd33..784f63beb487 100644
> --- a/drivers/pci/host/vmd.c
> +++ b/drivers/pci/host/vmd.c
> @@ -704,7 +704,8 @@ static int vmd_probe(struct pci_dev *dev, const struct pci_device_id *id)
>  
>  		INIT_LIST_HEAD(&vmd->irqs[i].irq_list);
>  		err = devm_request_irq(&dev->dev, pci_irq_vector(dev, i),
> -				       vmd_irq, 0, "vmd", &vmd->irqs[i]);
> +				       vmd_irq, IRQF_NO_THREAD,
> +				       "vmd", &vmd->irqs[i]);
>  		if (err)
>  			return err;
>  	}
> -- 
> 2.11.0
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-23 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20 10:27 [PATCH] PCI: dwc/host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD Jisheng Zhang
2017-04-20 15:07 ` Jingoo Han
2017-04-20 15:20 ` Keith Busch
2017-05-23 18:57 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).