genirq: Get rid of handle_percpu_devid_fasteoi_ipi()
Subsystems (6)
cover genirq: Get rid of handle_percpu_devid_fasteoi_ipi()
Hi folks,
While hacking on the GIC flow handlers, I grew increasingly suspicious of handle_percpu_devid_fasteoi_ipi() and thus did a bit of digging. AFAICT it isn't actually needed and handle_percpu_devid_irq() would suffice. Argumentation is in patch 1.
Tested on my Juno (GICv2) and eMAG (GICv3).
Whichever way this goes I owe Marc some pastries, given I either
- Missed something and created some noise
- Turned my brain off back when reviewing this flow handler so maybe just start with pinging me what you want...
Valentin Schneider (5):
irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq() irqchip/armada-370-xp: Make IPIs use handle_percpu_devid_irq() irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq() irqchip/hip04: Make IPIs use handle_percpu_devid_irq() Revert "genirq: Add fasteoi IPI flow"
drivers/irqchip/irq-armada-370-xp.c | 2 +- drivers/irqchip/irq-bcm2836.c | 2 +- drivers/irqchip/irq-gic-v3.c | 6 ------ drivers/irqchip/irq-gic.c | 8 +------- drivers/irqchip/irq-hip04.c | 6 +----- include/linux/irq.h | 1 - kernel/irq/chip.c | 27 --------------------------- 7 files changed, 4 insertions(+), 48 deletions(-)
--
2.27.0
PATCH 1/5 irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq()
handle_percpu_devid_fasteoi_ipi() states:
* The biggest difference with the IRQ version is that the interrupt is
* EOIed early, as the IPI could result in a context switch, and we need to
* make sure the IPI can fire again
All that can actually happen scheduler-wise within the handling of an IPI is the raising of TIF_NEED_RESCHED (and / or folding thereof into preempt_count); see scheduler_ipi() or sched_ttwu_pending() for instance.
Said flag / preempt_count is evaluated some time later before returning to whatever context was interrupted, and this gates a call to preempt_schedule_irq() (arm64_preempt_schedule_irq() in arm64).
Per the above, SGI's do not need a different handler than PPI's, so make them use the same (handle_percpu_devid_irq).
--- drivers/irqchip/irq-gic-v3.c | 6 ------ drivers/irqchip/irq-gic.c | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-)
drivers/irqchip/irq-gic-v3.c +0 -6
@@ -1302,12 +1302,6 @@ static int gic_irq_domain_map(struct irq_domain *d, unsigned int irq,switch (__get_intid_range (hw)) {case SGI_RANGE : -irq_set_percpu_devid (irq); -irq_domain_set_info (d, irq, hw, chip, d->host_data, - handle_percpu_devid_fasteoi_ipi, -NULL ,NULL ); -break ; -case PPI_RANGE :case EPPI_RANGE :irq_set_percpu_devid (irq);
drivers/irqchip/irq-gic.c +1 -7
@@ -1005,13 +1005,7 @@ static int gic_irq_domain_map(struct irq_domain *d, unsigned int irq,struct irq_data *irqd =irq_desc_get_irq_data (irq_to_desc (irq));switch (hw) { - case 0 ... 15: -irq_set_percpu_devid (irq); -irq_domain_set_info (d, irq, hw, &gic->chip, d->host_data, - handle_percpu_devid_fasteoi_ipi, -NULL ,NULL ); -break ; - case 16 ... 31: + case 0 ... 31:irq_set_percpu_devid (irq);irq_domain_set_info (d, irq, hw, &gic->chip, d->host_data, handle_percpu_devid_irq,NULL ,NULL );
Signature · 1 line
2.27.0
[irqchip: irq/irqchip-next] irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 6abbd6988971aaa607b026eaa0ffd2301352f2ea Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/6abbd6988971aaa607b026eaa0ffd2301352f2ea Author: Valentin Schneider <[email protected]> AuthorDate: Mon, 09 Nov 2020 09:41:17 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 11 Dec 2020 14:47:49
irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq()
handle_percpu_devid_fasteoi_ipi() states:
* The biggest difference with the IRQ version is that the interrupt is
* EOIed early, as the IPI could result in a context switch, and we need to
* make sure the IPI can fire again
All that can actually happen scheduler-wise within the handling of an IPI is the raising of TIF_NEED_RESCHED (and / or folding thereof into preempt_count); see scheduler_ipi() or sched_ttwu_pending() for instance.
Said flag / preempt_count is evaluated some time later before returning to whatever context was interrupted, and this gates a call to preempt_schedule_irq() (arm64_preempt_schedule_irq() in arm64).
Per the above, SGI's do not need a different handler than PPI's, so make them use the same (handle_percpu_devid_irq).
--- drivers/irqchip/irq-gic-v3.c | 6 ------ drivers/irqchip/irq-gic.c | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-)
drivers/irqchip/irq-gic-v3.c +0 -6
@@ -1302,12 +1302,6 @@ static int gic_irq_domain_map(struct irq_domain *d, unsigned int irq,switch (__get_intid_range (hw)) {case SGI_RANGE : -irq_set_percpu_devid (irq); -irq_domain_set_info (d, irq, hw, chip, d->host_data, - handle_percpu_devid_fasteoi_ipi, -NULL ,NULL ); -break ; -case PPI_RANGE :case EPPI_RANGE :irq_set_percpu_devid (irq);
drivers/irqchip/irq-gic.c +1 -7
@@ -1005,13 +1005,7 @@ static int gic_irq_domain_map(struct irq_domain *d, unsigned int irq,struct irq_data *irqd =irq_desc_get_irq_data (irq_to_desc (irq));switch (hw) { - case 0 ... 15: -irq_set_percpu_devid (irq); -irq_domain_set_info (d, irq, hw, &gic->chip, d->host_data, - handle_percpu_devid_fasteoi_ipi, -NULL ,NULL ); -break ; - case 16 ... 31: + case 0 ... 31:irq_set_percpu_devid (irq);irq_domain_set_info (d, irq, hw, &gic->chip, d->host_data, handle_percpu_devid_irq,NULL ,NULL );
PATCH 2/5 irqchip/armada-370-xp: Make IPIs use handle_percpu_devid_irq()
In reply to Valentin SchneiderAs done for the Arm GIC irqchips, move IPIs to handle_percpu_devid_irq() as handle_percpu_devid_fasteoi_ipi() isn't actually required.
--- drivers/irqchip/irq-armada-370-xp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-armada-370-xp.c +1 -1
@@ -382,7 +382,7 @@ static int armada_370_xp_ipi_alloc(struct irq_domain *d,irq_set_percpu_devid (virq + i);irq_domain_set_info (d, virq + i, i, &ipi_irqchip, d->host_data, - handle_percpu_devid_fasteoi_ipi, + handle_percpu_devid_irq,NULL ,NULL ); }
Signature · 1 line
2.27.0
[irqchip: irq/irqchip-next] irqchip/armada-370-xp: Make IPIs use handle_percpu_devid_irq()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: e52e73b7e9f7d08b8c2ef6fb1657105093e22a03 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/e52e73b7e9f7d08b8c2ef6fb1657105093e22a03 Author: Valentin Schneider <[email protected]> AuthorDate: Mon, 09 Nov 2020 09:41:18 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 11 Dec 2020 14:47:50
irqchip/armada-370-xp: Make IPIs use handle_percpu_devid_irq()
As done for the Arm GIC irqchips, move IPIs to handle_percpu_devid_irq() as handle_percpu_devid_fasteoi_ipi() isn't actually required.
--- drivers/irqchip/irq-armada-370-xp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-armada-370-xp.c +1 -1
@@ -382,7 +382,7 @@ static int armada_370_xp_ipi_alloc(struct irq_domain *d,irq_set_percpu_devid (virq + i);irq_domain_set_info (d, virq + i, i, &ipi_irqchip, d->host_data, - handle_percpu_devid_fasteoi_ipi, + handle_percpu_devid_irq,NULL ,NULL ); }
PATCH 3/5 irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
In reply to Valentin SchneiderAs done for the Arm GIC irqchips, move IPIs to handle_percpu_devid_irq() as handle_percpu_devid_fasteoi_ipi() isn't actually required.
--- drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-bcm2836.c +1 -1
@@ -209,7 +209,7 @@ static int bcm2836_arm_irqchip_ipi_alloc(struct irq_domain *d,irq_set_percpu_devid (virq + i);irq_domain_set_info (d, virq + i, i, &bcm2836_arm_irqchip_ipi, d->host_data, - handle_percpu_devid_fasteoi_ipi, + handle_percpu_devid_irq,NULL ,NULL ); }
Signature · 1 line
2.27.0
[irqchip: irq/irqchip-next] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: ffdad793d579c9286c7b67a86d1a3c890fb32082 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/ffdad793d579c9286c7b67a86d1a3c890fb32082 Author: Valentin Schneider <[email protected]> AuthorDate: Mon, 09 Nov 2020 09:41:19 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 11 Dec 2020 14:47:50
irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
As done for the Arm GIC irqchips, move IPIs to handle_percpu_devid_irq() as handle_percpu_devid_fasteoi_ipi() isn't actually required.
--- drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-bcm2836.c +1 -1
@@ -209,7 +209,7 @@ static int bcm2836_arm_irqchip_ipi_alloc(struct irq_domain *d,irq_set_percpu_devid (virq + i);irq_domain_set_info (d, virq + i, i, &bcm2836_arm_irqchip_ipi, d->host_data, - handle_percpu_devid_fasteoi_ipi, + handle_percpu_devid_irq,NULL ,NULL ); }
Re: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
In reply to Valentin SchneiderQuoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>
This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because handle_percpu_devid_fasteoi_ipi no longer exists in next-20201214, so I don't know if it is the only problem.
Guenter
---
bisect log:
# bad: [7bba37a1591369e2e506d599b8f5d7d0516b2dbc] Add linux-next specific files for 20201214
# good: [0477e92881850d44910a7e94fc2c46f96faa131f] Linux 5.10-rc7
git bisect start 'HEAD' 'v5.10-rc7'
# good: [fe5c40ab90a1f82ba97294637eaf875cfdd7a05f] Merge remote-tracking branch 'nand/nand/next'
git bisect good fe5c40ab90a1f82ba97294637eaf875cfdd7a05f
# good: [674a0d6de8bd290671f7dff405205871a70300b3] Merge remote-tracking branch 'spi/for-next'
git bisect good 674a0d6de8bd290671f7dff405205871a70300b3
# bad: [8623dae312f73a2ea3230b1c648d3004cfc224ce] Merge remote-tracking branch 'vfio/next'
git bisect bad 8623dae312f73a2ea3230b1c648d3004cfc224ce
# bad: [9e2e5ac5449f5924cc15f350b3d2feae9bb8c4c4] Merge remote-tracking branch 'workqueues/for-next' git bisect bad 9e2e5ac5449f5924cc15f350b3d2feae9bb8c4c4
# good: [e661ba4fd1c995dd2c3cf60c1858ad6b83dd8448] Merge branch 'efi/core'
git bisect good e661ba4fd1c995dd2c3cf60c1858ad6b83dd8448
# bad: [db0c509d351fe195afcfb96fc21f4d2b5dd14e4c] Merge remote-tracking branch 'ftrace/for-next'
git bisect bad db0c509d351fe195afcfb96fc21f4d2b5dd14e4c
# good: [8c91f9e7378ef03c0e67de4388d5ddb9ab9a6bf3] Merge remote-tracking branch 'clockevents/timers/drivers/next' git bisect good 8c91f9e7378ef03c0e67de4388d5ddb9ab9a6bf3
# bad: [2f5fbc4305d07725bfebaedb09e57271315691ef] irqchip/qcom-pdc: Fix phantom irq when changing between rising/falling git bisect bad 2f5fbc4305d07725bfebaedb09e57271315691ef
# good: [e52e73b7e9f7d08b8c2ef6fb1657105093e22a03] irqchip/armada-370-xp: Make IPIs use handle_percpu_devid_irq() git bisect good e52e73b7e9f7d08b8c2ef6fb1657105093e22a03
# bad: [91f90daa4fb2b77db7aa25ef2e0206f2e3962665] platform-msi: Track shared domain allocation
git bisect bad 91f90daa4fb2b77db7aa25ef2e0206f2e3962665
# bad: [b388fa50142510fb6477f130bb1b3f05a0a263a1] Revert "genirq: Add fasteoi IPI flow"
git bisect bad b388fa50142510fb6477f130bb1b3f05a0a263a1
# bad: [a2e042e13ff322ad523a2f131dd6e03e8bc05053] irqchip/hip04: Make IPIs use handle_percpu_devid_irq() git bisect bad a2e042e13ff322ad523a2f131dd6e03e8bc05053
# bad: [ffdad793d579c9286c7b67a86d1a3c890fb32082] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq() git bisect bad ffdad793d579c9286c7b67a86d1a3c890fb32082
# first bad commit: [ffdad793d579c9286c7b67a86d1a3c890fb32082] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Marc Zyngier
maintainerRe: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.
This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)
Could you try the following hack and let me know if that helps?
Thanks,
M.
drivers/irqchip/irq-bcm2836.c +2 -3
@@ -167,7 +167,7 @@ static void bcm2836_arm_irqchip_handle_ipi(struct irq_desc *desc)chained_irq_exit (chip, desc); } -static void bcm2836_arm_irqchip_ipi_eoi (struct irq_data *d) +static void bcm2836_arm_irqchip_ipi_ack (struct irq_data *d) {int cpu =smp_processor_id ();
@@ -195,7 +195,7 @@ static struct irq_chip bcm2836_arm_irqchip_ipi = { .name = "IPI", .irq_mask = bcm2836_arm_irqchip_dummy_op, .irq_unmask = bcm2836_arm_irqchip_dummy_op, - .irq_eoi = bcm2836_arm_irqchip_ipi_eoi, + .irq_ack = bcm2836_arm_irqchip_ipi_ack, .ipi_send_mask = bcm2836_arm_irqchip_ipi_send_mask, }; --
Jazz is not dead. It just smells funny...
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 15 lines · Marc Zyngier
Hi Gunter,
Quoted 11 lines · Guenter Roeck
Quoted 5 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.
Quoted 9 lines
This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)Could you try the following hack and let me know if that helps?
Thanks for looking into this. It does look like I inverted the ordering of that mailbox write vs the handling of the IPI. I don't see how the IPI could mess with the mailbox (unless some creative use of irq_work / smp_call), but in any case having the write in irq_ack() as you've done below should restore said ordering.
Quoted 27 lines
Thanks,
M.drivers/irqchip/irq-bcm2836.c +2
-2@@ -167,7 +167,7 @@ static void bcm2836_arm_irqchip_handle_ipi(struct irq_desc *desc)chained_irq_exit (chip ,desc ); } -static void bcm2836_arm_irqchip_ipi_eoi (struct irq_data *d) +static void bcm2836_arm_irqchip_ipi_ack (struct irq_data *d) {int cpu =smp_processor_id ();@@ -195,7 +195,7 @@ static struct irq_chip bcm2836_arm_irqchip_ipi = { .name = "IPI", .irq_mask = bcm2836_arm_irqchip_dummy_op, .irq_unmask = bcm2836_arm_irqchip_dummy_op, - .irq_eoi = bcm2836_arm_irqchip_ipi_eoi, + .irq_ack = bcm2836_arm_irqchip_ipi_ack, .ipi_send_mask = bcm2836_arm_irqchip_ipi_send_mask, };
Marc Zyngier
maintainerRe: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 23 lines · Valentin Schneider
Quoted 22 lines · Marc Zyngier
Hi Gunter,
Quoted 11 lines · Guenter Roeck
Quoted 5 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)
Quoted 8 lines
Quoted 2 lines
Could you try the following hack and let me know if that helps?
Thanks for looking into this. It does look like I inverted the ordering of that mailbox write vs the handling of the IPI. I don't see how the IPI could mess with the mailbox (unless some creative use of
irq_work/smp_call), but in any case having the write inirq_ack()as you've done below should restore said ordering.
This hack indeed brings us back to the previous situation, where we allowed the interrupt to be re-generated while handling the IPI.
Still, that doesn't explain why I'm not experiencing any issue here. I hope that the various CI bots will let us know if anything is broken on real HW.
M.
Signature · 6 lines
Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
In reply to Marc ZyngierHi Marc,
Quoted 14 lines · Marc Zyngier
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.
Quoted 7 lines
This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)
I used qemu 5.0 which - up to now - worked fine. Let me try with 5.1 and 5.2. Sorry, I should have tried first before bothering you.
Guenter
Quoted 20 lines
Could you try the following hack and let me know if that helps?
Thanks,
M.
drivers/irqchip/irq-bcm2836.c +1
-1@@ -167,7 +167,7 @@ static void bcm2836_arm_irqchip_handle_ipi(struct irq_desc *desc) chained_irq_exit(chip, desc); } -static void bcm2836_arm_irqchip_ipi_eoi (struct irq_data *d) +static void bcm2836_arm_irqchip_ipi_ack (struct irq_data *d) { int cpu = smp_processor_id();
drivers/irqchip/irq-bcm2836.c static struct irq_chip bcm2836_arm_irqchip_ipi = { · line 200
Quoted 7 lines
drivers/irqchip/irq-bcm2836.c +1
-1@@ -195,7 +195,7 @@ static struct irq_chip bcm2836_arm_irqchip_ipi = { .name = "IPI", .irq_mask = bcm2836_arm_irqchip_dummy_op, .irq_unmask = bcm2836_arm_irqchip_dummy_op, - .irq_eoi = bcm2836_arm_irqchip_ipi_eoi, + .irq_ack = bcm2836_arm_irqchip_ipi_ack, .ipi_send_mask = bcm2836_arm_irqchip_ipi_send_mask, };
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Marc Zyngier
maintainerRe: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 21 lines · Guenter Roeck
Hi Marc,
Quoted 18 lines · Marc Zyngier
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
Quoted 6 lines
Quoted 3 lines
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)I used qemu 5.0 which - up to now - worked fine. Let me try with 5.1 and 5.2. Sorry, I should have tried first before bothering you.
No bother at all. If this works for you on more recent versions of QEMU, that'd be an interesting data point. I'm also interested in the result of the patch either way.
Thanks,
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
Guenter Roeck
Tested-byRe: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 26 lines · Marc Zyngier
Quoted 25 lines · Guenter Roeck
Hi Marc,
Quoted 21 lines · Marc Zyngier
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)
Quoted 7 lines
Quoted 2 lines
I used qemu 5.0 which - up to now - worked fine. Let me try with 5.1 and 5.2. Sorry, I should have tried first before bothering you.
No bother at all. If this works for you on more recent versions of QEMU, that'd be an interesting data point. I'm also interested in the result of the patch either way.
It doesn't work for me with qemu 5.1, nor with qemu 5.2. My userspace is generated with buildroot, busybox-based, and very basic.
Your patch fixes the problem for me, though, so feel free to add
if/when you submit it.
Thanks,
Guenter
Marc Zyngier
maintainerRe: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 30 lines · Guenter Roeck
Quoted 29 lines · Marc Zyngier
Quoted 27 lines · Guenter Roeck
Hi Marc,
Quoted 14 lines · Marc Zyngier
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.Quoted 7 lines
This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)I used qemu 5.0 which - up to now - worked fine. Let me try with 5.1 and 5.2. Sorry, I should have tried first before bothering you.
Quoted 7 lines
Quoted 4 lines
No bother at all. If this works for you on more recent versions of QEMU, that'd be an interesting data point. I'm also interested in the result of the patch either way.
It doesn't work for me with qemu 5.1, nor with qemu 5.2. My userspace is generated with buildroot, busybox-based, and very basic.
OK, so something is definitely different between our setups. Mind pointing me to your config and your QEMU invocation?
Quoted 6 lines
Your patch fixes the problem for me, though, so feel free to add
Tested-by Guenter Roeck <[email protected]>if/when you submit it.
Thanks for that.
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
Re: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 36 lines · Marc Zyngier
Quoted 35 lines · Guenter Roeck
Quoted 33 lines · Marc Zyngier
Quoted 21 lines · Guenter Roeck
Hi Marc,
Quoted 18 lines · Marc Zyngier
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
Quoted 6 lines
Quoted 3 lines
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)I used qemu 5.0 which - up to now - worked fine. Let me try with 5.1 and 5.2. Sorry, I should have tried first before bothering you.
No bother at all. If this works for you on more recent versions of QEMU, that'd be an interesting data point. I'm also interested in the result of the patch either way.
Quoted 6 lines
Quoted 2 lines
It doesn't work for me with qemu 5.1, nor with qemu 5.2. My userspace is generated with buildroot, busybox-based, and very basic.
OK, so something is definitely different between our setups. Mind pointing me to your config and your QEMU invocation?
Configuration is multi_v7_defconfig with various additional options enabled. You'll find it attached.
qemu invocation:
qemu-system-arm -M raspi2 -kernel arch/arm/boot/zImage -no-reboot
-initrd /var/cache/buildbot/arm/rootfs-armv7a.cpio
--append "panic=-1 slub_debug=FZPUA rdinit=/sbin/init earlycon=pl011,0x3f201000 console=ttyAMA0" -dtb arch/arm/boot/dts/bcm2836-rpi-2-b.dtb -nographic -monitor null -serial stdio
initrd is from:
https://github.com/groeck/linux-build-test/blob/master/rootfs/arm/rootfs-armv7a.cpio.gz
Without your patch, boot always stalls at:
[ 10.197299] PCI: CLS 0 bytes, default 64 [ 10.210594] Trying to unpack rootfs image as initramfs... [ 10.573055] Freeing initrd memory: 3256K [ 10.581294] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
With your patch applied, it proceeds:
[ 9.594508] PCI: CLS 0 bytes, default 64 [ 9.603180] Trying to unpack rootfs image as initramfs... [ 9.987446] Freeing initrd memory: 3256K [ 10.000387] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 17.180317] Initialise system trusted keyrings [ 17.184302] workingset: timestamp_bits=30 max_order=18 bucket_order=0 [ 17.428873] squashfs: version 4.0 (2009/01/31) Phillip Lougher
...
Guenter
CONFIG_SYSVIPC=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_CGROUPS=yCONFIG_BLK_DEV_INITRD=yCONFIG_EMBEDDED=yCONFIG_PERF_EVENTS=yCONFIG_ARCH_VIRT=yCONFIG_ARCH_ALPINE=yCONFIG_ARCH_ARTPEC=yCONFIG_MACH_ARTPEC6=yCONFIG_ARCH_ASPEED=yCONFIG_MACH_ASPEED_G6=yCONFIG_ARCH_AT91=yCONFIG_SOC_SAMA5D2=yCONFIG_SOC_SAMA5D3=yCONFIG_SOC_SAMA5D4=yCONFIG_ARCH_BCM=yCONFIG_ARCH_BCM_CYGNUS=yCONFIG_ARCH_BCM_HR2=yCONFIG_ARCH_BCM_NSP=yCONFIG_ARCH_BCM_5301X=yCONFIG_ARCH_BCM_281XX=yCONFIG_ARCH_BCM_21664=yCONFIG_ARCH_BCM2835=yCONFIG_ARCH_BCM_63XX=yCONFIG_ARCH_BRCMSTB=yCONFIG_ARCH_BERLIN=yCONFIG_MACH_BERLIN_BG2=yCONFIG_MACH_BERLIN_BG2CD=yCONFIG_MACH_BERLIN_BG2Q=yCONFIG_ARCH_DIGICOLOR=yCONFIG_ARCH_EXYNOS=yCONFIG_ARCH_HIGHBANK=yCONFIG_ARCH_HISI=y
CONFIG_ARCH_HI3xxx=yCONFIG_ARCH_HIP01=yCONFIG_ARCH_HIP04=yCONFIG_ARCH_HIX5HD2=yCONFIG_ARCH_MXC=yCONFIG_SOC_IMX50=yCONFIG_SOC_IMX51=yCONFIG_SOC_IMX53=yCONFIG_SOC_IMX6Q=yCONFIG_SOC_IMX6SL=yCONFIG_SOC_IMX6SLL=yCONFIG_SOC_IMX6SX=yCONFIG_SOC_IMX6UL=yCONFIG_SOC_LS1021A=yCONFIG_SOC_IMX7D=yCONFIG_SOC_IMX7ULP=yCONFIG_SOC_VF610=yCONFIG_ARCH_KEYSTONE=yCONFIG_ARCH_MEDIATEK=yCONFIG_ARCH_MESON=yCONFIG_ARCH_MILBEAUT=yCONFIG_ARCH_MILBEAUT_M10V=yCONFIG_ARCH_MMP=yCONFIG_MACH_MMP2_DT=yCONFIG_MACH_MMP3_DT=yCONFIG_ARCH_MVEBU=yCONFIG_MACH_ARMADA_370=yCONFIG_MACH_ARMADA_375=yCONFIG_MACH_ARMADA_38X=yCONFIG_MACH_ARMADA_39X=yCONFIG_MACH_ARMADA_XP=yCONFIG_MACH_DOVE=yCONFIG_ARCH_OMAP3=yCONFIG_ARCH_OMAP4=yCONFIG_SOC_OMAP5=yCONFIG_SOC_AM33XX=yCONFIG_SOC_AM43XX=yCONFIG_SOC_DRA7XX=yCONFIG_ARCH_SIRF=yCONFIG_ARCH_QCOM=yCONFIG_ARCH_MSM8X60=yCONFIG_ARCH_MSM8960=yCONFIG_ARCH_MSM8974=yCONFIG_ARCH_ROCKCHIP=yCONFIG_ARCH_RENESAS=yCONFIG_ARCH_SOCFPGA=yCONFIG_PLAT_SPEAR=yCONFIG_ARCH_SPEAR13XX=yCONFIG_MACH_SPEAR1310=yCONFIG_MACH_SPEAR1340=yCONFIG_ARCH_STI=yCONFIG_ARCH_STM32=yCONFIG_ARCH_SUNXI=yCONFIG_ARCH_TEGRA=yCONFIG_ARCH_UNIPHIER=yCONFIG_ARCH_U8500=yCONFIG_ARCH_VEXPRESS=yCONFIG_ARCH_VEXPRESS_TC2_PM=yCONFIG_ARCH_WM8850=yCONFIG_ARCH_ZYNQ=yCONFIG_SMP=yCONFIG_NR_CPUS=16CONFIG_ARM_APPENDED_DTB=yCONFIG_ARM_ATAG_DTB_COMPAT=yCONFIG_KEXEC=yCONFIG_EFI=yCONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_STAT=yCONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=yCONFIG_CPU_FREQ_GOV_POWERSAVE=mCONFIG_CPU_FREQ_GOV_USERSPACE=mCONFIG_CPU_FREQ_GOV_CONSERVATIVE=mCONFIG_CPU_FREQ_GOV_SCHEDUTIL=yCONFIG_CPUFREQ_DT=yCONFIG_ARM_IMX6Q_CPUFREQ=yCONFIG_ARM_RASPBERRYPI_CPUFREQ=yCONFIG_ARM_SCMI_CPUFREQ=yCONFIG_QORIQ_CPUFREQ=yCONFIG_CPU_IDLE=yCONFIG_ARM_CPUIDLE=yCONFIG_ARM_ZYNQ_CPUIDLE=yCONFIG_ARM_EXYNOS_CPUIDLE=yCONFIG_ARM_TEGRA_CPUIDLE=yCONFIG_KERNEL_MODE_NEON=yCONFIG_ARM_SCMI_PROTOCOL=yCONFIG_RASPBERRYPI_FIRMWARE=yCONFIG_TRUSTED_FOUNDATIONS=yCONFIG_BCM47XX_NVRAM=yCONFIG_BCM47XX_SPROM=yCONFIG_EFI_CAPSULE_LOADER=mCONFIG_ARM_CRYPTO=yCONFIG_CRYPTO_SHA1_ARM_NEON=mCONFIG_CRYPTO_SHA1_ARM_CE=mCONFIG_CRYPTO_SHA2_ARM_CE=mCONFIG_CRYPTO_SHA512_ARM=mCONFIG_CRYPTO_AES_ARM=mCONFIG_CRYPTO_AES_ARM_BS=mCONFIG_CRYPTO_AES_ARM_CE=mCONFIG_CRYPTO_GHASH_ARM_CE=mCONFIG_CRYPTO_CRC32_ARM_CE=mCONFIG_CRYPTO_CHACHA20_NEON=mCONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_PARTITION_ADVANCED=yCONFIG_CMDLINE_PARTITION=yCONFIG_NET=yCONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=mCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_NET_DSA=mCONFIG_CAN=yCONFIG_CAN_AT91=mCONFIG_CAN_FLEXCAN=mCONFIG_CAN_SUN4I=yCONFIG_CAN_XILINXCAN=yCONFIG_CAN_RCAR=mCONFIG_CAN_MCP251X=y
# CONFIG_WIRELESS is not setCONFIG_RFKILL=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_GPIO=yCONFIG_NFC=mCONFIG_NFC_DIGITAL=mCONFIG_NFC_NCI=mCONFIG_NFC_NCI_SPI=mCONFIG_NFC_NCI_UART=mCONFIG_NFC_HCI=mCONFIG_NFC_SHDLC=yCONFIG_NFC_S3FWRN5_I2C=mCONFIG_PCIEPORTBUS=yCONFIG_PCI_MVEBU=yCONFIG_PCI_TEGRA=yCONFIG_PCI_RCAR_GEN2=yCONFIG_PCIE_RCAR_HOST=yCONFIG_PCI_DRA7XX_EP=yCONFIG_PCI_ENDPOINT=yCONFIG_PCI_ENDPOINT_CONFIGFS=yCONFIG_PCI_EPF_TEST=yCONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_PM_QOS_KUNIT_TEST=yCONFIG_OMAP_OCP2SCP=yCONFIG_SIMPLE_PM_BUS=yCONFIG_MTD=yCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_BLOCK=yCONFIG_MTD_CFI=yCONFIG_MTD_CFI_INTELEXT=yCONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_OF=yCONFIG_MTD_RAW_NAND=yCONFIG_MTD_NAND_DENALI_DT=yCONFIG_MTD_NAND_OMAP2=yCONFIG_MTD_NAND_OMAP_BCH=yCONFIG_MTD_NAND_ATMEL=yCONFIG_MTD_NAND_MARVELL=yCONFIG_MTD_NAND_BRCMNAND=yCONFIG_MTD_NAND_GPMI_NAND=yCONFIG_MTD_NAND_VF610_NFC=yCONFIG_MTD_NAND_DAVINCI=yCONFIG_MTD_NAND_STM32_FMC2=yCONFIG_MTD_SPI_NOR=yCONFIG_SPI_ASPEED_SMC=mCONFIG_MTD_UBI=yCONFIG_OF_UNITTEST=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_SIZE=65536CONFIG_VIRTIO_BLK=yCONFIG_BLK_DEV_NVME=yCONFIG_AD525X_DPOT=yCONFIG_AD525X_DPOT_I2C=yCONFIG_ATMEL_TCLIB=yCONFIG_ICS932S401=yCONFIG_ATMEL_SSC=mCONFIG_QCOM_COINCELL=mCONFIG_APDS9802ALS=yCONFIG_ISL29003=yCONFIG_PCI_ENDPOINT_TEST=yCONFIG_EEPROM_AT24=yCONFIG_BLK_DEV_SD=yCONFIG_BLK_DEV_SR=yCONFIG_MEGARAID_SAS=yCONFIG_SCSI_SYM53C8XX_2=y
CONFIG_SCSI_DC395x=yCONFIG_SCSI_AM53C974=yCONFIG_SCSI_VIRTIO=yCONFIG_ATA=yCONFIG_SATA_AHCI=yCONFIG_SATA_AHCI_PLATFORM=yCONFIG_AHCI_BRCM=yCONFIG_AHCI_DM816=yCONFIG_AHCI_ST=yCONFIG_AHCI_IMX=yCONFIG_AHCI_SUNXI=yCONFIG_AHCI_TEGRA=yCONFIG_SATA_HIGHBANK=yCONFIG_SATA_MV=yCONFIG_SATA_RCAR=yCONFIG_FUSION=yCONFIG_FUSION_SAS=yCONFIG_NETDEVICES=yCONFIG_VIRTIO_NET=yCONFIG_B53_SPI_DRIVER=mCONFIG_B53_MDIO_DRIVER=mCONFIG_B53_MMAP_DRIVER=mCONFIG_NET_DSA_BCM_SF2=mCONFIG_SUN4I_EMAC=yCONFIG_BCMGENET=mCONFIG_BGMAC_BCMA=yCONFIG_SYSTEMPORT=mCONFIG_MACB=yCONFIG_NET_CALXEDA_XGMAC=yCONFIG_FTGMAC100=mCONFIG_GIANFAR=yCONFIG_HIX5HD2_GMAC=yCONFIG_E1000E=yCONFIG_IGB=yCONFIG_MV643XX_ETH=yCONFIG_MVNETA=yCONFIG_PXA168_ETH=mCONFIG_KS8851=yCONFIG_R8169=yCONFIG_SH_ETH=yCONFIG_SMSC911X=yCONFIG_SNI_AVE=yCONFIG_STMMAC_ETH=yCONFIG_DWMAC_DWC_QOS_ETH=yCONFIG_TI_CPSW=yCONFIG_TI_CPSW_SWITCHDEV=yCONFIG_TI_CPTS=yCONFIG_XILINX_EMACLITE=yCONFIG_BROADCOM_PHY=yCONFIG_ICPLUS_PHY=yCONFIG_MARVELL_PHY=yCONFIG_MICREL_PHY=yCONFIG_AT803X_PHY=yCONFIG_ROCKCHIP_PHY=yCONFIG_DP83867_PHY=yCONFIG_USB_PEGASUS=yCONFIG_USB_RTL8152=mCONFIG_USB_LAN78XX=mCONFIG_USB_USBNET=yCONFIG_USB_NET_SMSC75XX=yCONFIG_USB_NET_SMSC95XX=y
# CONFIG_WLAN is not setCONFIG_INPUT_JOYDEV=yCONFIG_INPUT_EVDEV=yCONFIG_KEYBOARD_QT1070=mCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_TEGRA=y
CONFIG_KEYBOARD_PXA27x=mCONFIG_KEYBOARD_SAMSUNG=mCONFIG_KEYBOARD_ST_KEYSCAN=yCONFIG_KEYBOARD_SPEAR=yCONFIG_KEYBOARD_CROS_EC=mCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_CYAPA=mCONFIG_MOUSE_ELAN_I2C=yCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_ADC=mCONFIG_TOUCHSCREEN_ATMEL_MXT=mCONFIG_TOUCHSCREEN_ELAN=mCONFIG_TOUCHSCREEN_MMS114=mCONFIG_TOUCHSCREEN_WM97XX=mCONFIG_TOUCHSCREEN_ST1232=mCONFIG_TOUCHSCREEN_STMPE=yCONFIG_TOUCHSCREEN_SUN4I=yCONFIG_INPUT_MISC=yCONFIG_INPUT_MAX77693_HAPTIC=mCONFIG_INPUT_MAX8997_HAPTIC=mCONFIG_INPUT_CPCAP_PWRBUTTON=mCONFIG_INPUT_AXP20X_PEK=mCONFIG_INPUT_DA9063_ONKEY=mCONFIG_INPUT_ADXL34X=mCONFIG_INPUT_STPMIC1_ONKEY=yCONFIG_SERIO_AMBAKMI=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_NR_UARTS=5CONFIG_SERIAL_8250_RUNTIME_UARTS=5CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_ASPEED_VUART=mCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_BCM2835AUX=yCONFIG_SERIAL_8250_DW=yCONFIG_SERIAL_8250_EM=yCONFIG_SERIAL_8250_OMAP=yCONFIG_SERIAL_8250_MT6577=yCONFIG_SERIAL_8250_UNIPHIER=yCONFIG_SERIAL_OF_PLATFORM=yCONFIG_SERIAL_AMBA_PL011=yCONFIG_SERIAL_AMBA_PL011_CONSOLE=yCONFIG_SERIAL_ATMEL=yCONFIG_SERIAL_ATMEL_CONSOLE=yCONFIG_SERIAL_ATMEL_TTYAT=yCONFIG_SERIAL_MESON=yCONFIG_SERIAL_MESON_CONSOLE=yCONFIG_SERIAL_SAMSUNG=yCONFIG_SERIAL_SAMSUNG_CONSOLE=yCONFIG_SERIAL_SIRFSOC=yCONFIG_SERIAL_SIRFSOC_CONSOLE=yCONFIG_SERIAL_TEGRA=yCONFIG_SERIAL_IMX=yCONFIG_SERIAL_IMX_CONSOLE=yCONFIG_SERIAL_SH_SCI=yCONFIG_SERIAL_SH_SCI_NR_UARTS=20CONFIG_SERIAL_MSM=yCONFIG_SERIAL_MSM_CONSOLE=yCONFIG_SERIAL_VT8500=yCONFIG_SERIAL_VT8500_CONSOLE=yCONFIG_SERIAL_OMAP=yCONFIG_SERIAL_OMAP_CONSOLE=yCONFIG_SERIAL_BCM63XX=yCONFIG_SERIAL_BCM63XX_CONSOLE=yCONFIG_SERIAL_XILINX_PS_UART=yCONFIG_SERIAL_XILINX_PS_UART_CONSOLE=yCONFIG_SERIAL_FSL_LPUART=yCONFIG_SERIAL_FSL_LPUART_CONSOLE=yCONFIG_SERIAL_CONEXANT_DIGICOLOR=yCONFIG_SERIAL_CONEXANT_DIGICOLOR_CONSOLE=yCONFIG_SERIAL_ST_ASC=yCONFIG_SERIAL_ST_ASC_CONSOLE=yCONFIG_SERIAL_STM32=yCONFIG_SERIAL_STM32_CONSOLE=yCONFIG_SERIAL_DEV_BUS=yCONFIG_VIRTIO_CONSOLE=yCONFIG_ASPEED_KCS_IPMI_BMC=mCONFIG_ASPEED_BT_IPMI_BMC=mCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_ST=yCONFIG_TCG_TPM=mCONFIG_TCG_TIS_I2C_INFINEON=mCONFIG_I2C_CHARDEV=yCONFIG_I2C_ARB_GPIO_CHALLENGE=m
CONFIG_I2C_MUX_PCA954x=yCONFIG_I2C_MUX_PINCTRL=yCONFIG_I2C_DEMUX_PINCTRL=yCONFIG_I2C_ASPEED=mCONFIG_I2C_AT91=mCONFIG_I2C_BCM2835=yCONFIG_I2C_CADENCE=yCONFIG_I2C_DAVINCI=yCONFIG_I2C_DESIGNWARE_PLATFORM=yCONFIG_I2C_DIGICOLOR=mCONFIG_I2C_EMEV2=mCONFIG_I2C_IMX=yCONFIG_I2C_MESON=yCONFIG_I2C_MV64XXX=yCONFIG_I2C_RIIC=yCONFIG_I2C_RK3X=yCONFIG_I2C_S3C2410=yCONFIG_I2C_SH_MOBILE=yCONFIG_I2C_SIRF=yCONFIG_I2C_ST=yCONFIG_I2C_STM32F7=yCONFIG_I2C_SUN6I_P2WI=yCONFIG_I2C_TEGRA=yCONFIG_I2C_UNIPHIER=yCONFIG_I2C_UNIPHIER_F=yCONFIG_I2C_XILINX=yCONFIG_I2C_RCAR=yCONFIG_I2C_CROS_EC_TUNNEL=mCONFIG_I2C_SLAVE_EEPROM=yCONFIG_SPI=yCONFIG_SPI_ATMEL=mCONFIG_SPI_BCM2835=yCONFIG_SPI_BCM2835AUX=yCONFIG_SPI_CADENCE=yCONFIG_SPI_DAVINCI=yCONFIG_SPI_FSL_QUADSPI=mCONFIG_SPI_GPIO=mCONFIG_SPI_FSL_DSPI=mCONFIG_SPI_OMAP24XX=yCONFIG_SPI_ORION=yCONFIG_SPI_PL022=yCONFIG_SPI_ROCKCHIP=mCONFIG_SPI_RSPI=yCONFIG_SPI_S3C64XX=mCONFIG_SPI_SH_MSIOF=mCONFIG_SPI_SH_HSPI=yCONFIG_SPI_SIRF=yCONFIG_SPI_STM32=mCONFIG_SPI_STM32_QSPI=yCONFIG_SPI_SUN4I=yCONFIG_SPI_SUN6I=yCONFIG_SPI_TEGRA114=yCONFIG_SPI_TEGRA20_SFLASH=yCONFIG_SPI_TEGRA20_SLINK=yCONFIG_SPI_XILINX=yCONFIG_SPI_SPIDEV=yCONFIG_SPMI=yCONFIG_PINCTRL_AS3722=yCONFIG_PINCTRL_STMFX=yCONFIG_PINCTRL_PALMAS=yCONFIG_PINCTRL_QCOM_SPMI_PMIC=yCONFIG_PINCTRL_QCOM_SSBI_PMIC=yCONFIG_PINCTRL_RZA2=yCONFIG_GPIO_ASPEED_SGPIO=yCONFIG_GPIO_DAVINCI=yCONFIG_GPIO_DWAPB=yCONFIG_GPIO_EM=yCONFIG_GPIO_MXC=yCONFIG_GPIO_RCAR=yCONFIG_GPIO_SYSCON=yCONFIG_GPIO_UNIPHIER=yCONFIG_GPIO_XILINX=yCONFIG_GPIO_ZYNQ=yCONFIG_GPIO_PCA953X=yCONFIG_GPIO_PCA953X_IRQ=yCONFIG_GPIO_PCF857X=yCONFIG_GPIO_PALMAS=yCONFIG_GPIO_TPS6586X=yCONFIG_GPIO_TPS65910=yCONFIG_GPIO_TWL4030=yCONFIG_POWER_RESET_AS3722=yCONFIG_POWER_RESET_GPIO=yCONFIG_POWER_RESET_GPIO_RESTART=yCONFIG_POWER_RESET_ST=yCONFIG_POWER_RESET_KEYSTONE=yCONFIG_POWER_RESET_RMOBILE=yCONFIG_BATTERY_ACT8945A=yCONFIG_BATTERY_CPCAP=mCONFIG_BATTERY_SBS=yCONFIG_BATTERY_BQ27XXX=mCONFIG_AXP20X_POWER=mCONFIG_BATTERY_MAX17040=mCONFIG_BATTERY_MAX17042=mCONFIG_CHARGER_CPCAP=mCONFIG_CHARGER_GPIO=mCONFIG_CHARGER_MAX14577=mCONFIG_CHARGER_MAX77693=mCONFIG_CHARGER_MAX8997=mCONFIG_CHARGER_MAX8998=mCONFIG_CHARGER_TPS65090=yCONFIG_SENSORS_ARM_SCMI=yCONFIG_SENSORS_ASPEED=mCONFIG_SENSORS_IIO_HWMON=yCONFIG_SENSORS_LM90=yCONFIG_SENSORS_LM95245=yCONFIG_SENSORS_NTC_THERMISTOR=mCONFIG_SENSORS_PWM_FAN=mCONFIG_SENSORS_RASPBERRYPI_HWMON=mCONFIG_SENSORS_INA2XX=mCONFIG_CPU_THERMAL=yCONFIG_DEVFREQ_THERMAL=yCONFIG_IMX_THERMAL=yCONFIG_ROCKCHIP_THERMAL=yCONFIG_RCAR_THERMAL=yCONFIG_ARMADA_THERMAL=yCONFIG_BCM2711_THERMAL=mCONFIG_BCM2835_THERMAL=mCONFIG_BRCMSTB_THERMAL=mCONFIG_ST_THERMAL_MEMMAP=yCONFIG_UNIPHIER_THERMAL=yCONFIG_DA9063_WATCHDOG=mCONFIG_XILINX_WATCHDOG=yCONFIG_ARM_SP805_WATCHDOG=yCONFIG_AT91SAM9X_WATCHDOG=yCONFIG_SAMA5D4_WATCHDOG=yCONFIG_S3C2410_WATCHDOG=mCONFIG_DW_WATCHDOG=yCONFIG_DAVINCI_WATCHDOG=mCONFIG_ORION_WATCHDOG=yCONFIG_RN5T618_WATCHDOG=yCONFIG_SUNXI_WATCHDOG=yCONFIG_IMX2_WDT=yCONFIG_ST_LPC_WATCHDOG=yCONFIG_TEGRA_WATCHDOG=mCONFIG_MESON_WATCHDOG=yCONFIG_DIGICOLOR_WATCHDOG=yCONFIG_RENESAS_WDT=mCONFIG_RENESAS_RZAWDT=mCONFIG_STPMIC1_WATCHDOG=yCONFIG_BCM47XX_WDT=yCONFIG_BCM2835_WDT=yCONFIG_BCM_KONA_WDT=yCONFIG_BCM7038_WDT=mCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_DRIVER_GMAC_CMN=yCONFIG_BCMA_DRIVER_GPIO=yCONFIG_MFD_ACT8945A=yCONFIG_MFD_AS3711=yCONFIG_MFD_AS3722=yCONFIG_MFD_ATMEL_FLEXCOM=yCONFIG_MFD_ATMEL_HLCDC=mCONFIG_MFD_BCM590XX=yCONFIG_MFD_AC100=yCONFIG_MFD_AXP20X_I2C=yCONFIG_MFD_AXP20X_RSB=yCONFIG_MFD_DA9063=mCONFIG_MFD_MAX14577=yCONFIG_MFD_MAX77686=yCONFIG_MFD_MAX77693=mCONFIG_MFD_MAX8907=yCONFIG_MFD_MAX8997=yCONFIG_MFD_MAX8998=yCONFIG_MFD_CPCAP=yCONFIG_MFD_PM8XXX=yCONFIG_MFD_QCOM_RPM=yCONFIG_MFD_SPMI_PMIC=yCONFIG_MFD_RK808=yCONFIG_MFD_RN5T618=yCONFIG_MFD_SEC_CORE=yCONFIG_MFD_STMPE=yCONFIG_MFD_PALMAS=yCONFIG_MFD_TPS65090=yCONFIG_MFD_TPS65217=yCONFIG_MFD_TPS65218=yCONFIG_MFD_TPS6586X=yCONFIG_MFD_TPS65910=yCONFIG_MFD_STM32_LPTIMER=mCONFIG_MFD_STPMIC1=yCONFIG_REGULATOR_ACT8865=yCONFIG_REGULATOR_ACT8945A=yCONFIG_REGULATOR_ANATOP=yCONFIG_REGULATOR_AB8500=yCONFIG_REGULATOR_AS3711=yCONFIG_REGULATOR_AS3722=yCONFIG_REGULATOR_AXP20X=yCONFIG_REGULATOR_BCM590XX=yCONFIG_REGULATOR_CPCAP=yCONFIG_REGULATOR_DA9210=yCONFIG_REGULATOR_FAN53555=yCONFIG_REGULATOR_GPIO=yCONFIG_REGULATOR_LP872X=yCONFIG_REGULATOR_MAX14577=mCONFIG_REGULATOR_MAX8907=yCONFIG_REGULATOR_MAX8952=mCONFIG_REGULATOR_MAX8973=yCONFIG_REGULATOR_MAX8997=mCONFIG_REGULATOR_MAX8998=mCONFIG_REGULATOR_MAX77686=yCONFIG_REGULATOR_MAX77693=mCONFIG_REGULATOR_MAX77802=yCONFIG_REGULATOR_PALMAS=yCONFIG_REGULATOR_PBIAS=yCONFIG_REGULATOR_PWM=yCONFIG_REGULATOR_QCOM_RPM=yCONFIG_REGULATOR_QCOM_SMD_RPM=mCONFIG_REGULATOR_RK808=yCONFIG_REGULATOR_RN5T618=yCONFIG_REGULATOR_S2MPA01=mCONFIG_REGULATOR_S2MPS11=yCONFIG_REGULATOR_S5M8767=yCONFIG_REGULATOR_STM32_BOOSTER=mCONFIG_REGULATOR_STM32_VREFBUF=mCONFIG_REGULATOR_STM32_PWR=yCONFIG_REGULATOR_STPMIC1=yCONFIG_REGULATOR_TI_ABB=yCONFIG_REGULATOR_TPS51632=yCONFIG_REGULATOR_TPS62360=yCONFIG_REGULATOR_TPS65090=yCONFIG_REGULATOR_TPS65217=yCONFIG_REGULATOR_TPS65218=yCONFIG_REGULATOR_TPS6586X=yCONFIG_REGULATOR_TPS65910=yCONFIG_REGULATOR_TWL4030=yCONFIG_REGULATOR_VEXPRESS=yCONFIG_REGULATOR_WM8994=mCONFIG_CEC_SAMSUNG_S5P=mCONFIG_MEDIA_SUPPORT=mCONFIG_MEDIA_USB_SUPPORT=yCONFIG_USB_VIDEO_CLASS=mCONFIG_V4L_PLATFORM_DRIVERS=yCONFIG_VIDEO_MMP_CAMERA=mCONFIG_VIDEO_ASPEED=mCONFIG_VIDEO_STM32_DCMI=mCONFIG_VIDEO_RENESAS_CEU=mCONFIG_VIDEO_SAMSUNG_EXYNOS4_IS=mCONFIG_VIDEO_S5P_FIMC=mCONFIG_VIDEO_S5P_MIPI_CSIS=mCONFIG_VIDEO_EXYNOS_FIMC_LITE=mCONFIG_VIDEO_EXYNOS4_FIMC_IS=mCONFIG_VIDEO_RCAR_VIN=mCONFIG_VIDEO_ATMEL_ISI=mCONFIG_V4L_MEM2MEM_DRIVERS=yCONFIG_VIDEO_SAMSUNG_S5P_JPEG=mCONFIG_VIDEO_SAMSUNG_S5P_MFC=mCONFIG_VIDEO_SAMSUNG_EXYNOS_GSC=mCONFIG_VIDEO_STI_BDISP=mCONFIG_VIDEO_STI_HVA=mCONFIG_VIDEO_STI_DELTA=mCONFIG_VIDEO_RENESAS_FDP1=mCONFIG_VIDEO_RENESAS_JPU=mCONFIG_VIDEO_RENESAS_VSP1=mCONFIG_V4L_TEST_DRIVERS=yCONFIG_VIDEO_VIVID=mCONFIG_VIDEO_ADV7180=mCONFIG_VIDEO_ADV7604=mCONFIG_VIDEO_ADV7604_CEC=yCONFIG_VIDEO_ML86V7667=mCONFIG_IMX_IPUV3_CORE=mCONFIG_DRM=y
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not setCONFIG_DRM_NOUVEAU=mCONFIG_DRM_EXYNOS=mCONFIG_DRM_EXYNOS_FIMD=yCONFIG_DRM_EXYNOS_MIXER=yCONFIG_DRM_EXYNOS_DPI=yCONFIG_DRM_EXYNOS_DSI=yCONFIG_DRM_EXYNOS_HDMI=yCONFIG_DRM_ROCKCHIP=mCONFIG_ROCKCHIP_ANALOGIX_DP=yCONFIG_ROCKCHIP_DW_HDMI=yCONFIG_ROCKCHIP_DW_MIPI_DSI=yCONFIG_ROCKCHIP_INNO_HDMI=yCONFIG_DRM_ATMEL_HLCDC=mCONFIG_DRM_RCAR_DU=mCONFIG_DRM_RCAR_LVDS=yCONFIG_DRM_SUN4I=mCONFIG_DRM_MSM=mCONFIG_DRM_FSL_DCU=mCONFIG_DRM_TEGRA=yCONFIG_DRM_STM=mCONFIG_DRM_STM_DSI=mCONFIG_DRM_PANEL_SIMPLE=yCONFIG_DRM_PANEL_SAMSUNG_LD9040=mCONFIG_DRM_PANEL_ORISETECH_OTM8009A=mCONFIG_DRM_PANEL_RAYDIUM_RM68200=mCONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03=mCONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=mCONFIG_DRM_NXP_PTN3460=mCONFIG_DRM_PARADE_PS8622=mCONFIG_DRM_SII902X=mCONFIG_DRM_SII9234=mCONFIG_DRM_SIMPLE_BRIDGE=mCONFIG_DRM_TOSHIBA_TC358764=mCONFIG_DRM_I2C_ADV7511=mCONFIG_DRM_I2C_ADV7511_AUDIO=yCONFIG_DRM_STI=mCONFIG_DRM_IMX=mCONFIG_DRM_IMX_PARALLEL_DISPLAY=mCONFIG_DRM_IMX_TVE=mCONFIG_DRM_IMX_LDB=mCONFIG_DRM_IMX_HDMI=mCONFIG_DRM_VC4=mCONFIG_DRM_ETNAVIV=mCONFIG_DRM_MXSFB=mCONFIG_DRM_PL111=mCONFIG_DRM_LIMA=mCONFIG_DRM_PANFROST=mCONFIG_DRM_ASPEED_GFX=mCONFIG_FB_EFI=yCONFIG_FB_WM8505=yCONFIG_FB_SH_MOBILE_LCDC=yCONFIG_FB_SIMPLE=yCONFIG_BACKLIGHT_PWM=yCONFIG_BACKLIGHT_AS3711=yCONFIG_BACKLIGHT_GPIO=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE_ROTATION=yCONFIG_SOUND=mCONFIG_SND=mCONFIG_SND_HDA_TEGRA=mCONFIG_SND_HDA_INPUT_BEEP=yCONFIG_SND_HDA_PATCH_LOADER=yCONFIG_SND_HDA_CODEC_REALTEK=mCONFIG_SND_HDA_CODEC_HDMI=mCONFIG_SND_USB_AUDIO=mCONFIG_SND_SOC=mCONFIG_SND_ATMEL_SOC=mCONFIG_SND_ATMEL_SOC_WM8904=mCONFIG_SND_ATMEL_SOC_PDMIC=mCONFIG_SND_ATMEL_SOC_I2S=mCONFIG_SND_BCM2835_SOC_I2S=mCONFIG_SND_SOC_FSL_SAI=mCONFIG_SND_PXA_SOC_SSP=mCONFIG_SND_PXA910_SOC=mCONFIG_SND_SOC_ROCKCHIP=mCONFIG_SND_SOC_ROCKCHIP_SPDIF=mCONFIG_SND_SOC_ROCKCHIP_MAX98090=mCONFIG_SND_SOC_ROCKCHIP_RT5645=mCONFIG_SND_SOC_SAMSUNG=mCONFIG_SND_SOC_SAMSUNG_SMDK_WM8994=mCONFIG_SND_SOC_SMDK_WM8994_PCM=mCONFIG_SND_SOC_SNOW=mCONFIG_SND_SOC_ODROID=mCONFIG_SND_SOC_ARNDALE=mCONFIG_SND_SOC_SAMSUNG_MIDAS_WM1811=mCONFIG_SND_SOC_SH4_FSI=mCONFIG_SND_SOC_RCAR=mCONFIG_SND_SOC_STI=mCONFIG_SND_SOC_STM32_SAI=mCONFIG_SND_SOC_STM32_I2S=mCONFIG_SND_SOC_STM32_SPDIFRX=mCONFIG_SND_SOC_STM32_DFSDM=mCONFIG_SND_SUN4I_CODEC=mCONFIG_SND_SOC_TEGRA=mCONFIG_SND_SOC_TEGRA20_I2S=mCONFIG_SND_SOC_TEGRA30_I2S=mCONFIG_SND_SOC_TEGRA_RT5640=mCONFIG_SND_SOC_TEGRA_WM8753=mCONFIG_SND_SOC_TEGRA_WM8903=mCONFIG_SND_SOC_TEGRA_WM9712=mCONFIG_SND_SOC_TEGRA_TRIMSLICE=mCONFIG_SND_SOC_TEGRA_ALC5632=mCONFIG_SND_SOC_TEGRA_MAX98090=mCONFIG_SND_SOC_AK4642=mCONFIG_SND_SOC_CPCAP=mCONFIG_SND_SOC_CS42L51_I2C=mCONFIG_SND_SOC_SGTL5000=mCONFIG_SND_SOC_STI_SAS=mCONFIG_SND_SOC_WM8978=mCONFIG_SND_AUDIO_GRAPH_CARD=mCONFIG_USB=yCONFIG_USB_OTG=yCONFIG_USB_XHCI_HCD=yCONFIG_USB_XHCI_MVEBU=yCONFIG_USB_XHCI_TEGRA=mCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_HCD_OMAP=mCONFIG_USB_EHCI_HCD_STI=yCONFIG_USB_EHCI_TEGRA=yCONFIG_USB_EHCI_EXYNOS=mCONFIG_USB_EHCI_MV=mCONFIG_USB_OHCI_HCD=yCONFIG_USB_OHCI_HCD_STI=yCONFIG_USB_OHCI_EXYNOS=mCONFIG_USB_R8A66597_HCD=mCONFIG_USB_RENESAS_USBHS=mCONFIG_USB_STORAGE=yCONFIG_USB_UAS=yCONFIG_USB_MUSB_HDRC=mCONFIG_USB_MUSB_SUNXI=mCONFIG_USB_MUSB_OMAP2PLUS=mCONFIG_USB_MUSB_AM35X=mCONFIG_USB_MUSB_DSPS=mCONFIG_USB_MUSB_UX500=mCONFIG_USB_UX500_DMA=yCONFIG_USB_INVENTRA_DMA=yCONFIG_USB_TI_CPPI41_DMA=yCONFIG_USB_DWC3=yCONFIG_USB_DWC2=yCONFIG_USB_CHIPIDEA=yCONFIG_USB_CHIPIDEA_UDC=yCONFIG_USB_CHIPIDEA_HOST=yCONFIG_USB_CHIPIDEA_PCI=mCONFIG_USB_ISP1760=yCONFIG_USB_TEST=yCONFIG_USB_EHSET_TEST_FIXTURE=yCONFIG_USB_HSIC_USB3503=yCONFIG_USB_LINK_LAYER_TEST=yCONFIG_AB8500_USB=yCONFIG_KEYSTONE_USB_PHY=mCONFIG_NOP_USB_XCEIV=yCONFIG_AM335X_PHY_USB=mCONFIG_TWL6030_USB=mCONFIG_USB_GPIO_VBUS=yCONFIG_USB_ISP1301=yCONFIG_USB_MXS_PHY=yCONFIG_USB_GADGET=yCONFIG_USB_FSL_USB2=yCONFIG_USB_RENESAS_USBHS_UDC=mCONFIG_USB_ASPEED_VHUB=mCONFIG_USB_CONFIGFS=mCONFIG_USB_CONFIGFS_SERIAL=yCONFIG_USB_CONFIGFS_ACM=yCONFIG_USB_CONFIGFS_OBEX=yCONFIG_USB_CONFIGFS_NCM=yCONFIG_USB_CONFIGFS_ECM=yCONFIG_USB_CONFIGFS_ECM_SUBSET=yCONFIG_USB_CONFIGFS_RNDIS=yCONFIG_USB_CONFIGFS_EEM=yCONFIG_USB_CONFIGFS_MASS_STORAGE=yCONFIG_USB_CONFIGFS_F_LB_SS=yCONFIG_USB_CONFIGFS_F_FS=yCONFIG_USB_CONFIGFS_F_UAC1=yCONFIG_USB_CONFIGFS_F_UAC1_LEGACY=yCONFIG_USB_CONFIGFS_F_UAC2=yCONFIG_USB_CONFIGFS_F_MIDI=yCONFIG_USB_CONFIGFS_F_HID=yCONFIG_USB_CONFIGFS_F_UVC=yCONFIG_USB_CONFIGFS_F_PRINTER=yCONFIG_USB_ETH=mCONFIG_TYPEC=mCONFIG_TYPEC_STUSB160X=mCONFIG_MMC=yCONFIG_MMC_BLOCK_MINORS=16CONFIG_MMC_ARMMMCI=yCONFIG_MMC_SDHCI=yCONFIG_MMC_SDHCI_PCI=yCONFIG_MMC_SDHCI_PLTFM=yCONFIG_MMC_SDHCI_OF_ARASAN=yCONFIG_MMC_SDHCI_OF_AT91=yCONFIG_MMC_SDHCI_OF_ESDHC=yCONFIG_MMC_SDHCI_ESDHC_IMX=yCONFIG_MMC_SDHCI_DOVE=yCONFIG_MMC_SDHCI_TEGRA=yCONFIG_MMC_SDHCI_S3C=yCONFIG_MMC_SDHCI_PXAV3=yCONFIG_MMC_SDHCI_PXAV2=mCONFIG_MMC_SDHCI_SPEAR=yCONFIG_MMC_SDHCI_S3C_DMA=yCONFIG_MMC_SDHCI_BCM_KONA=yCONFIG_MMC_MESON_MX_SDIO=yCONFIG_MMC_SDHCI_ST=yCONFIG_MMC_OMAP=yCONFIG_MMC_OMAP_HS=yCONFIG_MMC_ATMELMCI=yCONFIG_MMC_SDHCI_MSM=yCONFIG_MMC_MVSDIO=yCONFIG_MMC_SDHI=yCONFIG_MMC_UNIPHIER=yCONFIG_MMC_DW=yCONFIG_MMC_DW_EXYNOS=yCONFIG_MMC_DW_ROCKCHIP=yCONFIG_MMC_SH_MMCIF=yCONFIG_MMC_SUNXI=yCONFIG_MMC_BCM2835=yCONFIG_MMC_SDHCI_OMAP=yCONFIG_LEDS_CLASS=yCONFIG_LEDS_CLASS_FLASH=mCONFIG_LEDS_CPCAP=mCONFIG_LEDS_GPIO=yCONFIG_LEDS_PWM=yCONFIG_LEDS_MAX77693=mCONFIG_LEDS_MAX8997=mCONFIG_LEDS_TRIGGER_TIMER=yCONFIG_LEDS_TRIGGER_ONESHOT=yCONFIG_LEDS_TRIGGER_HEARTBEAT=yCONFIG_LEDS_TRIGGER_BACKLIGHT=yCONFIG_LEDS_TRIGGER_CPU=yCONFIG_LEDS_TRIGGER_GPIO=yCONFIG_LEDS_TRIGGER_DEFAULT_ON=yCONFIG_LEDS_TRIGGER_TRANSIENT=yCONFIG_LEDS_TRIGGER_CAMERA=yCONFIG_RTC_CLASS=yCONFIG_RTC_DRV_AC100=yCONFIG_RTC_DRV_AS3722=yCONFIG_RTC_DRV_DS1307=yCONFIG_RTC_DRV_HYM8563=mCONFIG_RTC_DRV_MAX8907=yCONFIG_RTC_DRV_MAX8998=mCONFIG_RTC_DRV_MAX8997=mCONFIG_RTC_DRV_MAX77686=yCONFIG_RTC_DRV_RK808=mCONFIG_RTC_DRV_RS5C372=mCONFIG_RTC_DRV_PCF85363=mCONFIG_RTC_DRV_BQ32K=mCONFIG_RTC_DRV_TWL4030=yCONFIG_RTC_DRV_PALMAS=yCONFIG_RTC_DRV_TPS6586X=yCONFIG_RTC_DRV_TPS65910=yCONFIG_RTC_DRV_S35390A=mCONFIG_RTC_DRV_RX8581=mCONFIG_RTC_DRV_EM3027=yCONFIG_RTC_DRV_S5M=mCONFIG_RTC_DRV_DA9063=mCONFIG_RTC_DRV_EFI=mCONFIG_RTC_DRV_DIGICOLOR=mCONFIG_RTC_DRV_S3C=mCONFIG_RTC_DRV_SA1100=mCONFIG_RTC_DRV_SH=mCONFIG_RTC_DRV_PL031=yCONFIG_RTC_DRV_AT91RM9200=mCONFIG_RTC_DRV_AT91SAM9=mCONFIG_RTC_DRV_VT8500=yCONFIG_RTC_DRV_SUNXI=yCONFIG_RTC_DRV_MV=yCONFIG_RTC_DRV_TEGRA=yCONFIG_RTC_DRV_ST_LPC=yCONFIG_RTC_DRV_STM32=yCONFIG_RTC_DRV_CPCAP=mCONFIG_RTC_DRV_ASPEED=mCONFIG_DMADEVICES=yCONFIG_AT_HDMAC=yCONFIG_AT_XDMAC=yCONFIG_DMA_BCM2835=yCONFIG_DMA_SUN6I=yCONFIG_FSL_EDMA=yCONFIG_IMX_DMA=yCONFIG_IMX_SDMA=yCONFIG_MV_XOR=yCONFIG_MXS_DMA=yCONFIG_PL330_DMA=yCONFIG_SIRF_DMA=yCONFIG_STE_DMA40=yCONFIG_ST_FDMA=mCONFIG_STM32_DMA=yCONFIG_STM32_DMAMUX=yCONFIG_STM32_MDMA=yCONFIG_UNIPHIER_MDMAC=yCONFIG_XILINX_DMA=yCONFIG_QCOM_BAM_DMA=yCONFIG_DW_DMAC=yCONFIG_RCAR_DMAC=yCONFIG_RENESAS_USB_DMAC=mCONFIG_DMATEST=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_BALLOON=yCONFIG_VIRTIO_MMIO=yCONFIG_STAGING=yCONFIG_MFD_NVEC=yCONFIG_KEYBOARD_NVEC=yCONFIG_SERIO_NVEC_PS2=yCONFIG_NVEC_POWER=yCONFIG_NVEC_PAZ00=yCONFIG_STAGING_BOARD=yCONFIG_CHROME_PLATFORMS=yCONFIG_CROS_EC=mCONFIG_CROS_EC_I2C=mCONFIG_CROS_EC_SPI=mCONFIG_COMMON_CLK_MAX77686=yCONFIG_COMMON_CLK_RK808=mCONFIG_COMMON_CLK_SCMI=yCONFIG_COMMON_CLK_S2MPS11=mCONFIG_CLK_RASPBERRYPI=yCONFIG_COMMON_CLK_QCOM=yCONFIG_QCOM_CLK_RPM=yCONFIG_APQ_MMCC_8084=yCONFIG_MSM_GCC_8660=yCONFIG_MSM_MMCC_8960=yCONFIG_MSM_MMCC_8974=yCONFIG_BCM2835_MBOX=yCONFIG_ROCKCHIP_IOMMU=yCONFIG_TEGRA_IOMMU_GART=yCONFIG_TEGRA_IOMMU_SMMU=yCONFIG_EXYNOS_IOMMU=yCONFIG_REMOTEPROC=yCONFIG_ST_REMOTEPROC=mCONFIG_RPMSG_VIRTIO=mCONFIG_ASPEED_LPC_CTRL=mCONFIG_ASPEED_LPC_SNOOP=mCONFIG_ASPEED_P2A_CTRL=mCONFIG_RASPBERRYPI_POWER=yCONFIG_QCOM_GSBI=yCONFIG_QCOM_SMD_RPM=mCONFIG_QCOM_WCNSS_CTRL=mCONFIG_ARCH_EMEV2=yCONFIG_ARCH_R8A7794=yCONFIG_ARCH_R8A7779=yCONFIG_ARCH_R8A7790=yCONFIG_ARCH_R8A7778=yCONFIG_ARCH_R8A7793=yCONFIG_ARCH_R8A7791=yCONFIG_ARCH_R8A7792=yCONFIG_ARCH_R8A7740=yCONFIG_ARCH_R8A73A4=yCONFIG_ARCH_R7S72100=yCONFIG_ARCH_R7S9210=yCONFIG_ARCH_R8A77470=yCONFIG_ARCH_R8A7745=yCONFIG_ARCH_R8A7742=yCONFIG_ARCH_R8A7743=yCONFIG_ARCH_R8A7744=yCONFIG_ARCH_R9A06G032=yCONFIG_ARCH_SH73A0=yCONFIG_ROCKCHIP_IODOMAIN=yCONFIG_ROCKCHIP_PM_DOMAINS=y
CONFIG_ARCH_TEGRA_2x_SOC=y
CONFIG_ARCH_TEGRA_3x_SOC=yCONFIG_ARCH_TEGRA_114_SOC=yCONFIG_ARCH_TEGRA_124_SOC=yCONFIG_ARM_EXYNOS_BUS_DEVFREQ=mCONFIG_ARM_TEGRA_DEVFREQ=mCONFIG_DEVFREQ_EVENT_EXYNOS_NOCP=mCONFIG_EXTCON_MAX14577=mCONFIG_EXTCON_MAX77693=mCONFIG_EXTCON_MAX8997=mCONFIG_TI_AEMIF=yCONFIG_STM32_FMC2_EBI=yCONFIG_EXYNOS5422_DMC=mCONFIG_IIO=yCONFIG_IIO_SW_TRIGGER=yCONFIG_ASPEED_ADC=mCONFIG_AT91_ADC=mCONFIG_AT91_SAMA5D2_ADC=mCONFIG_BERLIN2_ADC=mCONFIG_CPCAP_ADC=mCONFIG_EXYNOS_ADC=mCONFIG_MESON_SARADC=mCONFIG_ROCKCHIP_SARADC=mCONFIG_STM32_ADC_CORE=mCONFIG_STM32_ADC=mCONFIG_STM32_DFSDM_ADC=mCONFIG_STMPE_ADC=mCONFIG_VF610_ADC=mCONFIG_XILINX_XADC=yCONFIG_IIO_CROS_EC_SENSORS_CORE=mCONFIG_IIO_CROS_EC_SENSORS=mCONFIG_STM32_DAC=mCONFIG_MPU3050_I2C=yCONFIG_CM36651=mCONFIG_IIO_CROS_EC_LIGHT_PROX=mCONFIG_SENSORS_ISL29018=yCONFIG_SENSORS_ISL29028=yCONFIG_AK8975=yCONFIG_IIO_HRTIMER_TRIGGER=yCONFIG_IIO_STM32_LPTIMER_TRIGGER=mCONFIG_PWM=yCONFIG_PWM_ATMEL=mCONFIG_PWM_ATMEL_HLCDC_PWM=mCONFIG_PWM_ATMEL_TCB=mCONFIG_PWM_BCM2835=yCONFIG_PWM_BRCMSTB=mCONFIG_PWM_FSL_FTM=mCONFIG_PWM_MESON=mCONFIG_PWM_RCAR=mCONFIG_PWM_RENESAS_TPU=yCONFIG_PWM_ROCKCHIP=mCONFIG_PWM_SAMSUNG=mCONFIG_PWM_STI=yCONFIG_PWM_STM32=mCONFIG_PWM_STM32_LP=mCONFIG_PWM_SUN4I=yCONFIG_PWM_TEGRA=yCONFIG_PWM_VT8500=yCONFIG_KEYSTONE_IRQ=yCONFIG_PHY_SUN4I_USB=yCONFIG_PHY_SUN9I_USB=yCONFIG_PHY_HIX5HD2_SATA=yCONFIG_PHY_BERLIN_SATA=yCONFIG_PHY_BERLIN_USB=yCONFIG_PHY_MMP3_USB=mCONFIG_PHY_CPCAP_USB=mCONFIG_PHY_QCOM_APQ8064_SATA=mCONFIG_PHY_RCAR_GEN2=mCONFIG_PHY_ROCKCHIP_DP=mCONFIG_PHY_ROCKCHIP_USB=yCONFIG_PHY_SAMSUNG_USB2=mCONFIG_PHY_EXYNOS5250_SATA=mCONFIG_PHY_UNIPHIER_USB2=yCONFIG_PHY_UNIPHIER_USB3=yCONFIG_PHY_MIPHY28LP=yCONFIG_PHY_STIH407_USB=yCONFIG_PHY_STM32_USBPHYC=yCONFIG_PHY_TEGRA_XUSB=yCONFIG_PHY_DM816X_USB=mCONFIG_OMAP_USB2=yCONFIG_TI_PIPE3=yCONFIG_TWL4030_USB=mCONFIG_NVMEM_IMX_OCOTP=yCONFIG_ROCKCHIP_EFUSE=mCONFIG_NVMEM_SUNXI_SID=yCONFIG_NVMEM_VF610_OCOTP=yCONFIG_MESON_MX_EFUSE=mCONFIG_FSI=mCONFIG_FSI_MASTER_GPIO=mCONFIG_FSI_MASTER_HUB=mCONFIG_FSI_MASTER_ASPEED=mCONFIG_FSI_SCOM=mCONFIG_FSI_SBEFIFO=mCONFIG_FSI_OCC=mCONFIG_COUNTER=mCONFIG_STM32_TIMER_CNT=mCONFIG_STM32_LPTIMER_CNT=mCONFIG_EXT3_FS=yCONFIG_EXT4_KUNIT_TESTS=yCONFIG_BTRFS_FS=yCONFIG_AUTOFS4_FS=yCONFIG_ISO9660_FS=yCONFIG_MSDOS_FS=yCONFIG_VFAT_FS=yCONFIG_NTFS_FS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_UBIFS_FS=yCONFIG_SQUASHFS=yCONFIG_SQUASHFS_XATTR=yCONFIG_SQUASHFS_LZO=yCONFIG_SQUASHFS_XZ=yCONFIG_SQUASHFS_4K_DEVBLK_SIZE=yCONFIG_PSTORE=yCONFIG_PSTORE_CONSOLE=yCONFIG_PSTORE_PMSG=yCONFIG_PSTORE_RAM=yCONFIG_NFS_FS=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=yCONFIG_NFS_V4_1=yCONFIG_NFS_V4_2=yCONFIG_ROOT_NFS=yCONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_ISO8859_1=yCONFIG_NLS_UTF8=yCONFIG_CRYPTO_USER=m
# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not setCONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_ECDH=mCONFIG_CRYPTO_CCM=mCONFIG_CRYPTO_CMAC=mCONFIG_CRYPTO_USER_API_HASH=mCONFIG_CRYPTO_USER_API_SKCIPHER=mCONFIG_CRYPTO_USER_API_RNG=mCONFIG_CRYPTO_USER_API_AEAD=mCONFIG_CRYPTO_DEV_SUN4I_SS=mCONFIG_CRYPTO_DEV_FSL_CAAM=mCONFIG_CRYPTO_DEV_EXYNOS_RNG=mCONFIG_CRYPTO_DEV_S5P=mCONFIG_CRYPTO_DEV_ATMEL_AES=mCONFIG_CRYPTO_DEV_ATMEL_TDES=mCONFIG_CRYPTO_DEV_ATMEL_SHA=mCONFIG_CRYPTO_DEV_MARVELL_CESA=mCONFIG_CRYPTO_DEV_ROCKCHIP=mCONFIG_CRYPTO_DEV_STM32_CRC=mCONFIG_CRYPTO_DEV_STM32_HASH=mCONFIG_CRYPTO_DEV_STM32_CRYP=mCONFIG_ASYMMETRIC_KEY_TYPE=yCONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=yCONFIG_X509_CERTIFICATE_PARSER=yCONFIG_PKCS7_MESSAGE_PARSER=yCONFIG_SYSTEM_TRUSTED_KEYRING=yCONFIG_CRC32_SELFTEST=yCONFIG_CMA_SIZE_MBYTES=64CONFIG_GLOB_SELFTEST=yCONFIG_STRING_SELFTEST=yCONFIG_PRINTK_TIME=yCONFIG_MAGIC_SYSRQ=yCONFIG_DEBUG_FS=yCONFIG_DEBUG_RODATA_TEST=yCONFIG_PROVE_LOCKING=yCONFIG_DEBUG_LOCKDEP=yCONFIG_DEBUG_ATOMIC_SLEEP=yCONFIG_DEBUG_LOCKING_API_SELFTESTS=yCONFIG_WW_MUTEX_SELFTEST=yCONFIG_DEBUG_LIST=yCONFIG_RCU_EQS_DEBUG=yCONFIG_KUNIT=yCONFIG_KUNIT_TEST=yCONFIG_TEST_SORT=yCONFIG_RBTREE_TEST=yCONFIG_INTERVAL_TREE_TEST=yCONFIG_TEST_BITMAP=yCONFIG_TEST_UUID=yCONFIG_TEST_FIRMWARE=yCONFIG_TEST_SYSCTL=yCONFIG_SYSCTL_KUNIT_TEST=yCONFIG_LIST_KUNIT_TEST=y
Re: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
In reply to Marc ZyngierQuoted 43 lines · Marc Zyngier
Quoted 30 lines · Guenter Roeck
Quoted 29 lines · Marc Zyngier
Quoted 27 lines · Guenter Roeck
Hi Marc,
Quoted 14 lines · Marc Zyngier
Hi Gunter,
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Valentin Schneider
As done for the Arm GIC irqchips, move IPIs to
handle_percpu_devid_irq()ashandle_percpu_devid_fasteoi_ipi()isn't actually required.Signed-off-by Valentin Schneider <[email protected]>This patch results in boot failures (silent stall) for the qemu raspi2 emulation. Unfortunately it can not be reverted because
handle_percpu_devid_fasteoi_ipino longer exists in next-20201214, so I don't know if it is the only problem.Quoted 7 lines
This is odd. This works just fine for me on both the RPi2 and 3 emulation, running a full Debian userspace. Could this be caused by the version of QEMU you are using? Here's what I have:
$ qemu-system-arm --version QEMU emulator version 5.1.0 (Debian 1:5.1+dfsg-4+b1)I used qemu 5.0 which - up to now - worked fine. Let me try with 5.1 and 5.2. Sorry, I should have tried first before bothering you.
Quoted 7 lines
Quoted 4 lines
No bother at all. If this works for you on more recent versions of QEMU, that'd be an interesting data point. I'm also interested in the result of the patch either way.
It doesn't work for me with qemu 5.1, nor with qemu 5.2. My userspace is generated with buildroot, busybox-based, and very basic.
OK, so something is definitely different between our setups. Mind pointing me to your config and your QEMU invocation?
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Your patch fixes the problem for me, though, so feel free to add
Tested-by Guenter Roeck <[email protected]>if/when you submit it.
Thanks for that.
Any news on this? I now see the problem in mainline.
Thanks,
Guenter
Marc Zyngier
maintainerRe: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 1 line · Guenter Roeck
Any news on this? I now see the problem in mainline.
I have just queued the fix:
Thanks for you help in reproducing this.
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Re: [PATCH 3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
Quoted 10 lines · Marc Zyngier
Quoted 1 line · Guenter Roeck
Any news on this? I now see the problem in mainline.
I have just queued the fix:
Thanks for you help in reproducing this.
Thanks a lot for the fix!
Guenter
[irqchip: irq/irqchip-next] irqchip/bcm2836: Fix IPI acknowledgement after conversion to handle_percpu_devid_irq
In reply to Guenter RoeckThe following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: d7f39c40ebb6986e7371510d1c20a4efee4a7f0d Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/d7f39c40ebb6986e7371510d1c20a4efee4a7f0d Author: Marc Zyngier <[email protected]> AuthorDate: Fri, 18 Dec 2020 18:03:46 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 18 Dec 2020 18:34:17
irqchip/bcm2836: Fix IPI acknowledgement after conversion to handle_percpu_devid_irq
It appears that despite its name, the bcm2836_arm_irqchip_ipi_eoi() callback is an acknowledgement, and not an EOI. This means that we lose IPIs that are made pending between the handling of the IPI and the write to LOCAL_MAILBOX0_CLR0. With the right timing, things fail nicely.
This used to work with handle_percpu_devid_fasteoi_ipi(), which started by eoi-ing the interrupt. With the standard fasteoi flow, this doesn't work anymore.
So let's use this callback for what it is, an ack. Your favourite RPi-2/3 is back up and running.
--- drivers/irqchip/irq-bcm2836.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-bcm2836.c +2 -2
@@ -167,7 +167,7 @@ static void bcm2836_arm_irqchip_handle_ipi(struct irq_desc *desc)chained_irq_exit (chip, desc); } -static void bcm2836_arm_irqchip_ipi_eoi (struct irq_data *d) +static void bcm2836_arm_irqchip_ipi_ack (struct irq_data *d) {int cpu =smp_processor_id ();
@@ -195,7 +195,7 @@ static struct irq_chip bcm2836_arm_irqchip_ipi = { .name = "IPI", .irq_mask = bcm2836_arm_irqchip_dummy_op, .irq_unmask = bcm2836_arm_irqchip_dummy_op, - .irq_eoi = bcm2836_arm_irqchip_ipi_eoi, + .irq_ack = bcm2836_arm_irqchip_ipi_ack, .ipi_send_mask = bcm2836_arm_irqchip_ipi_send_mask, };
Re: [irqchip: irq/irqchip-next] irqchip/bcm2836: Fix IPI acknowledgement after conversion to handle_percpu_devid_irq
Quoted 17 lines · irqchip-bot for Marc Zyngier
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: d7f39c40ebb6986e7371510d1c20a4efee4a7f0d Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/d7f39c40ebb6986e7371510d1c20a4efee4a7f0d Author: Marc Zyngier <[email protected]> AuthorDate: Fri, 18 Dec 2020 18:03:46 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 18 Dec 2020 18:34:17irqchip/bcm2836: Fix IPI acknowledgement after conversion to
handle_percpu_devid_irqIt appears that despite its name, the
bcm2836_arm_irqchip_ipi_eoi()callback is an acknowledgement, and not an EOI. This means that we lose IPIs that are made pending between the handling of the IPI and the write toLOCAL_MAILBOX0_CLR0. With the right timing, things fail nicely.
Quoted 7 lines
This used to work with
handle_percpu_devid_fasteoi_ipi(), which started by eoi-ing the interrupt. With the standard fasteoi flow, this doesn't work anymore.So let's use this callback for what it is, an ack. Your favourite RPi-2/3 is back up and running.
Thanks for cleaning up my mess!
Quoted 6 lines
Fixes ffdad793d579 ("irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()")Cc Valentin Schneider <[email protected]>Reported-by Guenter Roeck <[email protected]>Tested-by Guenter Roeck <[email protected]>Signed-off-by Marc Zyngier <[email protected]>
Marc Zyngier
maintainerRe: [irqchip: irq/irqchip-next] irqchip/bcm2836: Fix IPI acknowledgement after conversion to handle_percpu_devid_irq
Quoted 22 lines · Valentin Schneider
Quoted 21 lines · irqchip-bot for Marc Zyngier
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: d7f39c40ebb6986e7371510d1c20a4efee4a7f0d Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/d7f39c40ebb6986e7371510d1c20a4efee4a7f0d Author: Marc Zyngier <[email protected]> AuthorDate: Fri, 18 Dec 2020 18:03:46 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 18 Dec 2020 18:34:17irqchip/bcm2836: Fix IPI acknowledgement after conversion to
handle_percpu_devid_irqIt appears that despite its name, the
bcm2836_arm_irqchip_ipi_eoi()callback is an acknowledgement, and not an EOI. This means that we lose IPIs that are made pending between the handling of the IPI and the write toLOCAL_MAILBOX0_CLR0. With the right timing, things fail nicely.This used to work with
handle_percpu_devid_fasteoi_ipi(), which started by eoi-ing the interrupt. With the standard fasteoi flow, this doesn't work anymore.
Quoted 5 lines
Quoted 3 lines
So let's use this callback for what it is, an ack. Your favourite RPi-2/3 is back up and running.
Thanks for cleaning up my mess!
Shared responsibilities... ;-)
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
PATCH 4/5 irqchip/hip04: Make IPIs use handle_percpu_devid_irq()
In reply to Valentin SchneiderAs done for the Arm GIC irqchips, move IPIs to handle_percpu_devid_irq() as handle_percpu_devid_fasteoi_ipi() isn't actually required.
--- drivers/irqchip/irq-hip04.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/irqchip/irq-hip04.c +1 -5
@@ -296,11 +296,7 @@ static void hip04_irq_cpu_init(struct hip04_irq_data *intc)static int hip04_irq_domain_map (struct irq_domain *d,unsigned int irq,irq_hw_number_t hw) { -if (hw <16 ) { -irq_set_percpu_devid (irq); -irq_set_chip_and_handler (irq, &hip04_irq_chip, - handle_percpu_devid_fasteoi_ipi); - }else if (hw <32 ) { +if (hw <32 ) {irq_set_percpu_devid (irq);irq_set_chip_and_handler (irq, &hip04_irq_chip, handle_percpu_devid_irq);
Signature · 1 line
2.27.0
[irqchip: irq/irqchip-next] irqchip/hip04: Make IPIs use handle_percpu_devid_irq()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: a2e042e13ff322ad523a2f131dd6e03e8bc05053 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/a2e042e13ff322ad523a2f131dd6e03e8bc05053 Author: Valentin Schneider <[email protected]> AuthorDate: Mon, 09 Nov 2020 09:41:20 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 11 Dec 2020 14:47:50
irqchip/hip04: Make IPIs use handle_percpu_devid_irq()
As done for the Arm GIC irqchips, move IPIs to handle_percpu_devid_irq() as handle_percpu_devid_fasteoi_ipi() isn't actually required.
--- drivers/irqchip/irq-hip04.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/irqchip/irq-hip04.c +1 -5
@@ -296,11 +296,7 @@ static void hip04_irq_cpu_init(struct hip04_irq_data *intc)static int hip04_irq_domain_map (struct irq_domain *d,unsigned int irq,irq_hw_number_t hw) { -if (hw <16 ) { -irq_set_percpu_devid (irq); -irq_set_chip_and_handler (irq, &hip04_irq_chip, - handle_percpu_devid_fasteoi_ipi); - }else if (hw <32 ) { +if (hw <32 ) {irq_set_percpu_devid (irq);irq_set_chip_and_handler (irq, &hip04_irq_chip, handle_percpu_devid_irq);
PATCH 5/5 Revert "genirq: Add fasteoi IPI flow"
In reply to Valentin Schneiderhandle_percpu_devid_fasteoi_ipi() has no more users, and handle_percpu_devid_irq() can do all that it was supposed to do. Get rid of it.
This reverts commit c5e5ec033c4ab25c53f1fd217849e75deb0bf7bf.
--- include/linux/irq.h | 1 - kernel/irq/chip.c | 27 --------------------------- 2 files changed, 28 deletions(-)
include/linux/irq.h +0 -1
@@ -647,7 +647,6 @@ static inline int irq_set_parent(int irq, int parent_irq)*/ extern void handle_level_irq (struct irq_desc *desc);extern void handle_fasteoi_irq (struct irq_desc *desc); -extern void handle_percpu_devid_fasteoi_ipi (struct irq_desc *desc);extern void handle_edge_irq (struct irq_desc *desc);extern void handle_edge_eoi_irq (struct irq_desc *desc);extern void handle_simple_irq (struct irq_desc *desc);
kernel/irq/chip.c +0 -27
@@ -944,33 +944,6 @@ void handle_percpu_devid_irq(struct irq_desc *desc) chip->irq_eoi (&desc->irq_data); } -/** -* handle_percpu_devid_fasteoi_ipi - Per CPU local IPI handler with per cpu -* dev ids -* @desc: the interrupt description structure for this irq -* -* The biggest difference with the IRQ version is that the interrupt is -* EOIed early, as the IPI could result in a context switch, and we need to -* make sure the IPI can fire again. We also assume that the arch code has -* registered an action. If not, we are positively doomed. -*/ -void handle_percpu_devid_fasteoi_ipi (struct irq_desc *desc) -{ -struct irq_chip *chip =irq_desc_get_chip (desc); -struct irqaction *action = desc->action; -unsigned int irq =irq_desc_get_irq (desc); -irqreturn_t res; - -__kstat_incr_irqs_this_cpu (desc); - -if (chip->irq_eoi) - chip->irq_eoi (&desc->irq_data); - -trace_irq_handler_entry (irq, action); - res = action->handler (irq,raw_cpu_ptr (action->percpu_dev_id)); -trace_irq_handler_exit (irq, action, res); -} -/** * handle_percpu_devid_fasteoi_nmi - Per CPU local NMI handler with per cpu * dev ids
Signature · 1 line
2.27.0
[irqchip: irq/irqchip-next] Revert "genirq: Add fasteoi IPI flow"
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: b388fa50142510fb6477f130bb1b3f05a0a263a1 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/b388fa50142510fb6477f130bb1b3f05a0a263a1 Author: Valentin Schneider <[email protected]> AuthorDate: Mon, 09 Nov 2020 09:41:21 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 11 Dec 2020 14:47:50
Revert "genirq: Add fasteoi IPI flow"
handle_percpu_devid_fasteoi_ipi() has no more users, and handle_percpu_devid_irq() can do all that it was supposed to do. Get rid of it.
This reverts commit c5e5ec033c4ab25c53f1fd217849e75deb0bf7bf.
--- include/linux/irq.h | 1 - kernel/irq/chip.c | 27 --------------------------- 2 files changed, 28 deletions(-)
include/linux/irq.h +0 -1
@@ -647,7 +647,6 @@ static inline int irq_set_parent(int irq, int parent_irq)*/ extern void handle_level_irq (struct irq_desc *desc);extern void handle_fasteoi_irq (struct irq_desc *desc); -extern void handle_percpu_devid_fasteoi_ipi (struct irq_desc *desc);extern void handle_edge_irq (struct irq_desc *desc);extern void handle_edge_eoi_irq (struct irq_desc *desc);extern void handle_simple_irq (struct irq_desc *desc);
kernel/irq/chip.c +0 -27
@@ -945,33 +945,6 @@ void handle_percpu_devid_irq(struct irq_desc *desc) }/** -* handle_percpu_devid_fasteoi_ipi - Per CPU local IPI handler with per cpu -* dev ids -* @desc: the interrupt description structure for this irq -* -* The biggest difference with the IRQ version is that the interrupt is -* EOIed early, as the IPI could result in a context switch, and we need to -* make sure the IPI can fire again. We also assume that the arch code has -* registered an action. If not, we are positively doomed. -*/ -void handle_percpu_devid_fasteoi_ipi (struct irq_desc *desc) -{ -struct irq_chip *chip =irq_desc_get_chip (desc); -struct irqaction *action = desc->action; -unsigned int irq =irq_desc_get_irq (desc); -irqreturn_t res; - -__kstat_incr_irqs_this_cpu (desc); - -if (chip->irq_eoi) - chip->irq_eoi (&desc->irq_data); - -trace_irq_handler_entry (irq, action); - res = action->handler (irq,raw_cpu_ptr (action->percpu_dev_id)); -trace_irq_handler_exit (irq, action, res); -} - -/** * handle_percpu_devid_fasteoi_nmi - Per CPU local NMI handler with per cpu * dev ids * @desc: the interrupt description structure for this irq
Quoted 8 lines · Valentin Schneider
While hacking on the GIC flow handlers, I grew increasingly suspicious of
handle_percpu_devid_fasteoi_ipi()and thus did a bit of digging. AFAICT it isn't actually needed andhandle_percpu_devid_irq()would suffice. Argumentation is in patch 1.Tested on my Juno (GICv2) and eMAG (GICv3).
[...]
Applied to irq/irqchip-next, thanks!
[1/5] irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq()
commit: 6abbd6988971aaa607b026eaa0ffd2301352f2ea
[2/5] irqchip/armada-370-xp: Make IPIs use handle_percpu_devid_irq()
commit: e52e73b7e9f7d08b8c2ef6fb1657105093e22a03
[3/5] irqchip/bcm2836: Make IPIs use handle_percpu_devid_irq()
commit: ffdad793d579c9286c7b67a86d1a3c890fb32082
[4/5] irqchip/hip04: Make IPIs use handle_percpu_devid_irq()
commit: a2e042e13ff322ad523a2f131dd6e03e8bc05053
[5/5] Revert "genirq: Add fasteoi IPI flow"
commit: b388fa50142510fb6477f130bb1b3f05a0a263a1Cheers,
M.
Signature · 8 lines
Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel