PCI: imx6: Keep Root Port MSI capability also for i.MX6Q
Subsystems (5)
PATCH 1/1 PCI: imx6: Keep Root Port MSI capability also for i.MX6Q
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Tested on a tbs2910 board [1]
[1] arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts
--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pci/controller/dwc/pci-imx6.c +2 -1
@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12,
Signature · 1 line
2.43.0
Quoted 23 lines
-----Original Message-----
From: Soeren Moch <[email protected]>
Sent: Monday, April 27, 2026 7:58 PM
To: Hongxing Zhu <[email protected]>
Cc: Soeren Moch <[email protected]>; [email protected]; Manivannan Sadhasivam <[email protected]>; Lucas Stach <[email protected]>; Bjorn Helgaas <[email protected]>; Frank Li <[email protected]>; Fabio Estevam <[email protected]>; [email protected]; linux-arm- [email protected]; [email protected]; [email protected]
Subject: [PATCH] PCI: imx6: Keep Root Port MSI capability also for i.MX6Q[You don't often get email from [email protected]. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 8 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX towork around hardware bug")
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
Best Regards
Richard Zhu
Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-2@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12, --2.43.0
Quoted 27 lines · Hongxing Zhu
Quoted 27 lines
-----Original Message-----
From: Soeren Moch <[email protected]>
Sent: Monday, April 27, 2026 7:58 PM
To: Hongxing Zhu <[email protected]>
Cc: Soeren Moch <[email protected]>; [email protected]; Manivannan Sadhasivam <[email protected]>; Lucas Stach <[email protected]>; Bjorn Helgaas <[email protected]>; Frank Li <[email protected]>; Fabio Estevam <[email protected]>; [email protected]; linux-arm- [email protected]; [email protected]; [email protected]
Subject: [PATCH] PCI: imx6: Keep Root Port MSI capability also for i.MX6Q[You don't often get email from [email protected]. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Quoted 5 lines
Quoted 4 lines
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX towork around hardware bug")
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>Acked-by Richard Zhu <[email protected]>
This patch is a regression fix for linux-7.0.
It is still not part of linux-7.2-rc1 .
Can I do something to get this merged, is something still missing from my side?
Thanks,
Soeren
Quoted 39 lines
Best Regards
Richard ZhuQuoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-2@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12, --2.43.0
Hongxing Zhu
maintainerQuoted 50 lines
-----Original Message-----
From: Soeren Moch <[email protected]>
Sent: Sunday, July 5, 2026 5:11 PM
To: Hongxing Zhu <[email protected]>
Cc: [email protected]; Manivannan Sadhasivam <[email protected]>; Lucas Stach <[email protected]>; Bjorn Helgaas <[email protected]>; Frank Li <[email protected]>; Fabio Estevam <[email protected]>; linux- [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] PCI: imx6: Keep Root Port MSI capability also for i.MX6Q[You don't often get email from [email protected]. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]Quoted 13 lines · Hongxing Zhu
Quoted 13 lines
-----Original Message-----
From: Soeren Moch <[email protected]>
Sent: Monday, April 27, 2026 7:58 PM
To: Hongxing Zhu <[email protected]>
Cc: Soeren Moch <[email protected]>; [email protected]; Manivannan Sadhasivam <[email protected]>; Lucas Stach <[email protected]>; Bjorn Helgaas <[email protected]>; Frank Li <[email protected]>; Fabio Estevam <[email protected]>; [email protected]; linux-arm- [email protected]; [email protected]; [email protected]
Subject: [PATCH] PCI: imx6: Keep Root Port MSI capability also for i.MX6QQuoted 5 lines
Quoted 5 lines
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is
disabled.
Quoted 4 lines
Quoted 4 lines
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI
capability is disabled.
Quoted 11 lines
Quoted 11 lines
Hence, always keep the Root Port MSI capability for this chipset.
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability withiMSI-RX to work around hardware bug")
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
Quoted 6 lines
Quoted 1 line
Acked-by Richard Zhu <[email protected]>This patch is a regression fix for linux-7.0.
It is still not part of linux-7.2-rc1 .Can I do something to get this merged, is something still missing from my side?
Maybe Mani missed this fix in previous merge window. Hi Mani:
Can you help to take look at this minor fix patch?
Best Regards
Richard Zhu
Quoted 43 lines
Thanks,
SoerenQuoted 39 lines
Best Regards
Richard ZhuQuoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-2@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12, --2.43.0
Quoted 10 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 7 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-2@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12, --2.43.0
Quoted 8 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Quoted 7 lines
Hence, always keep the Root Port MSI capability for this chipset.
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")
This is not the correct fixes tag. Correct one is:f5cd8a929c825 ("PCI: dwc: Remove MSI/MSIX capability for Root Port if iMSI-RX is used as MSI controller")
Quoted 2 lines
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
@Bjorn: Can you merge this patch for 7.2-rcS with correct fixes tag?
- Mani
Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-1@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12,Signature · 1 line
2.43.0
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 11 lines · Manivannan Sadhasivam
Quoted 10 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 7 lines
Quoted 5 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")This is not the correct fixes tag. Correct one is:
f5cd8a929c825("PCI: dwc: Remove MSI/MSIX capability for Root Port if iMSI-RX is used as MSI controller")
Thanks for the fix of the fixes tag!
Quoted 5 lines
Quoted 2 lines
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>Reviewed-by Manivannan Sadhasivam <[email protected]>@Bjorn: Can you merge this patch for 7.2-rcS with correct fixes tag?
I can send a v2 of the patch if you prefer.
Thanks,
Soeren
Quoted 38 lines
- Mani
Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-1@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12,Signature · 1 line
2.43.0
Manivannan Sadhasivam
maintainerQuoted 19 lines · Soeren Moch
Quoted 11 lines · Manivannan Sadhasivam
Quoted 10 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 7 lines
Quoted 5 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")This is not the correct fixes tag. Correct one is:
f5cd8a929c825("PCI: dwc: Remove MSI/MSIX capability for Root Port if iMSI-RX is used as MSI controller")
Quoted 8 lines
Thanks for the fix of the fixes tag!
Quoted 5 lines
Quoted 2 lines
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>Reviewed-by Manivannan Sadhasivam <[email protected]>@Bjorn: Can you merge this patch for 7.2-rcS with correct fixes tag?
I can send a v2 of the patch if you prefer.
That'll help.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 23 lines · Manivannan Sadhasivam
Quoted 22 lines · Soeren Moch
Quoted 11 lines · Manivannan Sadhasivam
Quoted 10 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 7 lines
Quoted 5 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")This is not the correct fixes tag. Correct one is:
f5cd8a929c825("PCI: dwc: Remove MSI/MSIX capability for Root Port if iMSI-RX is used as MSI controller")Thanks for the fix of the fixes tag!
Quoted 2 lines
Quoted 2 lines
Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Reviewed-by Manivannan Sadhasivam <[email protected]>@Bjorn: Can you merge this patch for 7.2-rcS with correct fixes tag?
I can send a v2 of the patch if you prefer.
That'll help.
- Mani
OK, I sent a v2:
https://lkml.org/lkml/2026/7/16/2092
Thanks,
Soeren
[+cc Thorsten, possible regzbot confusion?]
Quoted 10 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 7 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
This thread is still listed as a regression:
https://linux-regtracking.leemhuis.info/regzbot/regression/lore/[email protected]/
But I *think* it's been resolved by:
b4bee12ebecc ("PCI: imx6: Keep i.MX6 Root Port MSI/MSI-X Capabilities with iMSI-RX to work around hardware bug")
Can you confirm?
Maybe regzbot is confused by the fact that the regression was first attributed to 3a4e8302e72f, and then later attributed to f5cd8a929c825?
Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-1@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12,Signature · 1 line
2.43.0
Quoted 17 lines · Bjorn Helgaas
[+cc Thorsten, possible regzbot confusion?]
Quoted 14 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Quoted 6 lines
Quoted 3 lines
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>This thread is still listed as a regression:
https://linux-regtracking.leemhuis.info/regzbot/regression/lore/[email protected]/
My fault, afaics; sorry.
Quoted 8 lines
But I *think* it's been resolved by:
b4bee12ebecc("PCI: imx6: Keep i.MX6 Root Port MSI/MSI-X Capabilities with iMSI-RX to work around hardware bug")>
Can you confirm?Maybe regzbot is confused by the fact that the regression was first attributed to
3a4e8302e72f, and then later attributed tof5cd8a929c825?
The main problem is something different: Sometimes one commit causes multiple issues that in rare cases might even be reported by the same person -- and regzbot needs to keep them and fixes for them apart. Which is why it is cautions and will only auto-close a tracked regressions when a Link:/Closes: tags points to what regzbot considers the report, as Linus demands those anyway. And b4bee12ebeccfc didn't to that. No problem, happens all the time, normally I notice these things and tell regzbot manually. And I kinda did when I noticed that a fix was in the works, but then the subject of the fix changed later -- and I missed that.
These things happen and in a ideal world regzbot should be little more gentle and likely auto-close tracked regressions when a Fixes: tag combined with a Reported-by: or Tested-by: matches. That is kinda on the todo list, but not near the top (wait for by LPC talk). Anyway, thx for mentioning it and let me update regzbot:
#regzbot fix: b4bee12ebecc
Ciao, Thorsten
Quoted 35 lines
Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-1@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12,Signature · 1 line
2.43.0
Quoted 20 lines · Bjorn Helgaas
[+cc Thorsten, possible regzbot confusion?]
Quoted 10 lines · Soeren Moch
Also on the NXP i.MX6Q chipset MSIs from the endpoints won't be received by the iMSI-RX MSI controller if the Root Port MSI capability is disabled.
Even though the Root Port MSIs won't be received by the iMSI-RX controller due to design, this chipset has some weird hardware bug that prevents the endpoint MSIs from reaching when the Root Port MSI capability is disabled.
Hence, always keep the Root Port MSI capability for this chipset.
Quoted 7 lines
Note that by keeping Root Port MSI capability, Root Port MSIs such as AER, PME and others won't be received by default. So users need to use workarounds such as passing 'pcie_pme=nomsi' cmdline param.
Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")Cc <[email protected]> # 7.0.xSigned-off-by Soeren Moch <[email protected]>
Quoted 8 lines
This thread is still listed as a regression:
https://linux-regtracking.leemhuis.info/regzbot/regression/lore/[email protected]/But I *think* it's been resolved by:
b4bee12ebecc("PCI: imx6: Keep i.MX6 Root Port MSI/MSI-X Capabilities with iMSI-RX to work around hardware bug")Can you confirm?
It was fixed for 7.2.0, in 7.2.5 I saw a similar (?) problem again, in 7.2.8 this is (finally?) fixed. I did not test the stable versions in between.
So I can confirm this is fixed, yes.
Thanks,
Soeren
Quoted 40 lines
Maybe regzbot is confused by the fact that the regression was first attributed to
3a4e8302e72f, and then later attributed tof5cd8a929c825?Quoted 35 lines
---
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]Tested on a tbs2910 board [1]
[1]arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts--- drivers/pci/controller/dwc/pci-imx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/pci/controller/dwc/pci-imx6.c +2
-1@@ -1865,7 +1865,8 @@ static const struct imx_pcie_drvdata drvdata[] = { .flags = IMX_PCIE_FLAG_IMX_PHY |IMX_PCIE_FLAG_SPEED_CHANGE_WORKAROUND |IMX_PCIE_FLAG_BROKEN_SUSPEND | - IMX_PCIE_FLAG_SUPPORTS_SUSPEND, +IMX_PCIE_FLAG_SUPPORTS_SUSPEND | + IMX_PCIE_FLAG_KEEP_MSI_CAP, .dbi_length = 0x200, .gpr = "fsl,imx6q-iomuxc-gpr", .ltssm_off = IOMUXC_GPR12,Signature · 1 line
2.43.0