OpenCloudOS-Kernel/arch/mips/cavium-octeon
Alexander Sverdlin ba912afbd6 MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping()
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>
2022-09-07 15:08:04 +02:00
..
crypto crypto: mips/sha - remove duplicate hash init function 2021-12-31 18:10:54 +11:00
executive MIPS: octeon: Get rid of preprocessor directives around RESERVE32 2022-09-07 14:55:16 +02:00
Kconfig MIPS: Introduce CAVIUM_RESERVE32 Kconfig option 2022-07-30 10:59:02 +02:00
Makefile MIPS: OCTEON: Platform support for OCTEON III USB controller 2017-02-14 08:52:46 +00:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
cpu.c MIPS: Add missing include files 2017-03-08 10:38:06 +01:00
csrc-octeon.c MIPS: OCTEON: csrc-octeon: include linux/sched/clock.h 2018-11-21 15:36:42 -08:00
dma-octeon.c swiotlb: make the swiotlb_init interface more useful 2022-04-18 07:21:11 +02:00
flash_setup.c mips: clean up kernel-doc in cavium-octeon/*.c 2021-07-28 11:22:21 +02:00
oct_ilm.c mips: cavium: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE 2021-03-06 08:43:40 +01:00
octeon-irq.c MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() 2022-09-07 15:08:04 +02:00
octeon-memcpy.S MIPS: octeon: Fix missed PTR->PTR_WD conversion 2022-02-01 08:35:12 +01:00
octeon-platform.c mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start 2022-07-05 11:16:03 +02:00
octeon-usb.c MIPS: fix typos in comments 2022-05-04 22:22:59 +02:00
octeon_boot.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
setup.c MIPS: octeon: Get rid of preprocessor directives around RESERVE32 2022-09-07 14:55:16 +02:00
smp.c mips: clean up kernel-doc in cavium-octeon/*.c 2021-07-28 11:22:21 +02:00