Skip to content

Commit 9d52691

Browse files
Mani-Sadhasivamkwilczynski
authored andcommitted
PCI: qcom-ep: Mark BAR0/BAR2 as 64bit BARs and BAR1/BAR3 as RESERVED
On all Qcom endpoint SoCs, BAR0/BAR2 are 64bit BARs by default and software cannot change the type. So, mark the those BARs as 64bit BARs and also mark the successive BAR1/BAR3 as RESERVED BARs so that the EPF drivers cannot use them. Cc: [email protected] # depends on patch introducing only_64bit flag Fixes: f55fee5 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent 2014c95 commit 9d52691

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/pci/controller/dwc/pcie-qcom-ep.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,10 @@ static const struct pci_epc_features qcom_pcie_epc_features = {
825825
.msi_capable = true,
826826
.msix_capable = false,
827827
.align = SZ_4K,
828+
.bar[BAR_0] = { .only_64bit = true, },
829+
.bar[BAR_1] = { .type = BAR_RESERVED, },
830+
.bar[BAR_2] = { .only_64bit = true, },
831+
.bar[BAR_3] = { .type = BAR_RESERVED, },
828832
};
829833

830834
static const struct pci_epc_features *

0 commit comments

Comments
 (0)