[PATCH v7 0/4] irqchip:support mbigen interrupt controller

2015-10-20 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

[PATCH v7 4/4] irqchip:implement the mbigen irq chip operation functions

2015-10-20 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 102 +++-- 1 files changed, 97 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irq

[PATCH v7 1/4] dt-binding:Documents of the mbigen bindings

2015-10-20 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 63 ++ 1 files changed, 63 insertions(+), 0 d

[PATCH v7 3/4] irqchip:create irq domain for each mbigen device

2015-10-20 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 160 ++

[PATCH v7 2/4] irqchip: add platform device driver for mbigen device

2015-10-20 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

[PATCH v6 3/4] irqchip:create irq domain for each mbigen device

2015-10-20 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 152 ++

[PATCH v6 4/4] irqchip:implement the mbigen irq chip operation functions

2015-10-20 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 100 +++-- 1 files changed, 95 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irq

[PATCH v6 1/4] dt-binding:Documents of the mbigen bindings

2015-10-20 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 63 ++ 1 files changed, 63 insertions(+), 0

[PATCH v6 0/4] irqchip:support mbigen interrupt controller

2015-10-20 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

[PATCH v6 2/4] irqchip: add platform device driver for mbigen device

2015-10-20 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

[PATCH RESEND v6 1/4] dt-binding:Documents of the mbigen bindings

2015-10-20 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 63 ++ 1 files changed, 63 insertions(+), 0

[PATCH RESEND v6 2/4] irqchip: add platform device driver for mbigen device

2015-10-20 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

[PATCH RESEND v6 4/4] irqchip:implement the mbigen irq chip operation functions

2015-10-20 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 97 +++-- 1 files changed, 92 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irq

[PATCH RESEND v6 0/4] irqchip:support mbigen interrupt controller

2015-10-20 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

[PATCH RESEND v6 3/4] irqchip:create irq domain for each mbigen device

2015-10-20 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 165 ++

[PATCH v4 2/2] dt-binding:Documents of the mbigen bindings

2015-08-18 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. Change since v3: --- Change the interrupt cells definition. --- Change the mbigen node definition. --- Add mbigen device node as sub node of mbigen. Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.

[PATCH v4 0/2] Support Mbigen interrupt controller

2015-08-18 Thread MaJun
From: Ma Jun This patch adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark Rutla

[PATCH v4 1/2] Add the driver of mbigen interrupt controller

2015-08-18 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interr

Re: [PATCH v9 3/4] irqchip:create irq domain for each mbigen device

2015-12-06 Thread majun
Hi Marc: On 2015/12/3 11:25, Marc Zyngier wrote: > On 23/11/15 03:15, MaJun wrote: >> From: Ma Jun >> >> For peripheral devices which connect to mbigen,mbigen is a interrupt >> controller. So, we create irq domain for each mbigen device and add >> mbigen irq do

Re: [PATCH v9 0/4] irqchip:support mbigen interrupt controller

2015-12-16 Thread majun
Hi Marc: Sorry for late response. I just came back from a business trip from American. I'll send a new version ASAP on tomorrow. Thanks! Ma Jun On 2015/12/16 6:22, Marc Zyngier wrote: > On 23/11/15 03:15, MaJun wrote: >> From: Ma Jun >> >> This patch set add

Re: [PATCH v9 1/4] dt-binding:Documents of the mbigen bindings

2015-12-16 Thread majun
Hi Mark: On 2015/12/11 10:26, Mark Rutland wrote: > Hi, > > On Mon, Nov 23, 2015 at 11:15:10AM +0800, MaJun wrote: >> From: Ma Jun >> >> Add the mbigen msi interrupt controller bindings document. >> >> This patch based on Mark Rutland's patch >>

Re: [PATCH v9 3/4] irqchip:create irq domain for each mbigen device

2015-12-16 Thread majun
Hi Marc and Mark: On 2015/12/11 10:42, Mark Rutland wrote: > On Mon, Nov 23, 2015 at 11:15:12AM +0800, MaJun wrote: >> From: Ma Jun >> >> For peripheral devices which connect to mbigen,mbigen is a interrupt >> controller. So, we create irq domain for each mbigen d

[PATCH v10 1/4] dt-binding:Documents of the mbigen bindings

2015-12-17 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 74 ++ 1 files changed, 74 insertions(+), 0 d

[PATCH v10 4/4] irqchip:implement the mbigen irq chip operation functions

2015-12-17 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 81 ++ 1 files changed, 81 insertions(+), 0 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/ir

[PATCH v10 0/4] irqchip:support mbigen interrupt controller

2015-12-17 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

[PATCH v10 2/4] irqchip: add platform device driver for mbigen device

2015-12-17 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

[PATCH v10 3/4] irqchip:create irq domain for each mbigen device

2015-12-17 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 138 ++

Re: [PATCH v10 0/4] irqchip:support mbigen interrupt controller

2015-12-18 Thread majun
Hi Marc and Mark: On 2015/12/18 6:58, Marc Zyngier wrote: > On 17/12/15 11:56, MaJun wrote: >> From: Ma Jun >> >> This patch set adds the driver of mbigen and binding document for Hisilicon >> Mbigen chips. > > [...] > > I've reworked the nits notic

Re: [PATCH v9 1/4] dt-binding:Documents of the mbigen bindings

2015-12-08 Thread majun
Hi Mark: Do you have any comments about this patch? Thanks! Ma Jun On 2015/12/3 11:21, Marc Zyngier wrote: > On 23/11/15 03:15, MaJun wrote: >> From: Ma Jun >> >> Add the mbigen msi interrupt controller bindings document. >> >> This patch based on Mark Ru

[PATCH v2 1/5] dt-binding: Change the mbigen binding file to support the mbigen-v1

2016-02-15 Thread MaJun
From: Ma Jun Add the "hisilicon,mbigen-v1" string in binding file. Signed-off-by: Ma Jun --- .../interrupt-controller/hisilicon,mbigen-v2.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/hisilicon,mbigen-v2.t

[PATCH v2 0/5] irqchip: Add support for Hisilicon mbigen v1 chip

2016-02-15 Thread MaJun
From: Ma Jun This patch set is used to support the mbigen v1 chip. Compared to mbigen v2 chip, the main difference between them is register layout(address,format) As a sequence of this difference, the functions used to get or calculate register address are also changed for this reason. Changes

[PATCH v2 5/5] irqchip:implement the mbigen irq chip operation functions

2016-02-15 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen-v1.c | 75 +++ 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/drivers/irqchip/irq-mbigen-v1.c b/drivers

[PATCH v2 4/5] irqchip:create irq domain for each mbigen device

2016-02-15 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen-v1.c | 136 +++

[PATCH v2 2/5] dt-binding:Rename the mbigen binding file name

2016-02-15 Thread MaJun
From: Ma Jun Because added the mbigen-v1 compatible string, the origin name is not suitable any more. So,I remove the version number from file name. Signed-off-by: Ma Jun --- .../interrupt-controller/hisilicon,mbigen-v2.txt | 74 .../interrupt-controller/hisilicon,mbig

[PATCH v2 3/5] irqchip: add platform device driver for mbigen device

2016-02-15 Thread MaJun
From: Ma Jun Add the platform device driver for mbigen chip v1. This patch just same as mbigen v2. Signed-off-by: Ma Jun --- drivers/irqchip/Makefile|2 +- drivers/irqchip/irq-mbigen-v1.c | 76 +++ 2 files changed, 77 insertions(+), 1 deletions

[PATCH v3 2/2] irqchip/mbigen:Change the mbigen driver based on the new mbigen node definition.

2016-03-19 Thread MaJun
From: Ma Jun In current mbigen driver, each mbigen device is initialized as a platform device. When these devices belong to same mbigen hardware module(chip), they use the same register definition in their device node and caused the problem of registers remapped repeatedly. Now, I try to initi

[RFC PATCH] genirq: Change the non-balanced irq to balance irq when the cpu of the irq bounded off line

2016-03-31 Thread MaJun
From: Ma Jun When the CPU of a non-balanced irq bounded is off line, the irq will be migrated to other CPUs, usually the first cpu on-line. We can suppose the situation if a system has more than one non-balanced irq. At extreme case, these irqs will be migrated to the same CPU and will cause th

[PATCH v8 4/4] irqchip:implement the mbigen irq chip operation functions

2015-11-06 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 102 +++-- 1 files changed, 97 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irq

[PATCH v8 0/4] irqchip:support mbigen interrupt controller

2015-11-06 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

[PATCH v8 1/4] dt-binding:Documents of the mbigen bindings

2015-11-06 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 63 ++ 1 files changed, 63 insertions(+), 0 d

[PATCH v8 2/4] irqchip: add platform device driver for mbigen device

2015-11-06 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

[PATCH v8 3/4] irqchip:create irq domain for each mbigen device

2015-11-06 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 163 ++

[PATCH v9 1/4] dt-binding:Documents of the mbigen bindings

2015-11-22 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 69 ++ 1 files changed, 69 insertions(+), 0 d

[PATCH v9 2/4] irqchip: add platform device driver for mbigen device

2015-11-22 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

[PATCH v9 4/4] irqchip:implement the mbigen irq chip operation functions

2015-11-22 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 84 ++ 1 files changed, 84 insertions(+), 0 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/ir

[PATCH v9 3/4] irqchip:create irq domain for each mbigen device

2015-11-22 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 119 ++

[PATCH v9 0/4] irqchip:support mbigen interrupt controller

2015-11-22 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

[PATCH v5 1/3] initialize each mbigen device node as a interrupt controller.

2015-09-30 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interr

[PATCH v5 2/3] Probe mbigen chip and initial mbigen device as platform device.

2015-09-30 Thread MaJun
From: Ma Jun After initializing mbigen device as interrupt controller, this patch is used to probe mbigen chip and initial mbigen device as a platform device so as to allocate msi-irqs within ITS-pMSI domain. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 203 ++

[PATCH v5 0/3] Support Mbigen interrupt controller

2015-09-30 Thread MaJun
From: Ma Jun This patch adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark Rutla

[PATCH v5 3/3] dt-binding:Documents of the mbigen bindings

2015-09-30 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 85 ++ 1 files changed, 85 insertions(+), 0

[PATCH] ACPI: fix the process flow for 0 which return from acpi_register_gsi

2016-10-11 Thread MaJun
The return value 0 from acpi_register_gsi() means irq mapping failed. So, we should process this case in else branch. Signed-off-by: MaJun --- drivers/acpi/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index

[PATCH] ACPI: fix the process flow for 0 which return from acpi_register_gsi

2016-11-30 Thread Majun
From: MaJun The return value 0 from acpi_register_gsi() means irq mapping failed. So, we should process this case in else branch. Signed-off-by: MaJun --- drivers/acpi/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/resource.c b/drivers/acpi

[RFC PATCH 2/3] irqchip/gicv3-its: add a new flag to control indirect route in DT mode

2016-11-30 Thread Majun
From: MaJun Add a new flag for ITS node in DT mode so we can disable/enable the indirect route function. Signed-off-by: MaJun --- drivers/irqchip/irq-gic-v3-its.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers

[RFC PATCH 0/3] Add a new flag for ITS device to control indirect route

2016-11-30 Thread Majun
From: MaJun For current ITS driver, two level table (indirect route) is enabled when the memory used for LPI route table over the limit(64KB * 2) size. But this function impact the performance of LPI interrupt actually because need more time to look up the table. Although this function can

[RFC PATCH 1/3]Binding: Add a new property string in ITS node to control the two-level route function

2016-11-30 Thread Majun
From: MaJun Add the two-level-route property in ITS node. When this property string defined, two-level route(indirect) function will be enabled in ITS driver, otherwise disable it. Signed-off-by: MaJun --- Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt | 3 +++ 1 file

[RFC PATCH 3/3]irqchip/gicv3-its: Add a new flag to control indirect route in ACPI mode.

2016-11-30 Thread Majun
From: MaJun Add a new flag to control indirect route function for ACPI mode. To carry the user defined flags information, we used the reserved byte in ITS MADT table Signed-off-by: MaJun --- drivers/irqchip/irq-gic-v3-its.c | 5 - include/acpi/actbl1.h| 3 ++- 2 files changed

[PATCH] generic: Add the exception case checking routine for ppi interrupt

2016-08-29 Thread MaJun
From: Ma Jun During system booting, if the interrupt which has no action registered is triggered, it would cause system panic when try to access the action member. Signed-off-by: Ma Jun --- kernel/irq/chip.c | 20 1 files changed, 16 insertions(+), 4 deletions(-) diff -

[PATCH v2 0/2] Irq/Mbigen: fix the IO remap problem in mbigen driver.

2016-03-13 Thread MaJun
From: Ma Jun This patch set is used to fix the problem of remap a set of registers repeatedly. Changes in v2: --- Change the mbigen device node definition --- Change the mbigen driver based on the new mbigen dts structure. Ma Jun (2): Irq/mbigen:Change the mbigen node definition in dt binding

[PATCH v2 1/2] Irq/mbigen:Change the mbigen node definition in dt binding file

2016-03-13 Thread MaJun
From: Ma Jun For mbigen module, there is a special case that more than one mbigen device nodes use the same reg definition in DTS when these devices exist in the same mbigen hardware module. To fix the mbigen IO remap problem, the mbigen node definition and structure are changed based on Mark Ru

[PATCH v2 2/2] Irq/mbigen:Change the mbigen driver based on the new mbigen node definition.

2016-03-13 Thread MaJun
From: Ma Jun To fix the IO remap problem, change the mbigen driver based on the new mbigen node definition. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 30 +- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c

[PATCH 2/2] irqchip/mbigen:Change the config option of mbigen driver to non-configurable

2016-03-23 Thread MaJun
From: Ma Jun This config is selected by CONFIG_ARCH_HISI, So we change this config to non-configurable. I also adjust the mbigen config position try to sort the configs in alphabetical order. Signed-off-by: Ma Jun --- drivers/irqchip/Kconfig | 14 ++ 1 files changed, 6 insertion

[PATCH 0/2] Change the the config option of mbigen driver.

2016-03-23 Thread MaJun
From: Ma Jun In current driver, the config of mbigen driver is a configurable option and have nothing to do with CONFIG_ARCH_HISI. As a module of Hisilicon SOC, the config of mbigen driver should be selected by CONFIG_ARCH_HISI on Hisilicon platform, but not a configurable option. This patch se

[PATCH 1/2]ARM64: Enable mbigen interrupt controller on Hisilicon platform

2016-03-23 Thread MaJun
From: Ma Jun As a interrupt controller used on some of hisilicon SOCs(660,1610 etc.), mbigen driver should be enabled when CONFIG_ARCH_HISI is enabled. Signed-off-by: Ma Jun --- arch/arm64/Kconfig.platforms |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm64/Kcon

[PATCH v3 0/2] irqchip/mbigen: fix the IO remap problem in mbigen driver.

2016-03-19 Thread MaJun
From: Ma Jun This patch set is used to fix the problem of remap a set of registers repeatedly in current mbigen driver. Changes in v3: --- Change the log to make more detail description about the IO remap problem. Changes in v2: --- Change the mbigen device node definition as Mark sugge

[PATCH v3 1/2] irqchip/mbigen:Change the mbigen node definition in dt binding file

2016-03-19 Thread MaJun
From: Ma Jun For mbigen module, there is a special case that more than one mbigen device nodes use the same reg definition in DTS when these devices exist in the same mbigen hardware module. In current mbigen driver, these mbigen devices definition as below: mbigen_dev1:intc_dev1 { ...

[PATCH] Irq/mbigen:Promote the mbigen driver register timing

2016-02-22 Thread MaJun
From: Ma Jun Using module_platform_driver() to register mbigen driver is too late for some driver to apply irq, because the mbigen irq domain is not created yet. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --g

[PATCH 1/5] dt-binding: Change the mbigen binding file to support the mbigen-v1

2016-02-13 Thread MaJun
From: Ma Jun Add the "hisilicon,mbigen-v1" string in binding file. Signed-off-by: Ma Jun --- .../interrupt-controller/hisilicon,mbigen-v2.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/hisilicon,mbigen-v2.t

[PATCH 3/5] irqchip: add platform device driver for mbigen device

2016-02-13 Thread MaJun
From: Ma Jun Add the platform device driver for mbigen chip v1. This patch just same as mbigen v2. Signed-off-by: Ma Jun --- drivers/irqchip/Makefile|2 +- drivers/irqchip/irq-mbigen-v1.c | 76 +++ 2 files changed, 77 insertions(+), 1 deletions

[PATCH 4/5] irqchip:create irq domain for each mbigen device

2016-02-13 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen-v1.c | 144 +++

[PATCH 2/5] dt-binding:Rename the mbigen binding file name

2016-02-13 Thread MaJun
From: Ma Jun Because added the mbigen-v1 compatible string, the origin name is not suitable any more. So,I remove the version number from file name. Signed-off-by: Ma Jun --- .../interrupt-controller/hisilicon,mbigen-v2.txt | 74 .../interrupt-controller/hisilicon,mbig

[PATCH 5/5] irqchip:implement the mbigen irq chip operation functions

2016-02-13 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen-v1.c | 75 +++ 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/drivers/irqchip/irq-mbigen-v1.c b/drivers

[PATCH 0/5] irqchip: Add support for Hisilicon mbigen v1 chip

2016-02-13 Thread MaJun
From: Ma Jun This patch set is used to support the mbigen v1 chip. Compared to mbigen v2 chip, the main difference between them is register layout(address,format) As a sequence of this difference, the functions used to get or calculate register address are also changed for this reason. I posted

[PATCH] Change the spin_lock/unlock_irq interface in proc_alloc_inum() function

2016-03-01 Thread MaJun
From: Ma Jun The spin_lock/unlock_irq interface is not safe when this function is called at some case which need irq disabled. For example: spin_lock_irqsave() | request_irq() --> proc_alloc_inum() | spin_unlock_irqrestore() Reported-by: Fan Jinke Signed

[PATCH] IRQ/Platform-MSI:Increase the maximum MSIs the MSI framework can support.

2015-12-20 Thread MaJun
From: Ma Jun The current MSI framework can only support 256 platform MSIs. But on Hisilicon platform, some network related devices has about 500 wired interrupts. To support these devices, we need a new maximum value more than 256. Signed-off-by: Ma Jun --- drivers/base/platform-msi.c |2

[PATCH v2] Irq/Platform-MSI:Increase the maximum MSIs the MSI framework can support.

2015-12-21 Thread MaJun
From: Ma Jun The current MSI framework can only support 256 platform MSIs. But on Hisilicon platform, some network related devices has about 500 wired interrupts. To support these devices and align with MSI-X, this value is changed to 2048. Signed-off-by: Ma Jun --- drivers/base/platform-msi

[PATCH] irqchip/mbigen: Fix the clear register offset

2017-04-24 Thread Majun
From: MaJun Don't minus reserved interrupts (64) when get the clear register offset,because the clear register space includes the space of these 64 interrupts. Signed-off-by: MaJun --- drivers/irqchip/irq-mbigen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-mbi

[PATCH] irqchip/gicv3-its: skip irq affinity setting when target cpu is the same as current setting

2017-05-18 Thread Majun
From: MaJun Just skip the irq affinity setting when the target cpu is the same as current setting. This is a small optimization for irq affinity setting logic. Signed-off-by: MaJun --- drivers/irqchip/irq-gic-v3-its.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] generic: Add the exception case checking routine for ppi interrupt

2016-08-30 Thread majun (F)
Hi Marc & Mark: 在 2016/8/30 19:21, Mark Rutland 写道: > On Tue, Aug 30, 2016 at 12:07:36PM +0100, Marc Zyngier wrote: >> +Mark >> On 30/08/16 11:35, majun (F) wrote: >>> 在 2016/8/30 16:50, Marc Zyngier 写道: >>>> On 30/08/16 05:17, MaJun wrote: >>>&

Re: [PATCH] generic: Add the exception case checking routine for ppi interrupt

2016-09-01 Thread majun (F)
在 2016/8/31 16:35, Marc Zyngier 写道: > On 31/08/16 07:35, majun (F) wrote: [...] >>> >> >> I just checked the status of irq 30 during capture kernel booting. >> >> The irq 30 status is: mask, pending after arch_timer_starting_cpu() called. >> Because i

Re: [PATCH v4 1/2] Add the driver of mbigen interrupt controller

2015-08-31 Thread majun (F)
Hi Alexey: 在 2015/8/29 11:13, Alexey Klimov 写道: > Hi Ma Jun, > > On Wed, Aug 19, 2015 at 5:55 AM, MaJun wrote: >> From: Ma Jun >> >> Mbigen means Message Based Interrupt Generator(MBIGEN). >> >> Its a kind of interrupt controller that collects >>

Re: [PATCH v5 1/3] initialize each mbigen device node as a interrupt controller.

2015-10-12 Thread majun (F)
Hi Thomas: 在 2015/10/12 0:45, Thomas Gleixner 写道: > On Sun, 11 Oct 2015, Marc Zyngier wrote: >> On Sun, 11 Oct 2015 11:54:49 +0200 >> Thomas Gleixner wrote: >> >>> On Sat, 10 Oct 2015, Marc Zyngier wrote: >>>> On Sat, 10 Oct 2015 17:01:32 +0800 >

Re: [PATCH v5 1/3] initialize each mbigen device node as a interrupt controller.

2015-10-14 Thread majun (F)
Hi Thomas: 在 2015/10/13 14:55, Thomas Gleixner 写道: > Majun, > > On Tue, 13 Oct 2015, majun (F) wrote: >> 在 2015/10/12 0:45, Thomas Gleixner 写道: >>> So now in the mbigen case this looks like this: >>> >>> [MSI-BUS] - [MBIGEN]<--

Re: [PATCH v5 1/3] initialize each mbigen device node as a interrupt controller.

2015-10-14 Thread majun (F)
在 2015/10/14 16:20, Thomas Gleixner 写道: > On Wed, 14 Oct 2015, majun (F) wrote: >> But there is no interrupt-map property in GIC or mbigen node. > > Again: I'm not a DT expert. Please discuss that with Marc and the DT > wizards. > > Thanks, > >

Re: [PATCH v4 1/2] Add the driver of mbigen interrupt controller

2015-09-06 Thread majun (F)
Hi Alexey: 在 2015/9/4 8:56, Alexey Klimov 写道: > Hi Ma Jun, > > On Tue, Sep 1, 2015 at 4:45 AM, majun (F) wrote: >> Hi Alexey: >> [...] >>>> + mgn_chip->base = base; >>>> + mgn_chip->node = node; >>>> + >>>&

Re: [PATCH RESEND v6 3/4] irqchip:create irq domain for each mbigen device

2015-10-20 Thread majun (F)
在 2015/10/21 2:43, kbuild test robot 写道: > Hi Ma, > > [auto build test ERROR on tip/irq/core -- if it's inappropriate base, please > suggest rules for selecting the more suitable base] > > url: > https://github.com/0day-ci/linux/commits/MaJun/irqchip-support-m

Re: [PATCH v6 2/4] irqchip: add platform device driver for mbigen device

2015-10-20 Thread majun (F)
Sorry, I missed Makefile and Kconfig file in this patch. I will re-send this patch set. 在 2015/10/20 16:41, MaJun 写道: > From: Ma Jun > > Mbigen means Message Based Interrupt Generator(MBIGEN). > > Its a kind of interrupt controller that collects > the interrupts from ex

Re: [PATCH v5 1/3] initialize each mbigen device node as a interrupt controller.

2015-10-04 Thread majun (F)
Hi Thomas: 在 2015/10/1 5:37, Thomas Gleixner 写道: > On Wed, 30 Sep 2015, MaJun wrote: > > First of all. > > [PATCH v5 1/3] initialize each mbigen device node as a interrupt controller > > is not a proper subject line, but that's the least of your problems. >

Re: [PATCH v2 0/3] irqchip/mbigen: bugfixs

2017-05-11 Thread majun (Euler7)
Hi Hanjun, This patchset is fine to me and make my D05 machine work again.So, Tested-by: MaJun Thanks Majun 在 2017/5/12 11:55, Hanjun Guo 写道: > From: Hanjun Guo > > Here are 3 bugfixes for mbigen: > > Patch 1 is a critical bugfix which to fix the mbigen probe fa

Re: [PATCH v2 2/3] IRQ/Gic-V3: Change arm-gic-its to support the Mbigen interrupt

2015-06-15 Thread majun (F)
在 2015/6/12 18:48, Thomas Gleixner 写道: > On Fri, 12 Jun 2015, Ma Jun wrote: > >> This patch is applied to support the mbigen interrupt. >> >> As a kind of MSI interrupt controller, the mbigen is used as a child >> domain of ITS domain just like PCI devices. >> So the arm-gic-v3-its and related

Re: [PATCH v2 2/3] IRQ/Gic-V3: Change arm-gic-its to support the Mbigen interrupt

2015-06-23 Thread majun (F)
在 2015/6/19 7:52, Thomas Gleixner 写道: > On Mon, 15 Jun 2015, majun (F) wrote: >> 在 2015/6/12 18:48, Thomas Gleixner 写道: >>> Can you please provide a proper description of this mbigen chip and >>> explain WHY you think that it needs all this special hackery? > >

Re: [PATCH 3/4]: Change arm-gic-its to support the Mbigen interrupt

2015-06-02 Thread majun (F)
Hi Marc: Thanks for your review. Accroding to my initial scheme, mbigen and pci devices uses the same parent domain--MSI domain. But accroding to your opinion, it seems use the ITS domain as parent domain of Mbigne is a better way. Am i right ? Thanks Ma Jun 在 2015/6/1 17:13, Marc Zyng

Re: [PATCH 4/4]:dt-binding:Documents the mbigen bindings

2015-06-02 Thread majun (F)
在 2015/6/1 18:04, Mark Rutland 写道: > On Sat, May 30, 2015 at 04:19:18AM +0100, majun (F) wrote: >> Add the mbigen msi interrupt controller bindings document >> >> >> Signed-off-by: Ma Jun >> --- >> Documentation/devicetree/bindings/arm/mbigen.txt | 51

[PATCH 1/4]:Add mbigen driver to support mbigen interrupt controller

2015-05-29 Thread majun (F)
This patch contains the mbigen device driver. To support Mbigen device, irq-mbigen.c and mbi.h are added. As a MSI interrupt controller, the mbigen is used as a child domain of MSI domain just like PCI devices. Change log: --irq-mbigen.c: the driver of mbigen device.The mbigen irq domain is crea

[PATCH 0/4] Cover: Support mbigen msi interrupt controller

2015-05-29 Thread majun (F)
This patch set is applied to supprot the mbigen device. Mbigen means message based interrupt generator. It locate in ITS or out side of ITS. In fact, mbigen is a kind of interrupt controller collects the irq form Non-PCI devices and generate msi interrupt. Hisilicon designed mbigen to reduce the

[PATCH 2/4]: Change msi to support the Mbigen interrupt

2015-05-29 Thread majun (F)
This patch is applied to support the interrupts from Mbigen. As a interrupt controller, Mbigen is used as a child domain of MSI domain just like pci device. Change log: --add IRQ_DOMAIN_FLAG_MBIGEN to presents the interrupt from mbigen --add function is_mbigen_domain to check the interrupt domain

[PATCH 3/4]: Change arm-gic-its to support the Mbigen interrupt

2015-05-29 Thread majun (F)
This patch is applied to support the mbigen interrupt. Change log: --For irq_mbigen.c using,move some struct and function definition to a new head file arm-gic-its.h --Add a irq_write_mbi_msg member for mbi interrupt using --For mbi interrupt, the event id depends on the Hardware pin number on m

[PATCH 4/4]:dt-binding:Documents the mbigen bindings

2015-05-29 Thread majun (F)
Add the mbigen msi interrupt controller bindings document Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 51 ++ 1 files changed, 51 insertions(+), 0 deletions(-) create mode 100755 Documentation/devicetree/bindings/arm/mbigen.txt diff --git

Re: [PATCH 1/4]:Add mbigen driver to support mbigen interrupt controller

2015-05-29 Thread majun (F)
Hi Joe Perches: Thanks for you advice. I will fixed it in next version 在 2015/5/30 13:38, Joe Perches 写道: > On Sat, 2015-05-30 at 11:19 +0800, majun (F) wrote: >> This patch contains the mbigen device driver. > > Trivial notes: > > Please use scripts/checkpatch.p

Re: [PATCH v3 1/3] IRQ/Gic-V3: Add mbigen driver to support mbigen interrupt controller

2015-07-07 Thread majun (F)
Hi Thomas: 在 2015/7/6 20:33, Thomas Gleixner 写道: > On Mon, 6 Jul 2015, Ma Jun wrote: > >> +/** >> + * get_mbigen_node_type: get the mbigen node type >> + * @nid: the mbigen node value >> + * return 0: evnent id of interrupt connected to this node can be changed. >> + * return 1: evnent id of int

  1   2   >