From 6b19d22b6d1e8e9b373f3e8fdd27e0aab872a84e Mon Sep 17 00:00:00 2001 From: Jyothi Kumar Seerapu Date: Wed, 28 Sep 2022 09:24:44 +0530 Subject: [PATCH] ARM: dts: qcom: Set PCIe Wr halt window size to 1GB for sdxlemur This will set the PCIe Wr halt window size to 1GB and disables BDF halt for sdxlemur for PINE attach. In sdxlemur for PINE attaches observed throughput degradation because of PCIe latencies, this is due to PCIe write halt window of 1MB and BDF halt feature enable. So, disabled BDF halt feature and increased PCIe Wr halt window size to 1GB for sdxlemur. Change-Id: I604fcc646a64cddb9502f31c7c357ddc476f741f --- bindings/pci/pci-msm.txt | 6 ++++++ qcom/sdxlemur-mtp-cpe-pine1x.dtsi | 2 ++ qcom/sdxlemur-mtp-cpe-pine2x.dtsi | 3 +++ qcom/sdxlemur-pcie.dtsi | 1 - 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bindings/pci/pci-msm.txt b/bindings/pci/pci-msm.txt index 30addf402558..09fdfa102583 100644 --- a/bindings/pci/pci-msm.txt +++ b/bindings/pci/pci-msm.txt @@ -419,6 +419,12 @@ interconnects: Value type : Definition: Disable PCIe Write and Read halt feature +- qcom, qcom,bdf-halt-dis: + Usage: optional + Value type : + Definition: Disables the BDF halt feature which halt inbound + write transactions when BDF change is detected. + ============== Root port node ============== diff --git a/qcom/sdxlemur-mtp-cpe-pine1x.dtsi b/qcom/sdxlemur-mtp-cpe-pine1x.dtsi index 38eee1a933e8..baff76c38128 100644 --- a/qcom/sdxlemur-mtp-cpe-pine1x.dtsi +++ b/qcom/sdxlemur-mtp-cpe-pine1x.dtsi @@ -22,6 +22,8 @@ qcom,no-l1-supported; qcom,no-l1ss-supported; qcom,no-aux-clk-sync; + qcom,bdf-halt-dis; + qcom,wr-halt-size = <0x1e>; }; &pcie0_bus2_dev1_fn0 { diff --git a/qcom/sdxlemur-mtp-cpe-pine2x.dtsi b/qcom/sdxlemur-mtp-cpe-pine2x.dtsi index ac102dfe643b..54fe439cabf0 100644 --- a/qcom/sdxlemur-mtp-cpe-pine2x.dtsi +++ b/qcom/sdxlemur-mtp-cpe-pine2x.dtsi @@ -38,6 +38,9 @@ qcom,no-l1-supported; qcom,no-l1ss-supported; qcom,no-aux-clk-sync; + qcom,bdf-halt-dis; + qcom,wr-halt-size = <0x1e>; + }; &pcie0_bus2_dev1_fn0 { diff --git a/qcom/sdxlemur-pcie.dtsi b/qcom/sdxlemur-pcie.dtsi index 437bac326385..05b1db8be5e1 100644 --- a/qcom/sdxlemur-pcie.dtsi +++ b/qcom/sdxlemur-pcie.dtsi @@ -115,7 +115,6 @@ qcom,slv-addr-space-size = <0x40000000>; qcom,ep-latency = <10>; qcom,num-parf-testbus-sel = <0xb9>; - qcom,pcie-halt-feature-dis; qcom,pcie-phy-ver = <1108>; qcom,phy-status-offset = <0x1214>;