android_kernel_xiaomi_sm7250/arch/mips/cavium-octeon
Alexander Sverdlin 1236c30a69 MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping()
[ Upstream commit ba912afbd611d3a5f22af247721a071ad1d5b9e0 ]

For irq_domain_associate() to work the virq descriptor has to be
pre-allocated in advance. Otherwise the following happens:

WARNING: CPU: 0 PID: 0 at .../kernel/irq/irqdomain.c:527 irq_domain_associate+0x298/0x2e8
error: virq128 is not allocated
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.78-... #1
        ...
Call Trace:
[<ffffffff801344c4>] show_stack+0x9c/0x130
[<ffffffff80769550>] dump_stack+0x90/0xd0
[<ffffffff801576d0>] __warn+0x118/0x130
[<ffffffff80157734>] warn_slowpath_fmt+0x4c/0x70
[<ffffffff801b83c0>] irq_domain_associate+0x298/0x2e8
[<ffffffff80a43bb8>] octeon_irq_init_ciu+0x4c8/0x53c
[<ffffffff80a76cbc>] of_irq_init+0x1e0/0x388
[<ffffffff80a452cc>] init_IRQ+0x4c/0xf4
[<ffffffff80a3cc00>] start_kernel+0x404/0x698

Use irq_alloc_desc_at() to avoid the above problem.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 11:02:53 +02:00
..
crypto crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
executive MIPS: OCTEON: cvmx_pko_mem_debug8: use oldest forward compatible definition 2019-12-13 08:52:26 +01:00
cpu.c MIPS: Add missing include files 2017-03-08 10:38:06 +01:00
csrc-octeon.c clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
dma-octeon.c MIPS: consolidate the swiotlb implementations 2018-06-24 09:26:03 -07:00
flash_setup.c
Kconfig swiotlb: move the SWIOTLB config symbol to lib/Kconfig 2018-05-09 06:58:01 +02:00
Makefile MIPS: OCTEON: Platform support for OCTEON III USB controller 2017-02-14 08:52:46 +00:00
oct_ilm.c
octeon_boot.h
octeon-irq.c MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() 2022-09-28 11:02:53 +02:00
octeon-memcpy.S mips: get rid of tail-zeroing in primitives 2017-04-06 02:08:08 -04:00
octeon-platform.c mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start 2022-08-25 11:15:45 +02:00
octeon-usb.c MIPS: OCTEON: add put_device() after of_find_device_by_node() 2022-01-27 09:04:29 +01:00
Platform MIPS: Octeon: Remove vestiges of CONFIG_CAVIUM_OCTEON_2ND_KERNEL 2017-04-10 11:56:05 +02:00
setup.c MIPS: Octeon: Remove extern declarations. 2018-07-24 17:39:03 -07:00
smp.c MIPS: SMP: Allow boot_secondary SMP op to return errors 2017-08-30 00:57:27 +02:00