The patch "319ad28_ok.diff" for the PCIe compliance test cannot be applied

Hello. I have a question about setting up the PCIe Compliance Test environment.

The attached file “319ad28_ok.diff” in DA-11267-001 v1.0 cannot be applied to the Jetson Linux 36.2 kernel. It seems like this patch may be intended for Jetson Linux 35.x. Could you please provide the patch for Jetson Linux 36.x?

If “0001-disabling-the-spread-Spectrum.patch” is also required separately for version 36.x, please provide that as well.

Hi,

Thanks for reporting this. We will do further check.

please apply this instead.

diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c
index a44b477cee27..937d7019fbb1 100644
--- a/drivers/pci/controller/dwc/pcie-tegra194.c
+++ b/drivers/pci/controller/dwc/pcie-tegra194.c
@@ -2193,10 +2193,12 @@ static int tegra_pcie_config_rp(struct tegra_pcie_dw *pcie)

        pcie->link_state = tegra_pcie_dw_link_up(&pcie->pci);
        if (!pcie->link_state) {
-               ret = -ENOMEDIUM;
-               goto fail_host_init;
+               dev_err(dev, "Disabling PCIe power down\n");
+               ret = 0;
        }
 
+       pcie->link_state = true;
+
        name = devm_kasprintf(dev, GFP_KERNEL, "%pOFP", dev->of_node);
        if (!name) {
                ret = -ENOMEM;

Hello WayneWWW,

Thank you for creating the patch. I’ll give it a try for verification.

By the way, is it safe to use “0001-disabling-the-spread-Spectrum.patch” as it is?

Thank you.

I think that patch shall be still fine.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.