From: Thomas Gleixner <tglx@kernel.org>
To: Ryan Chen <ryan_chen@aspeedtech.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@codeconstruct.com.au>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-riscv@lists.infradead.org,
Ryan Chen <ryan_chen@aspeedtech.com>
Subject: Re: [PATCH v4 2/4] irqchip/ast2700-intc: Add AST2700-A2 support
Date: Tue, 31 Mar 2026 18:10:08 +0200 [thread overview]
Message-ID: <87tstw7zfj.ffs@tglx> (raw)
In-Reply-To: <20260330-irqchip-v4-2-3c0f1620cc06@aspeedtech.com>
On Mon, Mar 30 2026 at 14:32, Ryan Chen wrote:
> +static int resolve_parent_range_for_output(const struct aspeed_intc0 *intc0,
> + const struct fwnode_handle *parent,
> + u32 output,
> + struct aspeed_intc_interrupt_range *resolved)
Please reduce the number of line breaks. You still have 100 characters.
> +{
> + for (size_t i = 0; i < intc0->ranges.nranges; i++) {
> + struct aspeed_intc_interrupt_range range =
> + intc0->ranges.ranges[i];
No line break required.
> +static int aspeed_intc1_irq_domain_activate(struct irq_domain *domain,
> + struct irq_data *data, bool reserve)
> +{
> + struct aspeed_intc1 *intc1 = irq_data_get_irq_chip_data(data);
> + struct aspeed_intc_interrupt_range resolved;
> + int rc, bank, bit;
> + u32 mask;
> +
> + if (WARN_ON_ONCE((data->hwirq >> INTC1_ROUTE_SHIFT) >= ARRAY_SIZE(aspeed_intc1_routes)))
> + return -EINVAL;
> +
> + /*
> + * outpin may be an error if the upstream is the BootMCU APLIC node, or
> + * anything except a valid intc0 driver instance
> + */
> + rc = aspeed_intc0_resolve_route(intc1->upstream, INTC1_ROUTE_NUM,
> + aspeed_intc1_routes[data->hwirq >> INTC1_ROUTE_SHIFT],
> + intc1->ranges.nranges,
> + intc1->ranges.ranges, &resolved);
Please test your code with CONFIG_PROVE_LOCKING=y, which is mandatory
for submission according to documentation.
This is invoked with the interrupt descriptor lock held and interrupts
disabled.
aspeed_intc0_resolve_route()
....
irq_find_matching_fwspec()
mutex_lock(&irq_domain_mutex); <---- FAIL
Thanks,
tglx
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Gleixner <tglx@kernel.org>
To: Ryan Chen <ryan_chen@aspeedtech.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@codeconstruct.com.au>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-riscv@lists.infradead.org,
Ryan Chen <ryan_chen@aspeedtech.com>
Subject: Re: [PATCH v4 2/4] irqchip/ast2700-intc: Add AST2700-A2 support
Date: Tue, 31 Mar 2026 18:10:08 +0200 [thread overview]
Message-ID: <87tstw7zfj.ffs@tglx> (raw)
In-Reply-To: <20260330-irqchip-v4-2-3c0f1620cc06@aspeedtech.com>
On Mon, Mar 30 2026 at 14:32, Ryan Chen wrote:
> +static int resolve_parent_range_for_output(const struct aspeed_intc0 *intc0,
> + const struct fwnode_handle *parent,
> + u32 output,
> + struct aspeed_intc_interrupt_range *resolved)
Please reduce the number of line breaks. You still have 100 characters.
> +{
> + for (size_t i = 0; i < intc0->ranges.nranges; i++) {
> + struct aspeed_intc_interrupt_range range =
> + intc0->ranges.ranges[i];
No line break required.
> +static int aspeed_intc1_irq_domain_activate(struct irq_domain *domain,
> + struct irq_data *data, bool reserve)
> +{
> + struct aspeed_intc1 *intc1 = irq_data_get_irq_chip_data(data);
> + struct aspeed_intc_interrupt_range resolved;
> + int rc, bank, bit;
> + u32 mask;
> +
> + if (WARN_ON_ONCE((data->hwirq >> INTC1_ROUTE_SHIFT) >= ARRAY_SIZE(aspeed_intc1_routes)))
> + return -EINVAL;
> +
> + /*
> + * outpin may be an error if the upstream is the BootMCU APLIC node, or
> + * anything except a valid intc0 driver instance
> + */
> + rc = aspeed_intc0_resolve_route(intc1->upstream, INTC1_ROUTE_NUM,
> + aspeed_intc1_routes[data->hwirq >> INTC1_ROUTE_SHIFT],
> + intc1->ranges.nranges,
> + intc1->ranges.ranges, &resolved);
Please test your code with CONFIG_PROVE_LOCKING=y, which is mandatory
for submission according to documentation.
This is invoked with the interrupt descriptor lock held and interrupts
disabled.
aspeed_intc0_resolve_route()
....
irq_find_matching_fwspec()
mutex_lock(&irq_domain_mutex); <---- FAIL
Thanks,
tglx
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-03-31 23:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 6:32 [PATCH v4 0/4] AST2700-A2 interrupt controller hierarchy and route support Ryan Chen
2026-03-30 6:32 ` Ryan Chen
2026-03-30 6:32 ` [PATCH v4 1/4] dt-bindings: interrupt-controller: Describe AST2700-A2 hardware instead of A0 Ryan Chen
2026-03-30 6:32 ` Ryan Chen
2026-03-30 6:32 ` [PATCH v4 2/4] irqchip/ast2700-intc: Add AST2700-A2 support Ryan Chen
2026-03-30 6:32 ` Ryan Chen
2026-03-31 16:10 ` Thomas Gleixner [this message]
2026-03-31 16:10 ` Thomas Gleixner
2026-04-01 6:49 ` Ryan Chen
2026-04-01 6:49 ` Ryan Chen
2026-03-30 6:32 ` [PATCH v4 3/4] irqchip/ast2700-intc: Add KUnit tests for route resolution Ryan Chen
2026-03-30 6:32 ` Ryan Chen
2026-03-30 6:32 ` [PATCH v4 4/4] irqchip/aspeed-intc: Remove AST2700-A0 support Ryan Chen
2026-03-30 6:32 ` Ryan Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tstw7zfj.ffs@tglx \
--to=tglx@kernel.org \
--cc=alex@ghiti.fr \
--cc=andrew@codeconstruct.com.au \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=ryan_chen@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.