Skip to contentSkip to conversation

PCI: imx6: Keep Root Port MSI capability also for i.MX6Q

PATCH Superseded Soeren Moch 6 participants 12 messages Apr 27 – Sep 29

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

Fixes 3a4e8302e72f ("PCI: imx6: Keep Root Port MSI capability with iMSI-RX to work around hardware bug")
Cc <[email protected]> # 7.0.x

---
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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
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 to

work around hardware bug")

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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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

#2 lore raw
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 to

work around hardware bug")

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 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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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

maintainer
#3 lore raw
Quoted 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.MX6Q

Quoted 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 with

iMSI-RX to work around hardware bug")

Quoted 6 lines
Quoted 1 line

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,
Soeren

Quoted 39 lines

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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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

maintainer Reviewed-by on v1 1/1
#4 lore raw
In reply to Soeren Moch
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.x
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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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

maintainer Reviewed-by on v1 1/1
#5 lore raw
In reply to Soeren Moch
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

@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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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
மணிவண்ணன் சதாசிவம்
#6 lore raw
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

@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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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
#7 lore raw
Quoted 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

@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
மணிவண்ணன் சதாசிவம்
#8 lore raw
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
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

@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

#9 lore raw
In reply to Soeren Moch

[+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.x

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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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
#10 lore raw
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.x

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 to f5cd8a929c825?

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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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
#11 lore raw
In reply to Bjorn Helgaas
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.x
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 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
index 6d6a1688e7eb..3d461bdef967 100644
@@ -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