[PATCH v3 9/9] irqchip/ls-scfg-msi: add MSI affinity support

2017-01-17 Thread Minghuan Lian
card. In contrast, without affinity, all MSIRs can be used for core 0, the MSI interrupts can up to 32. So the parameter is added to control affinity mode. "lsmsi=no-affinity" will disable affinity and increase MSI interrupt number. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com>

[PATCH v3 9/9] irqchip/ls-scfg-msi: add MSI affinity support

2017-01-17 Thread Minghuan Lian
card. In contrast, without affinity, all MSIRs can be used for core 0, the MSI interrupts can up to 32. So the parameter is added to control affinity mode. "lsmsi=no-affinity" will disable affinity and increase MSI interrupt number. Signed-off-by: Minghuan Lian --- v3-v2: - 1. update the d

[PATCH v3 7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2017-01-17 Thread Minghuan Lian
MSIR setting and 'ibs_shift' to store the different value between the SoCs. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v3-v2: - keep the old misspelled compatible strings v2-v1: - MSI dts node change has been merged into the patch 6/9 drivers/irqchip/irq-ls-scfg-msi.c

[PATCH v3 7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2017-01-17 Thread Minghuan Lian
MSIR setting and 'ibs_shift' to store the different value between the SoCs. Signed-off-by: Minghuan Lian --- v3-v2: - keep the old misspelled compatible strings v2-v1: - MSI dts node change has been merged into the patch 6/9 drivers/irqchip/irq-ls-scfg-msi.c | 165

[PATCH v3 8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2017-01-17 Thread Minghuan Lian
in structure ls_scfg_msir are used to show 8 MSI interrupts. msir_irqs and msir_base are added to describe the difference of MSI between LS1043a v1.1 and other SoCs. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Acked-by: Rob Herring <r...@kernel.org> --- v3-v1: - None .../interrup

[PATCH v3 8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2017-01-17 Thread Minghuan Lian
in structure ls_scfg_msir are used to show 8 MSI interrupts. msir_irqs and msir_base are added to describe the difference of MSI between LS1043a v1.1 and other SoCs. Signed-off-by: Minghuan Lian Acked-by: Rob Herring --- v3-v1: - None .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + drivers

[PATCH v3 6/9] arm64: dts: ls1046a: add MSI dts node

2017-01-17 Thread Minghuan Lian
LS1046a includes 3 MSI controllers. Each controller supports 128 interrupts. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Acked-by: Rob Herring <r...@kernel.org> --- v3-v2: - None v2-v1: - change whitespace number .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 +

[PATCH v3 3/9] arm64: dts: ls1043a: fix typo of MSI compatible string

2017-01-17 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v3-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arc

[PATCH v3 6/9] arm64: dts: ls1046a: add MSI dts node

2017-01-17 Thread Minghuan Lian
LS1046a includes 3 MSI controllers. Each controller supports 128 interrupts. Signed-off-by: Minghuan Lian Acked-by: Rob Herring --- v3-v2: - None v2-v1: - change whitespace number .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi

[PATCH v3 3/9] arm64: dts: ls1043a: fix typo of MSI compatible string

2017-01-17 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian --- v3-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-

[PATCH v3 2/9] arm: dts: ls1021a: fix typo of MSI compatible string

2017-01-17 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v3-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021

[PATCH v3 4/9] arm: dts: ls1021a: share all MSIs

2017-01-17 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes msi-parent to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v3-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file chan

[PATCH v3 5/9] arm64: dts: ls1043a: share all MSIs

2017-01-17 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes "msi-parent" to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v3-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dt

[PATCH v3 0/9] irqchip/ls-scfg-msi: Update MSI driver

2017-01-17 Thread Minghuan Lian
This patch set is to update Layerscape MSI driver. 1. fix the compatible strings typo 2. Add MSI support to LS1046a 3. Add MSI support to LS1043a v1.1 4. Add MSI affinity support Minghuan Lian (9): irqchip/ls-scfg-msi: fix typo of MSI compatible strings arm: dts: ls1021a: fix typo of MSI

[PATCH v3 2/9] arm: dts: ls1021a: fix typo of MSI compatible string

2017-01-17 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian --- v3-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dt

[PATCH v3 4/9] arm: dts: ls1021a: share all MSIs

2017-01-17 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes msi-parent to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian --- v3-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 5/9] arm64: dts: ls1043a: share all MSIs

2017-01-17 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes "msi-parent" to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian --- v3-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3

[PATCH v3 0/9] irqchip/ls-scfg-msi: Update MSI driver

2017-01-17 Thread Minghuan Lian
This patch set is to update Layerscape MSI driver. 1. fix the compatible strings typo 2. Add MSI support to LS1046a 3. Add MSI support to LS1043a v1.1 4. Add MSI affinity support Minghuan Lian (9): irqchip/ls-scfg-msi: fix typo of MSI compatible strings arm: dts: ls1021a: fix typo of MSI

[PATCH v3 1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2017-01-17 Thread Minghuan Lian
The patch is to fix typo of the Layerscape SCFG MSI dts compatible strings. "1" is replaced by "l". Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Acked-by: Rob Herring <r...@kernel.org> --- v3-v1: - None .../devicetree/bindings/interrupt-contr

[PATCH v3 1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2017-01-17 Thread Minghuan Lian
The patch is to fix typo of the Layerscape SCFG MSI dts compatible strings. "1" is replaced by "l". Signed-off-by: Minghuan Lian Acked-by: Rob Herring --- v3-v1: - None .../devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt| 6 +++--- drivers/irqch

[PATCH v2,2/9] arm: dts: ls1021a: fix typo of MSI compatible string

2017-01-05 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v2-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021

[PATCH v2,2/9] arm: dts: ls1021a: fix typo of MSI compatible string

2017-01-05 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian --- v2-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dt

[PATCH v2,3/9] arm64: dts: ls1043a: fix typo of MSI compatible string

2017-01-05 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v2-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arc

[PATCH v2,3/9] arm64: dts: ls1043a: fix typo of MSI compatible string

2017-01-05 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian --- v2-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-

[PATCH v2,5/9] arm64: dts: ls1043a: share all MSIs

2017-01-05 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes "msi-parent" to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v2-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dt

[PATCH v2,5/9] arm64: dts: ls1043a: share all MSIs

2017-01-05 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes "msi-parent" to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian --- v2-v1: - None arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3

[PATCH v2,6/9] arm64: dts: ls1046a: add MSI dts node

2017-01-05 Thread Minghuan Lian
LS1046a includes 3 MSI controllers. Each controller supports 128 interrupts. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Acked-by: Rob Herring <r...@kernel.org> --- v2-v1: - change whitespace number .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + arch/ar

[PATCH v2,6/9] arm64: dts: ls1046a: add MSI dts node

2017-01-05 Thread Minghuan Lian
LS1046a includes 3 MSI controllers. Each controller supports 128 interrupts. Signed-off-by: Minghuan Lian Acked-by: Rob Herring --- v2-v1: - change whitespace number .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 31

[PATCH v2,8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2017-01-05 Thread Minghuan Lian
in structure ls_scfg_msir are used to show 8 MSI interrupts. msir_irqs and msir_base are added to describe the difference of MSI between LS1043a v1.1 and other SoCs. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Acked-by: Rob Herring <r...@kernel.org> --- v2-v1: - None .../interrup

[PATCH v2,8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2017-01-05 Thread Minghuan Lian
in structure ls_scfg_msir are used to show 8 MSI interrupts. msir_irqs and msir_base are added to describe the difference of MSI between LS1043a v1.1 and other SoCs. Signed-off-by: Minghuan Lian Acked-by: Rob Herring --- v2-v1: - None .../interrupt-controller/fsl,ls-scfg-msi.txt | 1

[PATCH v2,4/9] arm: dts: ls1021a: share all MSIs

2017-01-05 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes msi-parent to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v2-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file chan

[PATCH v2,4/9] arm: dts: ls1021a: share all MSIs

2017-01-05 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes msi-parent to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian --- v2-v1: - None arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2,7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2017-01-05 Thread Minghuan Lian
MSIR setting and 'ibs_shift' to store the different value between the SoCs. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v2-v1: - MSI dts node change has been merged into the patch 6/9 drivers/irqchip/irq-ls-scfg-msi.c | 161 +- 1 file change

[PATCH v2,9/9] irqchip/ls-scfg-msi: add MSI affinity support

2017-01-05 Thread Minghuan Lian
, the bits of all 4 MSIR will be reserved. The parameter 'msi_affinity_flag' is provide to change this mode. "lsmsi=no-affinity" will disable affinity, all MSI can only be associated with CPU 0. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- v2-v1: - None drivers/irqchip/i

[PATCH v2,7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2017-01-05 Thread Minghuan Lian
MSIR setting and 'ibs_shift' to store the different value between the SoCs. Signed-off-by: Minghuan Lian --- v2-v1: - MSI dts node change has been merged into the patch 6/9 drivers/irqchip/irq-ls-scfg-msi.c | 161 +- 1 file changed, 126 insertions(+), 35

[PATCH v2,9/9] irqchip/ls-scfg-msi: add MSI affinity support

2017-01-05 Thread Minghuan Lian
, the bits of all 4 MSIR will be reserved. The parameter 'msi_affinity_flag' is provide to change this mode. "lsmsi=no-affinity" will disable affinity, all MSI can only be associated with CPU 0. Signed-off-by: Minghuan Lian --- v2-v1: - None drivers/irqchip/irq-ls-scfg-

[PATCH v2,1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2017-01-05 Thread Minghuan Lian
The patch is to fix typo of the Layerscape SCFG MSI dts compatible strings. "1" is replaced by "l". Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Acked-by: Rob Herring <r...@kernel.org> --- v2-v1: - None .../devicetree/bindings/interrupt-contr

[PATCH v2,1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2017-01-05 Thread Minghuan Lian
The patch is to fix typo of the Layerscape SCFG MSI dts compatible strings. "1" is replaced by "l". Signed-off-by: Minghuan Lian Acked-by: Rob Herring --- v2-v1: - None .../devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt| 6 +++--- drivers/irqch

[PATCH 8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2016-12-27 Thread Minghuan Lian
in structure ls_scfg_msir are used to show 8 MSI interrupts. msir_irqs and msir_base are added to describe the difference of MSI between LS1043a v1.1 and other SoCs. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + drivers/irqchip/

[PATCH 8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2016-12-27 Thread Minghuan Lian
in structure ls_scfg_msir are used to show 8 MSI interrupts. msir_irqs and msir_base are added to describe the difference of MSI between LS1043a v1.1 and other SoCs. Signed-off-by: Minghuan Lian --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + drivers/irqchip/irq-ls-scfg-msi.c

[PATCH 5/9] arm64: dts: ls1043a: share all MSIs

2016-12-27 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes "msi-parent" to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1

[PATCH 5/9] arm64: dts: ls1043a: share all MSIs

2016-12-27 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes "msi-parent" to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insert

[PATCH 7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2016-12-27 Thread Minghuan Lian
MSIR setting and 'ibs_shift' to store the different value between the SoCs. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 2 +- drivers/irqchip/irq-ls-scfg-msi.c | 161 - 2 files change

[PATCH 7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2016-12-27 Thread Minghuan Lian
MSIR setting and 'ibs_shift' to store the different value between the SoCs. Signed-off-by: Minghuan Lian --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 2 +- drivers/irqchip/irq-ls-scfg-msi.c | 161 - 2 files changed, 127 insertions(+), 36 deletions

[PATCH 6/9] arm64: dts: ls1046a: add MSI dts node

2016-12-27 Thread Minghuan Lian
LS1046a includes 3 MSI controllers. Each controller supports 128 interrupts. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 31 ++ 2 files chang

[PATCH 6/9] arm64: dts: ls1046a: add MSI dts node

2016-12-27 Thread Minghuan Lian
LS1046a includes 3 MSI controllers. Each controller supports 128 interrupts. Signed-off-by: Minghuan Lian --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 31 ++ 2 files changed, 32 insertions(+) diff --git

[PATCH 1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2016-12-27 Thread Minghuan Lian
The patch is to fix typo of the Layerscape SCFG MSI dts compatible strings. "1" is replaced by "l". Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- .../devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt| 6 +++--- drivers

[PATCH 1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2016-12-27 Thread Minghuan Lian
The patch is to fix typo of the Layerscape SCFG MSI dts compatible strings. "1" is replaced by "l". Signed-off-by: Minghuan Lian --- .../devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt| 6 +++--- drivers/irqchip/irq-ls-scfg-msi.c

[PATCH 2/9] arm: dts: ls1021a: fix typo of MSI compatible string

2016-12-27 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch

[PATCH 3/9] arm64: dts: ls1043a: fix typo of MSI compatible string

2016-12-27 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/

[PATCH 4/9] arm: dts: ls1021a: share all MSIs

2016-12-27 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes msi-parent to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions

[PATCH 2/9] arm: dts: ls1021a: fix typo of MSI compatible string

2016-12-27 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian --- arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi in

[PATCH 3/9] arm64: dts: ls1043a: fix typo of MSI compatible string

2016-12-27 Thread Minghuan Lian
"1" should be replaced by "l". This is a typo. The patch is to fix it. Signed-off-by: Minghuan Lian --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b

[PATCH 4/9] arm: dts: ls1021a: share all MSIs

2016-12-27 Thread Minghuan Lian
In order to maximize the use of MSI, a PCIe controller will share all MSI controllers. The patch changes msi-parent to refer to all MSI controller dts nodes. Signed-off-by: Minghuan Lian --- arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 9/9] irqchip/ls-scfg-msi: add MSI affinity support

2016-12-27 Thread Minghuan Lian
, the bits of all 4 MSIR will be reserved. The parameter 'msi_affinity_flag' is provide to change this mode. "lsmsi=no-affinity" will disable affinity, all MSI can only be associated with CPU 0. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- drivers/irqchip/irq-ls

[PATCH 9/9] irqchip/ls-scfg-msi: add MSI affinity support

2016-12-27 Thread Minghuan Lian
, the bits of all 4 MSIR will be reserved. The parameter 'msi_affinity_flag' is provide to change this mode. "lsmsi=no-affinity" will disable affinity, all MSI can only be associated with CPU 0. Signed-off-by: Minghuan Lian --- drivers/irqchip/irq-ls-scfg-

[PATCH 4/6] arm64: dts: ls1046a: add MSI dts node

2016-10-25 Thread Minghuan Lian
LS1046a has three MSI controllers. each controller is assigned four SPI interrupts. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 32 ++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/bo

[PATCH 4/6] arm64: dts: ls1046a: add MSI dts node

2016-10-25 Thread Minghuan Lian
LS1046a has three MSI controllers. each controller is assigned four SPI interrupts. Signed-off-by: Minghuan Lian --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 32 ++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b

[PATCH] irqchip/ls-scfg-msi: update Layerscape SCFG MSI driver

2016-10-25 Thread Minghuan Lian
a MSI interrupt affinity, the MSI message data will be changed to refer to a new MSIR that has been associated with the core. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- The patch depends on https://patchwork.kernel.org/patch/9342915/ drivers/irqchip/irq-ls-scfg-msi.c

[PATCH] irqchip/ls-scfg-msi: update Layerscape SCFG MSI driver

2016-10-25 Thread Minghuan Lian
a MSI interrupt affinity, the MSI message data will be changed to refer to a new MSIR that has been associated with the core. Signed-off-by: Minghuan Lian --- The patch depends on https://patchwork.kernel.org/patch/9342915/ drivers/irqchip/irq-ls-scfg-msi.c | 444

[PATCH 5/6] arm64: dts: ls1043a: update gic dts node

2016-10-25 Thread Minghuan Lian
From: Gong Qianyu <qianyu.g...@nxp.com> In order to support kvm, rev1.1 LS1043a GIC register has been changed to align as 64K. The patch updates GIC node according to the rev1.1 hardware. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> Signed-off-by: Minghuan Lian <minghu

[PATCH 2/6] arm: dts: ls1021a: update MSI node

2016-10-25 Thread Minghuan Lian
1. Change compatible to "fsl,ls-scfg-msi" 2. Move two MSI dts node into the parent node "msi-controller". So a PCIe device can request the MSI from the two MSI controllers. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm/

[PATCH 5/6] arm64: dts: ls1043a: update gic dts node

2016-10-25 Thread Minghuan Lian
From: Gong Qianyu In order to support kvm, rev1.1 LS1043a GIC register has been changed to align as 64K. The patch updates GIC node according to the rev1.1 hardware. Signed-off-by: Gong Qianyu Signed-off-by: Minghuan Lian --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 8 1

[PATCH 2/6] arm: dts: ls1021a: update MSI node

2016-10-25 Thread Minghuan Lian
1. Change compatible to "fsl,ls-scfg-msi" 2. Move two MSI dts node into the parent node "msi-controller". So a PCIe device can request the MSI from the two MSI controllers. Signed-off-by: Minghuan Lian --- arch/arm/boot/dts/ls1021a.dtsi | 28

[PATCH 3/6] arm64: dts: ls1043a: update MSI and PCIe node

2016-10-25 Thread Minghuan Lian
1. Change compatible to "fsl,ls-scfg-msi" 2. Move three MSI dts node into the parent node "msi-controller". So a PCIe device can request the MSI from the three MSI controllers. 3. The rev1.1 of LS1043a moves PCIe INTB/C/D interrupts to MSI controller. Signed-off-by: Mingh

[PATCH 3/6] arm64: dts: ls1043a: update MSI and PCIe node

2016-10-25 Thread Minghuan Lian
1. Change compatible to "fsl,ls-scfg-msi" 2. Move three MSI dts node into the parent node "msi-controller". So a PCIe device can request the MSI from the three MSI controllers. 3. The rev1.1 of LS1043a moves PCIe INTB/C/D interrupts to MSI controller. Signed-off-by: Minghuan L

[PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI

2016-10-25 Thread Minghuan Lian
e MSI controllers. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 57 +++--- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt

[PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI

2016-10-25 Thread Minghuan Lian
e MSI controllers. Signed-off-by: Minghuan Lian --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 57 +++--- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt b/Documentation/devicetree/bin

[PATCH 6/6] arm64: dts: ls1046a: add PCIe dts node

2016-10-25 Thread Minghuan Lian
LS1046a has three PCIe controllers. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 66 ++ 1 file changed, 66 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/bo

[PATCH 6/6] arm64: dts: ls1046a: add PCIe dts node

2016-10-25 Thread Minghuan Lian
LS1046a has three PCIe controllers. Signed-off-by: Minghuan Lian --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 66 ++ 1 file changed, 66 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi

RE: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-04-22 Thread Minghuan Lian
nal Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Friday, April 22, 2016 3:43 PM > To: Leo Li <pku@gmail.com> > Cc: Minghuan Lian <minghuan.l...@nxp.com>; > linux-arm-ker...@lists.infradead.org; lkml <linux-kernel@vger.kernel.org>; > Thom

RE: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-04-22 Thread Minghuan Lian
nal Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Friday, April 22, 2016 3:43 PM > To: Leo Li > Cc: Minghuan Lian ; > linux-arm-ker...@lists.infradead.org; lkml ; > Thomas Gleixner ; Jason Cooper > ; Roy Zang ; Mingkai Hu > ; Stuart Yoder ; Yang-Le

[PATCH] ARM: dts: ls1021a: add SCFG MSI dts node

2016-04-06 Thread Minghuan Lian
Add SCFG MSI dts node and add msi-parent property to PCIe dts node that points to the corresponding MSI node. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- arch/arm/boot/dts/ls1021a.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/bo

[PATCH] ARM: dts: ls1021a: add SCFG MSI dts node

2016-04-06 Thread Minghuan Lian
Add SCFG MSI dts node and add msi-parent property to PCIe dts node that points to the corresponding MSI node. Signed-off-by: Minghuan Lian --- arch/arm/boot/dts/ls1021a.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts

[PATCH 2/2 v6] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-23 Thread Minghuan Lian
Some kind of Freescale Layerscape SoC provides a MSI implementation which uses two SCFG registers MSIIR and MSIR to support 32 MSI interrupts for each PCIe controller. The patch is to support it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> Tested-by: Alexander Stein <ale

[PATCH 2/2 v6] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-23 Thread Minghuan Lian
Some kind of Freescale Layerscape SoC provides a MSI implementation which uses two SCFG registers MSIIR and MSIR to support 32 MSI interrupts for each PCIe controller. The patch is to support it. Signed-off-by: Minghuan Lian Tested-by: Alexander Stein Acked-by: Marc Zyngier --- Change log v6

[PATCH 1/2 v6] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-23 Thread Minghuan Lian
Some Layerscape SoCs use a simple MSI controller implementation. It contains only two SCFG register to trigger and describe a group 32 MSI interrupts. The patch adds bindings to describe the controller. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- change log: v6-v4: no change v

[PATCH 1/2 v6] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-23 Thread Minghuan Lian
Some Layerscape SoCs use a simple MSI controller implementation. It contains only two SCFG register to trigger and describe a group 32 MSI interrupts. The patch adds bindings to describe the controller. Signed-off-by: Minghuan Lian --- change log: v6-v4: no change v4: add interrupt-parent

RE: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-23 Thread Minghuan Lian
>hwirq = pci_msi_domain_calc_hwirq(msi_desc_to_pci_dev(desc), desc); } Thanks, Minghuan > -Original Message- > From: Alexander Stein [mailto:alexander.st...@systec-electronic.com] > Sent: Wednesday, March 23, 2016 5:18 PM > To: linux-kerne

RE: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-23 Thread Minghuan Lian
>hwirq = pci_msi_domain_calc_hwirq(msi_desc_to_pci_dev(desc), desc); } Thanks, Minghuan > -Original Message- > From: Alexander Stein [mailto:alexander.st...@systec-electronic.com] > Sent: Wednesday, March 23, 2016 5:18 PM > To: linux-kernel@

RE: [PATCH 1/2 v5] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-09 Thread Minghuan Lian
Hi Rob Herring, Could you help to review this patch? Thanks a lot. Regards, Minghuan > -Original Message- > From: Minghuan Lian [mailto:minghuan.l...@nxp.com] > Sent: Monday, March 07, 2016 11:36 AM > To: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.or

RE: [PATCH 1/2 v5] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-09 Thread Minghuan Lian
Hi Rob Herring, Could you help to review this patch? Thanks a lot. Regards, Minghuan > -Original Message- > From: Minghuan Lian [mailto:minghuan.l...@nxp.com] > Sent: Monday, March 07, 2016 11:36 AM > To: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.or

[PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-06 Thread Minghuan Lian
Some kind of NXP Layerscape SoC provides a MSI implementation which uses two SCFG registers MSIIR and MSIR to support 32 MSI interrupts for each PCIe controller. The patch is to support it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- Change log v5: 1. drop nr_irqs from

[PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-06 Thread Minghuan Lian
Some kind of NXP Layerscape SoC provides a MSI implementation which uses two SCFG registers MSIIR and MSIR to support 32 MSI interrupts for each PCIe controller. The patch is to support it. Signed-off-by: Minghuan Lian --- Change log v5: 1. drop nr_irqs from struct ls_scfg_msi v4: 1. do

[PATCH 1/2 v5] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-06 Thread Minghuan Lian
Some Layerscape SoCs use a simple MSI controller implementation. It contains only two SCFG register to trigger and describe a group 32 MSI interrupts. The patch adds bindings to describe the controller. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- change log: v4: add interrupt-

[PATCH 1/2 v5] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-06 Thread Minghuan Lian
Some Layerscape SoCs use a simple MSI controller implementation. It contains only two SCFG register to trigger and describe a group 32 MSI interrupts. The patch adds bindings to describe the controller. Signed-off-by: Minghuan Lian --- change log: v4: add interrupt-parent description v3-v1

RE: [PATCH 2/2 v3] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-01 Thread Minghuan Lian
Hi Marc, Please see my comments inline. Thanks, Minghaun > -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Monday, February 29, 2016 6:14 PM > To: Minghuan Lian <minghuan.l...@nxp.com>; > linux-arm-ker...@lists.infradead.org >

RE: [PATCH 2/2 v3] irqchip/Layerscape: Add SCFG MSI controller support

2016-03-01 Thread Minghuan Lian
Hi Marc, Please see my comments inline. Thanks, Minghaun > -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Monday, February 29, 2016 6:14 PM > To: Minghuan Lian ; > linux-arm-ker...@lists.infradead.org > Cc: Thomas Gleixner ; Jason C

[PATCH 1/2 v4] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-02-26 Thread Minghuan Lian
Some Layerscape SoCs use a simple MSI controller implementation. It contains only two SCFG register to trigger and describe a group 32 MSI interrupts. The patch adds bindings to describe the controller. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- change log: v4: add interrupt-

[PATCH 1/2 v4] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-02-26 Thread Minghuan Lian
Some Layerscape SoCs use a simple MSI controller implementation. It contains only two SCFG register to trigger and describe a group 32 MSI interrupts. The patch adds bindings to describe the controller. Signed-off-by: Minghuan Lian --- change log: v4: add interrupt-parent description v3-v1

[PATCH 2/2 v4] irqchip/Layerscape: Add SCFG MSI controller support

2016-02-25 Thread Minghuan Lian
Some kind of NXP Layerscape SoC provides a MSI implementation which uses two SCFG registers MSIIR and MSIR to support 32 MSI interrupts for each PCIe controller. The patch is to support it. Signed-off-by: Minghuan Lian <minghuan.l...@nxp.com> --- Change log v4: 1. do not register irq_

[PATCH 2/2 v4] irqchip/Layerscape: Add SCFG MSI controller support

2016-02-25 Thread Minghuan Lian
Some kind of NXP Layerscape SoC provides a MSI implementation which uses two SCFG registers MSIIR and MSIR to support 32 MSI interrupts for each PCIe controller. The patch is to support it. Signed-off-by: Minghuan Lian --- Change log v4: 1. do not register irq_enable irq_disable 2. shorten

RE: [PATCH 2/2 v3] irqchip/Layerscape: Add SCFG MSI controller support

2016-02-24 Thread Minghuan Lian
2016 1:30 AM > To: Minghuan Lian <minghuan.l...@nxp.com>; > linux-arm-ker...@lists.infradead.org > Cc: Thomas Gleixner <t...@linutronix.de>; Jason Cooper > <ja...@lakedaemon.net>; Roy Zang <roy.z...@nxp.com>; Mingkai Hu > <mingkai...@nxp.com>; Stuar

RE: [PATCH 2/2 v3] irqchip/Layerscape: Add SCFG MSI controller support

2016-02-24 Thread Minghuan Lian
2016 1:30 AM > To: Minghuan Lian ; > linux-arm-ker...@lists.infradead.org > Cc: Thomas Gleixner ; Jason Cooper > ; Roy Zang ; Mingkai Hu > ; Stuart Yoder ; Yang-Leo Li > ; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 2/2 v3] irqchip/Layerscape: Add SCFG MSI controller >

RE: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-04 Thread Minghuan Lian
The patch is ok to me. Thanks, Minghuan > -Original Message- > From: Bhupesh Sharma > Sent: Friday, February 05, 2016 1:36 PM > To: Shi, Yang ; Bjorn Helgaas ; > Yang-Leo Li ; shawn@linaro.org > Cc: Mingkai Hu ; Minghuan Lian > ; bhelg...@google.com; linu

RE: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-04 Thread Minghuan Lian
aro.org > Cc: Mingkai Hu <mingkai...@nxp.com>; Minghuan Lian > <minghuan.l...@nxp.com>; bhelg...@google.com; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linaro-ker...@lists.linaro.org > Subject: RE: [PATCH] PCI: layers

[tip:irq/urgent] irqchip/gicv3-its: ITS table size should not be smaller than PSZ

2015-05-20 Thread tip-bot for Minghuan Lian
Commit-ID: 3ad2a5f57656a14d964b673a5a0e4ab0e583c870 Gitweb: http://git.kernel.org/tip/3ad2a5f57656a14d964b673a5a0e4ab0e583c870 Author: Minghuan Lian AuthorDate: Wed, 20 May 2015 10:13:15 -0500 Committer: Thomas Gleixner CommitDate: Wed, 20 May 2015 22:13:37 +0200 irqchip/gicv3-its

[tip:irq/urgent] irqchip/gicv3-its: ITS table size should not be smaller than PSZ

2015-05-20 Thread tip-bot for Minghuan Lian
Commit-ID: 3ad2a5f57656a14d964b673a5a0e4ab0e583c870 Gitweb: http://git.kernel.org/tip/3ad2a5f57656a14d964b673a5a0e4ab0e583c870 Author: Minghuan Lian minghuan.l...@freescale.com AuthorDate: Wed, 20 May 2015 10:13:15 -0500 Committer: Thomas Gleixner t...@linutronix.de CommitDate: Wed, 20

[PATCH v2] irqchip/gicv3-its: ITS table size should not be smaller than PSZ

2015-04-16 Thread Minghuan Lian
page number will cause kernel hang. Signed-off-by: Minghuan Lian --- v2-v1: Increase allocation size instead of decreasing PSZ drivers/irqchip/irq-gic-v3-its.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c

[PATCH v2] irqchip/gicv3-its: ITS table size should not be smaller than PSZ

2015-04-16 Thread Minghuan Lian
page number will cause kernel hang. Signed-off-by: Minghuan Lian minghuan.l...@freescale.com --- v2-v1: Increase allocation size instead of decreasing PSZ drivers/irqchip/irq-gic-v3-its.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b

  1   2   >