Add support for AST2700 INTC driver
Subsystems (3)
cover Add support for AST2700 INTC driver
Introduce to the AST27XX INTC modules, which contain two conponents in CPU die(12nm) and IO die(40mm) comunicating by SLI or LTPI protocol.
There are lots of device in IO die, which need to be serviced in requested interrupt handler. As two die ICs, combine 32 interrupt source in IO die into 1 interrupt in CPU die.
soc0_intc11 represent CPU die INTC, which each bit mapping to soc1_intcX. soc1_intcX represent IO die INTC, which combines 32 interrupt sources.
Kevin Chen (2):
dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC irqchip/aspeed-intc: Add support for 10 INTC interrupts on AST27XX
platforms
.../aspeed,ast2700-intc.yaml | 120 +++++++++++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-aspeed-intc.c | 198 ++++++++++++++++++ 3 files changed, 319 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml create mode 100644 drivers/irqchip/irq-aspeed-intc.c
Signature · 1 line
2.34.1
v2 cover Add support for AST2700 INTC
Support for the Aspeed Interrupt Controller found on Aspeed 7th Geration Silicon SoCs.
ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX devices to an parent interrupt controller.
Changes since v2:
Combine the aspeed_intc_ic_of_init and aspeed_intc_ic_of_init_v2. Switch raw_spin_lock_irqsave to scoped_guard and guard. Fix the error of make dt_binding_check.
Refine the aspeed,ast2700-intc.yaml.
Kevin Chen (2):
dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC irqchip/aspeed-intc: Add support for AST27XX INTC
.../aspeed,ast2700-intc.yaml | 71 +++++++++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-aspeed-intc.c | 137 ++++++++++++++++++ 3 files changed, 209 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml create mode 100644 drivers/irqchip/irq-aspeed-intc.c
Signature · 1 line
2.34.1
Re: [PATCH v2 0/2] Add support for AST2700 INTC
Quoted 11 lines · Kevin Chen
Support for the Aspeed Interrupt Controller found on Aspeed 7th Geration Silicon SoCs.
ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX devices to an parent interrupt controller.
Changes since v2:
Combine theaspeed_intc_ic_of_initandaspeed_intc_ic_of_init_v2. Switchraw_spin_lock_irqsavetoscoped_guardand guard. Fix the error of makedt_binding_check.
Refine the aspeed,ast2700-intc.yaml.
It seems that entire Aspeed has troubles working with people in the community. You do not address feedback, you ignore it and asks us to re-review the same crap.
Before we proceed further:
1. Answer, inline, without confidentiality notice (after asking you this 5 times, I think you should fix it finally) that you:
- agree (ack/ok/agree)
- disagree with explanation why
2. Then double check that your new version implements everything above.
3. Then send new version (max once per 24h) with changelog and versioning (just use b4).
If you keep ignoring step 1 and 2, you will annoy reviewers up to the point of automatic NAK or being ignored.
Best regards,
Krzysztof
回覆: [PATCH v2 0/2] Add support for AST2700 INTC
Hi Krzk,
Quoted 12 lines
Quoted 11 lines
Support for the Aspeed Interrupt Controller found on Aspeed 7th Geration Silicon SoCs.
ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX devices to an parent interrupt controller.
Changes since v2:
Combine theaspeed_intc_ic_of_initandaspeed_intc_ic_of_init_v2. Switchraw_spin_lock_irqsavetoscoped_guardand guard. Fix the error of makedt_binding_check.
Refine the aspeed,ast2700-intc.yaml.
Quoted 3 lines
It seems that entire Aspeed has troubles working with people in the community. You do not address feedback, you ignore it and asks us to re-review the same crap.
Sorry.
Quoted 5 lines
Before we proceed further:
1. Answer, inline, without confidentiality notice (after asking you this 5 times, I think you should fix it finally) that you:
- agree (ack/ok/agree)
- disagree with explanation why
Agree, I will reply all previous feedbacks. Sorry to bother you for previous new patches wihout feedback.
Quoted 1 line
2. Then double check that your new version implements everything above.
Agree
Quoted 2 lines
3. Then send new version (max once per 24h) with changelog and versioning (just use
b4).
I will try to use b4, but I need to check the usage with our ASPEED MIS. I studied the b4 as the following:
# first patches b4 prep -n ast27xx-intc b4 send -o /tmp/tosend b4 prep --auto-to-cc b4 prep --edit-cover b4 send -o /tmp/tosend ./scripts/checkpatch.pl /tmp/tosend/xxx.patch b4 send --reflect b4 send --web-auth-new b4 send --web-auth-verify xxx b4 send # new patches b4 prep --edit-cover b4 send v2
Quoted 2 lines
If you keep ignoring step 1 and 2, you will annoy reviewers up to the point of automatic NAK or being ignored.
I will follow the rules. Thanks for your kind reminder.
--
Best Regards,
Kevin. Chen
________________________________
???: Krzysztof Kozlowski <[email protected]>
????: 2024?8?14? ?? 11:14
???: Kevin Chen <[email protected]>; tglx at linutronix.de <[email protected]>; robh at kernel.org <[email protected]>; krzk+dt at kernel.org <[email protected]>; conor+dt at kernel.org <[email protected]>; joel at jms.id.au <[email protected]>; andrew at codeconstruct.com.au <[email protected]>; linux-kernel at vger.kernel.org <[email protected]>; devicetree at vger.kernel.org <[email protected]>; linux-arm-kernel at lists.infradead.org <[email protected]>; linux-aspeed at lists.ozlabs.org <[email protected]> ??: Re: [PATCH v2 0/2] Add support for AST2700 INTC
Quoted 11 lines · Kevin Chen
Support for the Aspeed Interrupt Controller found on Aspeed 7th Geration Silicon SoCs.
ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX devices to an parent interrupt controller.
Changes since v2:
Combine theaspeed_intc_ic_of_initandaspeed_intc_ic_of_init_v2. Switchraw_spin_lock_irqsavetoscoped_guardand guard. Fix the error of makedt_binding_check.
Refine the aspeed,ast2700-intc.yaml.
It seems that entire Aspeed has troubles working with people in the community. You do not address feedback, you ignore it and asks us to re-review the same crap.
Before we proceed further:
1. Answer, inline, without confidentiality notice (after asking you this 5 times, I think you should fix it finally) that you:
- agree (ack/ok/agree)
- disagree with explanation why
2. Then double check that your new version implements everything above.
3. Then send new version (max once per 24h) with changelog and versioning (just use b4).
If you keep ignoring step 1 and 2, you will annoy reviewers up to the point of automatic NAK or being ignored.
Best regards,
Krzysztof
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20240815/c7edeaa0/attachment-0001.htm>
PATCH v2 1/2 dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC
In reply to Kevin ChenThe ASPEED AST27XX interrupt controller(INTC) contain second level and third level interrupt controller. The third level INTC combines 32 interrupt sources into 1 interrupt into parent interrupt controller. The second level INTC doing hand shake with third level INTC.
--- .../aspeed,ast2700-intc.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +71 -0
@@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed AST2700 Interrupt Controller + +description: + This interrupt controller hardware is second level interrupt controller that + is hooked to a parent interrupt controller. It's useful to combine multiple + interrupt sources into 1 interrupt to parent interrupt controller. + +maintainers: + - Kevin Chen <[email protected]> + +properties: + compatible: + enum: + - aspeed,ast2700-intc-ic + + reg: + minItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + interrupts: + minItems: 1 + maxItems: 10 + description: + It contains two types of interrupt controller. The first type is multiple + interrupt sources into parent interrupt controller. The second type is + 1 interrupt source to parent interrupt controller. + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + bus { + #address-cells = <2>; + #size-cells = <2>; + + interrupt-controller at 12101b00 { + compatible = "aspeed,ast2700-intc-ic"; + reg = <0 0x12101b00 0 0x10>; + #interrupt-cells = <2>; + interrupt-controller; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + }; + };
Signature · 1 line
2.34.1
Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC
Quoted 6 lines · Kevin Chen
The ASPEED AST27XX interrupt controller(INTC) contain second level and third level interrupt controller. The third level INTC combines 32 interrupt sources into 1 interrupt into parent interrupt controller. The second level INTC doing hand shake with third level INTC.
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +10
-0+maintainers: + - Kevin Chen <[email protected]> + +properties: + compatible: + enum: + - aspeed,ast2700-intc-ic + + reg: + minItems: 1
That's unconstrained. Instead: maxItems: 1
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml line 36
Quoted 13 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +13
-0+ + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + interrupts: + minItems: 1 + maxItems: 10 + description: + It contains two types of interrupt controller. The first type is multiple + interrupt sources into parent interrupt controller. The second type is + 1 interrupt source to parent interrupt controller.
I think I asked already - list the items with description.
Why the number is flexible?
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +10
-0+ +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + - interrupts + +additionalProperties: false +
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml line 56
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +10
-0+examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + bus { + #address-cells = <2>; + #size-cells = <2>; + + interrupt-controller at 12101b00 { + compatible = "aspeed,ast2700-intc-ic";
Messed indentation.
Best regards,
Krzysztof
RE: [PATCH v2 1/2] dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC
Quoted 6 lines
Quoted 4 lines
The ASPEED AST27XX interrupt controller(INTC) contain second level and third level interrupt controller. The third level INTC combines 32 interrupt sources into 1 interrupt into parent interrupt controller. The second level INTC doing hand shake with third level INTC.
Quoted 12 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +10
-0+maintainers: + - Kevin Chen <[email protected]> + +properties: + compatible: + enum: + - aspeed,ast2700-intc-ic + + reg: + minItems: 1That's unconstrained. Instead: maxItems: 1
Agree.
Quoted 17 lines
Quoted 4 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +3
-0+ + interrupt-controller: true +Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +10
-0+ '#interrupt-cells': + const: 2 + + interrupts: + minItems: 1 + maxItems: 10 + description: + It contains two types of interrupt controller. The first type is multiple + interrupt sources into parent interrupt controller. The second type is + 1 interrupt source to parent interrupt controller.I think I asked already - list the items with description.
Quoted 1 line
Why the number is flexible?
Depend to which INTC0 or INTC1 used.
INTC0 and INTC1 are two kinds of interrupt controller with enable and raw status registers for use.
INTC0 is used to assert GIC(#192~#197) if interrupt in INTC1 asserted. There are 6 GIC interrupt number(#192~#197) used in one INTC0. INTC1 is used to assert INTC0 if interrupt of modules asserted. There are 32 module interrupts used in one INTC1.
Quoted 15 lines
Quoted 15 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +14
-0+ +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> +
Quoted 8 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml line 56
Quoted 6 lines
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml new file +6
-0+ bus { + #address-cells = <2>; + #size-cells = <2>; + + interrupt-controller at 12101b00 { + compatible = "aspeed,ast2700-intc-ic";Messed indentation.
Agree. Would change to the following.
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
interrupt-controller at 12101b00 {
compatible = "aspeed,ast2700-intc-ic";
reg = <0 0x12101b00 0 0x10>;
#interrupt-cells = <2>;
interrupt-controller;
interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
};
};Quoted 3 lines
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH v2 1/2] dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC
In reply to Kevin ChenQuoted 4 lines · Kevin Chen
The ASPEED AST27XX interrupt controller(INTC) contain second level and third level interrupt controller. The third level INTC combines 32 interrupt sources into 1 interrupt into parent interrupt controller. The second level INTC doing hand shake with third level INTC.
Missing Signed-off-by. checkpatch.pl also reports trailing whitespace.
PATCH v2 2/2 irqchip/aspeed-intc: Add support for AST27XX INTC
In reply to Kevin ChenSupport for the Aspeed Interrupt Controller found on Aspeed Silicon SoCs, such as the AST2700, which is arm64 architecture.
To support ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX device to an parent interrupt controller.
--- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-aspeed-intc.c | 137 ++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 drivers/irqchip/irq-aspeed-intc.c
drivers/irqchip/Makefile +1 -0
@@ -84,6 +84,7 @@ obj-$(CONFIG_MVEBU_SEI) += irq-mvebu-sei.o obj-$(CONFIG_LS_EXTIRQ) += irq-ls-extirq.o obj-$(CONFIG_LS_SCFG_MSI) += irq-ls-scfg-msi.o obj-$(CONFIG_ARCH_ASPEED) += irq-aspeed-vic.o irq-aspeed-i2c-ic.o irq-aspeed-scu-ic.o +obj-$(CONFIG_ASPEED_G7_INTC) += irq-aspeed-intc.o obj-$(CONFIG_STM32MP_EXTI) += irq-stm32mp-exti.o obj-$(CONFIG_STM32_EXTI) += irq-stm32-exti.o obj-$(CONFIG_QCOM_IRQ_COMBINER) += qcom-irq-combiner.o
drivers/irqchip/irq-aspeed-intc.c new file +137 -0
137 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v2 2/2] irqchip/aspeed-intc: Add support for AST27XX INTC
Quoted 16 lines · Kevin Chen
Support for the Aspeed Interrupt Controller found on Aspeed Silicon SoCs, such as the AST2700, which is arm64 architecture.
To support ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX device to an parent interrupt controller.
--- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-aspeed-intc.c | 137 ++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 drivers/irqchip/irq-aspeed-intc.cdrivers/irqchip/Makefile +0
-0
drivers/irqchip/Makefile obj-$(CONFIG_MVEBU_SEI) += irq-mvebu-sei.o · line 87
Quoted 4 lines
drivers/irqchip/Makefile +1
-0@@ -84,6 +84,7 @@ obj-$(CONFIG_MVEBU_SEI) += irq-mvebu-sei.o obj-$(CONFIG_LS_EXTIRQ) += irq-ls-extirq.o obj-$(CONFIG_LS_SCFG_MSI) += irq-ls-scfg-msi.o obj-$(CONFIG_ARCH_ASPEED) += irq-aspeed-vic.o irq-aspeed-i2c-ic.o irq-aspeed-scu-ic.o +obj-$(CONFIG_ASPEED_G7_INTC) += irq-aspeed-intc.o
There is no such config symbol.
You already got this exact comment. Replacing one broken code with other broken code is not the solution.
Best regards,
Krzysztof
RE: [PATCH v2 2/2] irqchip/aspeed-intc: Add support for AST27XX INTC
Quoted 18 lines
drivers/irqchip/Makefile obj-$(CONFIG_MVEBU_SEI) +=
Quoted 17 lines
Support for the Aspeed Interrupt Controller found on Aspeed Silicon SoCs, such as the AST2700, which is arm64 architecture.
To support ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX device to an parent interrupt controller.
--- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-aspeed-intc.c | 137 ++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 drivers/irqchip/irq-aspeed-intc.cdrivers/irqchip/Makefile index renamed from drivers/irqchip/Makefile +0
-0
15635812b2d6..5da3f2f4eede100644drivers/irqchip/Makefile +0
-0@@ -84,6 +84,7 @@ obj-$(CONFIG_MVEBU_SEI) +=irq-mvebu-sei.o
Quoted 8 lines
drivers/irqchip/Makefile obj-$(CONFIG_MVEBU_SEI) += irq-mvebu-sei.o
Quoted 3 lines
drivers/irqchip/Makefile +0
-0obj-$(CONFIG_LS_EXTIRQ) += irq-ls-extirq.o obj-$(CONFIG_LS_SCFG_MSI) += irq-ls-scfg-msi.o obj-$(CONFIG_ARCH_ASPEED) += irq-aspeed-vic.o irq-aspeed-i2c-ic.oirq-aspeed-scu-ic.o
drivers/irqchip/Makefile obj-$(CONFIG_MVEBU_SEI) += irq-mvebu-sei.o · line 87
Quoted 1 line
drivers/irqchip/Makefile +1
-0+obj-$(CONFIG_ASPEED_G7_INTC) += irq-aspeed-intc.oThere is no such config symbol.
Agree, I will use CONFIG_ARCH_ASPEED as the following.
obj-$(CONFIG_ARCH_ASPEED) += irq-aspeed-intc.o
Quoted 7 lines
You already got this exact comment. Replacing one broken code with other broken code is not the solution.
Best regards,
Krzysztof
Re: [PATCH v2 2/2] irqchip/aspeed-intc: Add support for AST27XX INTC
In reply to Kevin ChenQuoted 5 lines · Kevin Chen
Support for the Aspeed Interrupt Controller found on Aspeed Silicon SoCs, such as the AST2700, which is arm64 architecture.
To support ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX device to an parent interrupt controller.
This still lacks a Signed-off-by: tag and my comment about the error path in the init function is still valid.
Do you think that addressing review feedback is optional?
Feel free to ignore it, but don't be surprised if I ignore further patches from you.
Take your time and go through stuff properly and do not rush out half baked patches in a frenzy.
Thanks,
tglx
Re: [PATCH v2 2/2] irqchip/aspeed-intc: Add support for AST27XX INTC
Quoted 10 lines · Thomas Gleixner
Quoted 5 lines · Kevin Chen
Support for the Aspeed Interrupt Controller found on Aspeed Silicon SoCs, such as the AST2700, which is arm64 architecture.
To support ASPEED interrupt controller(INTC) maps the internal interrupt sources of the AST27XX device to an parent interrupt controller.
This still lacks a Signed-off-by: tag and my comment about the error path in the init function is still valid.
Quoted 8 lines
Do you think that addressing review feedback is optional?
Feel free to ignore it, but don't be surprised if I ignore further patches from you.
Take your time and go through stuff properly and do not rush out half baked patches in a frenzy.
That's like fourth or fifth patchset for AST27xx within last week and all previous ones ignored given feedback. It's like sending almost the same stuff hoping maintainers will get bored and finally accept it.
Tricky to say, maybe this works well in corporations?
Best regards,
Krzysztof