Hi,
I can access BAR if I disable Gen2. I need to do more debugging to give proper fix for the issue. I am working on multiple issues, so it will 2-3 days to get back on this issue. Meanwhile, try with below patch which disables Gen2.
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index 7b6fbd5d90a8..7d2eb40740c6 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -2708,6 +2708,7 @@ static int tegra_pcie_scale_voltage(struct tegra_pcie *pcie)
return err;
}
+#if 0
static void tegra_pcie_change_link_speed(struct tegra_pcie *pcie,
struct pci_dev *pdev, bool isGen2)
{
@@ -2814,16 +2815,21 @@ static void tegra_pcie_change_link_speed(struct tegra_pcie *pcie,
skip:
return;
}
+#endif
static void tegra_pcie_link_speed(struct tegra_pcie *pcie, bool isGen2)
{
+#if 0
struct pci_dev *pdev = NULL;
+#endif
PR_FUNC_LINE;
/* Voltage scaling should happen before any device transition */
/* to Gen2 or after all devices has transitioned to Gen1 */
+#if 0
for_each_pci_dev(pdev)
tegra_pcie_change_link_speed(pcie, pdev, isGen2);
+#endif
tegra_pcie_scale_voltage(pcie);
-Manikanta