Message ID | 20210719073456.28666-1-chuanjia.liu@mediatek.com |
---|---|
Headers | show |
Series | PCI: mediatek: Spilt PCIe node to comply with hardware design | expand |
On Mon, 19 Jul 2021 15:34:53 +0800, Chuanjia Liu wrote: > There are two independent PCIe controllers in MT2712 and MT7622 > platform. Each of them should contain an independent MSI domain. > > In old dts architecture, MSI domain will be inherited from the root > bridge, and all of the devices will share the same MSI domain. > Hence that, the PCIe devices will not work properly if the irq number > which required is more than 32. > > Split the PCIe node for MT2712 and MT7622 platform to comply with > the hardware design and fix MSI issue. > > Signed-off-by: Chuanjia Liu <chuanjia.liu@mediatek.com> > Acked-by: Ryder Lee <ryder.lee@mediatek.com> > --- > .../bindings/pci/mediatek-pcie-cfg.yaml | 39 ++++ > .../devicetree/bindings/pci/mediatek-pcie.txt | 206 ++++++++++-------- > 2 files changed, 150 insertions(+), 95 deletions(-) > create mode 100644 Documentation/devicetree/bindings/pci/mediatek-pcie-cfg.yaml > Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply. If a tag was not added on purpose, please state why and what changed.
On Mon, 2021-07-19 at 16:47 -0600, Rob Herring wrote: > On Mon, 19 Jul 2021 15:34:53 +0800, Chuanjia Liu wrote: > > There are two independent PCIe controllers in MT2712 and MT7622 > > platform. Each of them should contain an independent MSI domain. > > > > In old dts architecture, MSI domain will be inherited from the root > > bridge, and all of the devices will share the same MSI domain. > > Hence that, the PCIe devices will not work properly if the irq number > > which required is more than 32. > > > > Split the PCIe node for MT2712 and MT7622 platform to comply with > > the hardware design and fix MSI issue. > > > > Signed-off-by: Chuanjia Liu <chuanjia.liu@mediatek.com> > > Acked-by: Ryder Lee <ryder.lee@mediatek.com> > > --- > > .../bindings/pci/mediatek-pcie-cfg.yaml | 39 ++++ > > .../devicetree/bindings/pci/mediatek-pcie.txt | 206 ++++++++++-------- > > 2 files changed, 150 insertions(+), 95 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/pci/mediatek-pcie-cfg.yaml > > > > > Please add Acked-by/Reviewed-by tags when posting new versions. However, > there's no need to repost patches *only* to add the tags. The upstream > maintainer will do that for acks received on the version they apply. > > If a tag was not added on purpose, please state why and what changed. > Hi,Rob I have described in the cover letter: v11:Rebase for 5.14-rc1 and add "interrupt-names", "linux,pci-domain" description in binding file. No code change. if you still ok for this, I will add R-b in next version. Best regards > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek
On Mon, Jul 19, 2021 at 8:07 PM Chuanjia Liu <chuanjia.liu@mediatek.com> wrote: > > On Mon, 2021-07-19 at 16:47 -0600, Rob Herring wrote: > > On Mon, 19 Jul 2021 15:34:53 +0800, Chuanjia Liu wrote: > > > There are two independent PCIe controllers in MT2712 and MT7622 > > > platform. Each of them should contain an independent MSI domain. > > > > > > In old dts architecture, MSI domain will be inherited from the root > > > bridge, and all of the devices will share the same MSI domain. > > > Hence that, the PCIe devices will not work properly if the irq number > > > which required is more than 32. > > > > > > Split the PCIe node for MT2712 and MT7622 platform to comply with > > > the hardware design and fix MSI issue. > > > > > > Signed-off-by: Chuanjia Liu <chuanjia.liu@mediatek.com> > > > Acked-by: Ryder Lee <ryder.lee@mediatek.com> > > > --- > > > .../bindings/pci/mediatek-pcie-cfg.yaml | 39 ++++ > > > .../devicetree/bindings/pci/mediatek-pcie.txt | 206 ++++++++++-------- > > > 2 files changed, 150 insertions(+), 95 deletions(-) > > > create mode 100644 Documentation/devicetree/bindings/pci/mediatek-pcie-cfg.yaml > > > > > > > > > Please add Acked-by/Reviewed-by tags when posting new versions. However, > > there's no need to repost patches *only* to add the tags. The upstream > > maintainer will do that for acks received on the version they apply. > > > > If a tag was not added on purpose, please state why and what changed. > > > Hi,Rob > I have described in the cover letter: > v11:Rebase for 5.14-rc1 and add "interrupt-names", "linux,pci-domain" > description in binding file. No code change. > if you still ok for this, I will add R-b in next version. Yes, it's fine. In the future, put the changelog for a patch in the patch. Rob
On Tue, 2021-07-20 at 10:26 -0600, Rob Herring wrote: > On Mon, Jul 19, 2021 at 8:07 PM Chuanjia Liu <chuanjia.liu@mediatek.com> wrote: > > > > On Mon, 2021-07-19 at 16:47 -0600, Rob Herring wrote: > > > On Mon, 19 Jul 2021 15:34:53 +0800, Chuanjia Liu wrote: > > > > There are two independent PCIe controllers in MT2712 and MT7622 > > > > platform. Each of them should contain an independent MSI domain. > > > > > > > > In old dts architecture, MSI domain will be inherited from the root > > > > bridge, and all of the devices will share the same MSI domain. > > > > Hence that, the PCIe devices will not work properly if the irq number > > > > which required is more than 32. > > > > > > > > Split the PCIe node for MT2712 and MT7622 platform to comply with > > > > the hardware design and fix MSI issue. > > > > > > > > Signed-off-by: Chuanjia Liu <chuanjia.liu@mediatek.com> > > > > Acked-by: Ryder Lee <ryder.lee@mediatek.com> > > > > --- > > > > .../bindings/pci/mediatek-pcie-cfg.yaml | 39 ++++ > > > > .../devicetree/bindings/pci/mediatek-pcie.txt | 206 ++++++++++-------- > > > > 2 files changed, 150 insertions(+), 95 deletions(-) > > > > create mode 100644 Documentation/devicetree/bindings/pci/mediatek-pcie-cfg.yaml > > > > > > > > > > > > > Please add Acked-by/Reviewed-by tags when posting new versions. However, > > > there's no need to repost patches *only* to add the tags. The upstream > > > maintainer will do that for acks received on the version they apply. > > > > > > If a tag was not added on purpose, please state why and what changed. > > > > > Hi,Rob > > I have described in the cover letter: > > v11:Rebase for 5.14-rc1 and add "interrupt-names", "linux,pci-domain" > > description in binding file. No code change. > > if you still ok for this, I will add R-b in next version. > > Yes, it's fine. > > In the future, put the changelog for a patch in the patch. Hi, Rob Thanks for you suggestion, I will do this in future versions. Best regards
On Mon, 19 Jul 2021 15:34:52 +0800, Chuanjia Liu wrote: > There are two independent PCIe controllers in MT2712 and MT7622 platform. > Each of them should contain an independent MSI domain. > > In old dts architecture, MSI domain will be inherited from the root bridge, > and all of the devices will share the same MSI domain.Hence that, > the PCIe devices will not work properly if the irq number > which required is more than 32. > > [...] Applied patches 1-2 to pci/mediatek (we don't merge dts changes), thanks! [1/2] dt-bindings: PCI: mediatek: Update the Device tree bindings https://git.kernel.org/lpieralisi/pci/c/9c23251640 [2/2] PCI: mediatek: Add new method to get shared pcie-cfg base address and parse node https://git.kernel.org/lpieralisi/pci/c/302e503e08 Thanks, Lorenzo
On Fri, 2021-08-06 at 10:39 +0100, Lorenzo Pieralisi wrote: > On Mon, 19 Jul 2021 15:34:52 +0800, Chuanjia Liu wrote: > > There are two independent PCIe controllers in MT2712 and MT7622 > > platform. > > Each of them should contain an independent MSI domain. > > > > In old dts architecture, MSI domain will be inherited from the root > > bridge, > > and all of the devices will share the same MSI domain.Hence that, > > the PCIe devices will not work properly if the irq number > > which required is more than 32. > > > > [...] > > Applied patches 1-2 to pci/mediatek (we don't merge dts changes), > thanks! > > [1/2] dt-bindings: PCI: mediatek: Update the Device tree bindings > https://git.kernel.org/lpieralisi/pci/c/9c23251640 > [2/2] PCI: mediatek: Add new method to get shared pcie-cfg base > address and parse node > https://git.kernel.org/lpieralisi/pci/c/302e503e08 > > Thanks, > Lorenzo Hi, matthias Could you help apply dts changes(patch 3-4)? Lorenzo helped to apply the driver part, and dts part hopes to apply together. Best Regards > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek