Curtis Klein
3cc5fb824c
dmaengine: fsl-qdma: init irq after reg initialization
...
commit 87a39071e0b639f45e05d296cc0538eef44ec0bd upstream.
Initialize the qDMA irqs after the registers are configured so that
interrupts that may have been pending from a primary kernel don't get
processed by the irq handler before it is ready to and cause panic with
the following trace:
Call trace:
fsl_qdma_queue_handler+0xf8/0x3e8
__handle_irq_event_percpu+0x78/0x2b0
handle_irq_event_percpu+0x1c/0x68
handle_irq_event+0x44/0x78
handle_fasteoi_irq+0xc8/0x178
generic_handle_irq+0x24/0x38
__handle_domain_irq+0x90/0x100
gic_handle_irq+0x5c/0xb8
el1_irq+0xb8/0x180
_raw_spin_unlock_irqrestore+0x14/0x40
__setup_irq+0x4bc/0x798
request_threaded_irq+0xd8/0x190
devm_request_threaded_irq+0x74/0xe8
fsl_qdma_probe+0x4d4/0xca8
platform_drv_probe+0x50/0xa0
really_probe+0xe0/0x3f8
driver_probe_device+0x64/0x130
device_driver_attach+0x6c/0x78
__driver_attach+0xbc/0x158
bus_for_each_dev+0x5c/0x98
driver_attach+0x20/0x28
bus_add_driver+0x158/0x220
driver_register+0x60/0x110
__platform_driver_register+0x44/0x50
fsl_qdma_driver_init+0x18/0x20
do_one_initcall+0x48/0x258
kernel_init_freeable+0x1a4/0x23c
kernel_init+0x10/0xf8
ret_from_fork+0x10/0x18
Cc: [email protected]
Fixes: b092529e0a ("dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs")
Signed-off-by: Curtis Klein <[email protected] >
Signed-off-by: Yi Zhao <[email protected] >
Signed-off-by: Frank Li <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2024-03-06 14:36:09 +00:00
..
bestcomm
dw
dmaengine: dw: Make it dependent to HAS_IOMEM
2021-04-21 12:56:13 +02:00
dw-axi-dmac
Add exception protection processing for vd in axi_chan_handle_err function
2023-01-24 07:17:58 +01:00
dw-edma
dmaengine: dw-edma: Fix to enable to issue dma request on DMA processing
2023-05-17 11:35:54 +02:00
hsu
dmaengine: hsu: disable spurious interrupt
2021-03-04 10:26:28 +01:00
ioat
dmaengine: ioat: stop mod_timer from resurrecting deleted timer in __cleanup()
2022-10-26 13:22:43 +02:00
ipu
mediatek
dmaengine: mediatek: Fix deadlock caused by synchronize_irq()
2023-10-25 11:53:20 +02:00
ppc4xx
qcom
dmaengine: QCOM_HIDMA_MGMT depends on HAS_IOMEM
2021-06-23 14:41:23 +02:00
sh
dmaengine: shdma: increase size of 'dev_id'
2024-03-01 13:13:33 +01:00
ti
dmaengine: ti: edma: handle irq_of_parse_and_map() errors
2023-11-20 10:30:13 +01:00
xilinx
dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
2023-02-06 07:52:40 +01:00
acpi-dma.c
dmaengine: acpi: Avoid comparison GSI with Linux vIRQ
2021-09-26 14:07:08 +02:00
altera-msgdma.c
amba-pl08x.c
at_hdmac.c
dmaengine: at_hdmac: Check return code of dma_async_device_register
2022-11-25 17:42:10 +01:00
at_hdmac_regs.h
dmaengine: at_hdmac: Fix at_lli struct definition
2022-11-25 17:42:10 +01:00
at_xdmac.c
dmaengine: at_xdmac: do not enable all cyclic channels
2023-05-17 11:35:54 +02:00
bcm-sba-raid.c
bcm2835-dma.c
coh901318.c
coh901318.h
coh901318_lli.c
dma-axi-dmac.c
dma-jz4780.c
dmaengine: dma-jz4780: Fix race in jz4780_dma_tx_status
2020-11-05 11:43:29 +01:00
dmaengine.c
dmaengine: Fix double increment of client_count in dma_chan_get()
2023-02-06 07:52:39 +01:00
dmaengine.h
dmaengine: dmaengine_desc_callback_valid(): Check for callback_result
2021-11-17 09:48:46 +01:00
dmatest.c
dmaengine: dmatest: Check list for emptiness before access its last entry
2020-10-29 09:57:41 +01:00
ep93xx_dma.c
fsl-edma-common.c
dmaengine: fsl-edma: fix wrong tcd endianness for big-endian cpu
2020-07-29 10:18:37 +02:00
fsl-edma-common.h
dmaengine: fsl-edma-common: correct DSIZE_32BYTE
2020-07-22 09:33:15 +02:00
fsl-edma.c
dmaengine: fsl-edma: Fix NULL pointer exception in fsl_edma_tx_handler
2020-07-22 09:33:15 +02:00
fsl-qdma.c
dmaengine: fsl-qdma: init irq after reg initialization
2024-03-06 14:36:09 +00:00
fsl_raid.c
fsl_raid.h
fsldma.c
dmaengine: fsldma: Fix a resource leak in an error handling path of the probe function
2021-03-04 10:26:28 +01:00
fsldma.h
fsldma: fix very broken 32-bit ppc ioread64 functionality
2020-09-09 19:12:22 +02:00
idma64.c
idma64.h
img-mdc-dma.c
imx-dma.c
dmaengine: imx-dma: configure the generic DMA type to make it work
2021-08-12 13:20:56 +02:00
imx-sdma.c
dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
2023-02-06 07:52:48 +01:00
iop-adma.c
iop-adma.h
k3dma.c
Kconfig
idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
2023-09-23 10:59:39 +02:00
lpc18xx-dmamux.c
Makefile
mcf-edma.c
dmaengine: mcf-edma: Fix a potential un-allocated memory access
2023-08-16 18:19:24 +02:00
mic_x100_dma.c
mic_x100_dma.h
mmp_pdma.c
dmaengine: pxa/mmp: stop referencing config->slave_id
2022-01-27 09:19:39 +01:00
mmp_tdma.c
moxart-dma.c
mpc512x_dma.c
mv_xor.c
mv_xor.h
mv_xor_v2.c
dmaengine: mv_xor_v2: Fix an error code.
2023-05-17 11:35:53 +02:00
mxs-dma.c
nbpfaxi.c
of-dma.c
dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
2021-08-26 08:36:13 -04:00
owl-dma.c
dmaengine: owl-dma: Fix a resource leak in the remove function
2021-03-04 10:26:28 +01:00
pch_dma.c
pl330.c
dmaengine: pl330: Return DMA_PAUSED when transaction is paused
2023-08-16 18:19:22 +02:00
pxa_dma.c
dmaengine: pxa_dma: Remove an erroneous BUG_ON() in pxad_free_desc()
2023-11-20 10:30:14 +01:00
s3c24xx-dma.c
sa11x0-dma.c
sirf-dma.c
sprd-dma.c
dmaengine: sprd: Cleanup in .remove() after pm_runtime_get_sync() failed
2022-08-25 11:18:35 +02:00
st_fdma.c
dmaengine: st_fdma: fix MODULE_ALIAS
2021-12-22 09:29:36 +01:00
st_fdma.h
ste_dma40.c
dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
2023-11-08 11:23:40 +01:00
ste_dma40_ll.c
ste_dma40_ll.h
stm32-dma.c
dmaengine: stm32-dma: use vchan_terminate_vdesc() in .terminate_all
2020-10-01 13:17:36 +02:00
stm32-dmamux.c
stm32-mdma.c
dmaengine: stm32-mdma: correct desc prep when channel running
2023-11-28 16:50:19 +00:00
sun4i-dma.c
sun6i-dma.c
tegra20-apb-dma.c
dmaengine: tegra-apb: Prevent race conditions on channel's freeing
2020-10-01 13:17:36 +02:00
tegra210-adma.c
dmaengine: tegra210-adma: fix global intr clear
2023-01-24 07:18:01 +01:00
timb_dma.c
TODO
txx9dmac.c
txx9dmac.h
uniphier-mdmac.c
virt-dma.c
virt-dma.h
xgene-dma.c
zx_dma.c