PCI: layerscape: Add the bar_fixed_64bit property in EP driver.
PATCH v5 1/2 PCI: layerscape: Add the bar_fixed_64bit property in EP driver.
The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the bar_fixed_64bit with 0x14.
---
v2:
- Replace value 0x14 with a macro.
v3:
- No change.
v4:
- send the patch again with '--to'.
v5:
- fix the commit message.
drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/pci-layerscape-ep.c +1 -0
@@ -44,6 +44,7 @@ static const struct pci_epc_features ls_pcie_epc_features = { .linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features*
Signature · 1 line
2.9.5
PATCH v5 2/2 PCI: layerscape: Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately
Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately.
---
v2:
- No change.
v3:
- modify the commit message.
v4:
- send the patch again with '--to'.
v5:
- No change.
drivers/pci/controller/dwc/Kconfig | 20 ++++++++++++++++++-- drivers/pci/controller/dwc/Makefile | 3 ++- 2 files changed, 20 insertions(+), 3 deletions(-)
drivers/pci/controller/dwc/Kconfig +18 -2
@@ -131,13 +131,29 @@ config PCI_KEYSTONE_EP DesignWare core functions to implement the driver. config PCI_LAYERSCAPE - bool "Freescale Layerscape PCIe controller" + bool "Freescale Layerscape PCIe controller - Host mode" depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) depends on PCI_MSI_IRQ_DOMAIN select MFD_SYSCON select PCIE_DW_HOST help - Say Y here if you want PCIe controller support on Layerscape SoCs. + Say Y here if you want to enable PCIe controller support on Layerscape + SoCs to work in Host mode. + This controller can work either as EP or RC. The RCW[HOST_AGT_PEX] + determines which PCIe controller works in EP mode and which PCIe + controller works in RC mode. + +config PCI_LAYERSCAPE_EP + bool "Freescale Layerscape PCIe controller - Endpoint mode" + depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) + depends on PCI_ENDPOINT + select PCIE_DW_EP + help + Say Y here if you want to enable PCIe controller support on Layerscape + SoCs to work in Endpoint mode. + This controller can work either as EP or RC. The RCW[HOST_AGT_PEX] + determines which PCIe controller works in EP mode and which PCIe + controller works in RC mode. config PCI_HISI depends on OF && (ARM64 || COMPILE_TEST)
drivers/pci/controller/dwc/Makefile +2 -1
@@ -8,7 +8,8 @@ obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o obj-$(CONFIG_PCI_IMX6) += pci-imx6.o obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o obj-$(CONFIG_PCI_KEYSTONE) += pci-keystone.o -obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o pci-layerscape-ep.o +obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o +obj-$(CONFIG_PCI_LAYERSCAPE_EP) += pci-layerscape-ep.o obj-$(CONFIG_PCIE_QCOM) += pcie-qcom.o obj-$(CONFIG_PCIE_ARMADA_8K) += pcie-armada8k.o obj-$(CONFIG_PCIE_ARTPEC6) += pcie-artpec6.o
Signature · 1 line
2.9.5
Quoted 5 lines · Xiaowei Bao
The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the
bar_fixed_64bitwith0x14.Signed-off-by Xiaowei Bao <[email protected]>
Quoted 19 lines
---
v2:
- Replace value0x14with a macro.
v3:
- No change.
v4:
- send the patch again with '--to'.
v5:
- fix the commit message.drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+)drivers/pci/controller/dwc/pci-layerscape-ep.c +0
-0
drivers/pci/controller/dwc/pci-layerscape-ep.c static const struct pci_epc_features ls_pcie_epc_features = { · line 50
Quoted 7 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +1
-0@@ -44,6 +44,7 @@ static const struct pci_epc_features ls_pcie_epc_features = { .linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features*
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 40 lines
-----Original Message-----
From: Kishon Vijay Abraham I <[email protected]>
Sent: 2019年8月13日 15:30
To: Xiaowei Bao <[email protected]>; [email protected]; [email protected];M.h. Lian <[email protected]>; Mingkai Hu <[email protected]>; Roy Zang <[email protected]>; [email protected]; [email protected]; Leonard Crestez <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXT] Re: [PATCHv5 1/2] PCI: layerscape: Add thebar_fixed_64bitproperty in EP driver.Caution: EXT Email
Quoted 5 lines · Xiaowei Bao
The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the
bar_fixed_64bitwith0x14.Signed-off-by Xiaowei Bao <[email protected]>Quoted 13 lines
---
v2:
- Replace value0x14with a macro.
v3:
- No change.
v4:
- send the patch again with '--to'.
v5:
- fix the commit message.drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c static const struct pci_epc_features
Quoted 6 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +0
-0@@ -44,6 +44,7 @@ static const struct pci_epc_features
ls_pcie_epc_features= {Quoted 7 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +1
-0.linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features*
I check other platforms, it is 'static const struct pci_epc_features', I can get the correct Value use this define way in pci-epf-test.c file.
Quoted 1 line
Quoted 1 line
You should fix your email client set-up to avoid sticking an [EXT] tag to your emails $SUBJECT.
Quoted 17 lines · Xiaowei Bao
Quoted 17 lines
-----Original Message-----
From: Kishon Vijay Abraham I <[email protected]>
Sent: 2019年8月13日 15:30
To: Xiaowei Bao <[email protected]>; [email protected]; [email protected];M.h. Lian <[email protected]>; Mingkai Hu <[email protected]>; Roy Zang <[email protected]>; [email protected]; [email protected]; Leonard Crestez <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXT] Re: [PATCHv5 1/2] PCI: layerscape: Add thebar_fixed_64bitproperty in EP driver.
Quoted 1 line
Quoted 1 line
Caution: EXT Email
See above, this "Caution" stuff should disappear.
Also, quoting the email header is useless, please configure your email client to remove it.
Thanks,
Lorenzo
Quoted 38 lines
Quoted 21 lines · Xiaowei Bao
Quoted 5 lines
The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the
bar_fixed_64bitwith0x14.Signed-off-by Xiaowei Bao <[email protected]>Quoted 13 lines
---
v2:
- Replace value0x14with a macro.
v3:
- No change.
v4:
- send the patch again with '--to'.
v5:
- fix the commit message.drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+)Quoted 14 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c static const struct pci_epc_features
Quoted 6 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +0
-0@@ -44,6 +44,7 @@ static const struct pci_epc_features
ls_pcie_epc_features= {Quoted 7 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +1
-0.linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features*I check other platforms, it is 'static const struct
pci_epc_features', I can get the correct Value use this define way inpci-epf-test.cfile.Quoted 1 line
Quoted 1 line
git log --oneline --follow drivers/pci/controller/dwc/pci-layerscape.c
Do you see any commit with a $SUBJECT ending with a period ?
There is not. So remove it from yours too.
Quoted 15 lines · Xiaowei Bao
The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the
bar_fixed_64bitwith0x14.Signed-off-by Xiaowei Bao <[email protected]>---
v2:
- Replace value0x14with a macro.
v3:
- No change.
v4:
- send the patch again with '--to'.
v5:
- fix the commit message.
Quoted 2 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+)
scripts/get_maintainer.pl -f drivers/pci/controller/dwc/pci-layerscape-ep.c Now, with the output you get justify all the people you send this email to.
So, again, trim the CC list and it is the last time I tell you.
Before sending patches on mailing lists use git --dry-run to check the emails you are sending.
Thanks,
Lorenzo
Quoted 15 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +1
-0@@ -44,6 +44,7 @@ static const struct pci_epc_features ls_pcie_epc_features = { .linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features*Signature · 1 line
2.9.5
Quoted 17 lines
-----Original Message-----
From: Lorenzo Pieralisi <[email protected]>
Sent: 2019年8月13日 18:04
To: Xiaowei Bao <[email protected]>
Cc: [email protected];M.h. Lian <[email protected]>; Mingkai Hu <[email protected]>; Roy Zang <[email protected]>; [email protected]; [email protected]; [email protected]; Leonard Crestez <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXT] Re: [PATCHv5 1/2] PCI: layerscape: Add thebar_fixed_64bitproperty in EP driver.
Quoted 7 lines
Caution: EXT Email
git log --oneline --follow
drivers/pci/controller/dwc/pci-layerscape.cDo you see any commit with a $SUBJECT ending with a period ?
There is not. So remove it from yours too.
OK, thanks a lot, I will remove it in the next version patch, I have to get the approved Form IT team of our company.
Quoted 17 lines · Xiaowei Bao
Quoted 15 lines
The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set the
bar_fixed_64bitwith0x14.Signed-off-by Xiaowei Bao <[email protected]>---
v2:
- Replace value0x14with a macro.
v3:
- No change.
v4:
- send the patch again with '--to'.
v5:
- fix the commit message.
Quoted 7 lines
Quoted 2 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + 1 file changed, 1 insertion(+)
scripts/get_maintainer.pl-fdrivers/pci/controller/dwc/pci-layerscape-ep.cNow, with the output you get justify all the people you send this email to.So, again, trim the CC list and it is the last time I tell you.
Do you mean that I use scripts/get_maintainer.pl -f drivers/pci/controller/ dwc/pci-layerscape-ep.c to get the mail list who I need to send? I use the command of ' scripts/get_maintainer.pl *.patch' to get the mail list before. If yes, I will use the command that you provided. Thanks a lot.
Quoted 24 lines
Before sending patches on mailing lists use git --dry-run to check the emails you are sending.
Thanks,
Lorenzodrivers/pci/controller/dwc/pci-layerscape-ep.c static const struct pci_epc_features
Quoted 6 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +0
-0@@ -44,6 +44,7 @@ static const struct pci_epc_features
ls_pcie_epc_features= {Quoted 10 lines
drivers/pci/controller/dwc/pci-layerscape-ep.c +1
-1.linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features* --2.9.5