mirror-linux/sound/soc/sof/amd
V sujith kumar Reddy 39cdf021fa ASoC: SOF: amd: Fix for handling spurious interrupts from DSP
[ Upstream commit 2e7c6652f9 ]

As interrupts are Level-triggered,unless and until we deassert the register
the interrupts are generated which causes spurious interrupts unhandled.

Now we deasserted the interrupt at top half which solved the below
"nobody cared" warning.

warning reported in dmesg:
	irq 80: nobody cared (try booting with the "irqpoll" option)
	CPU: 5 PID: 2735 Comm: irq/80-AudioDSP
		Not tainted 5.15.86-15817-g4c19f3e06d49 #1 1bd3fd932cf58caacc95b0504d6ea1e3eab22289
	Hardware name: Google Skyrim/Skyrim, BIOS Google_Skyrim.15303.0.0 01/03/2023
	Call Trace:
	<IRQ>
	dump_stack_lvl+0x69/0x97
	 __report_bad_irq+0x3a/0xae
	note_interrupt+0x1a9/0x1e3
	handle_irq_event_percpu+0x4b/0x6e
	handle_irq_event+0x36/0x5b
	handle_fasteoi_irq+0xae/0x171
	 __common_interrupt+0x48/0xc4
	</IRQ>

	handlers:
	acp_irq_handler [snd_sof_amd_acp] threaded [<000000007e089f34>] acp_irq_thread [snd_sof_amd_acp]
	Disabling IRQ #80

Signed-off-by: V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>
Link: https://lore.kernel.org/r/20230203123254.1898794-1-Vsujithkumar.Reddy@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-03 11:52:22 +01:00
..
Kconfig ASoC: SOF: amd: Add support for Rembrandt plaform. 2022-09-20 19:38:02 +01:00
Makefile ASoC: SOF: amd: Add support for Rembrandt plaform. 2022-09-20 19:38:02 +01:00
acp-common.c ASoC: SOF: amd: increase SRAM inbox and outbox size to 1024 2022-09-20 19:38:04 +01:00
acp-dsp-offset.h ASoC: SOF: amd: Add support for Rembrandt plaform. 2022-09-20 19:38:02 +01:00
acp-ipc.c ASoC: SOF: amd: increase SRAM inbox and outbox size to 1024 2022-09-20 19:38:04 +01:00
acp-loader.c ASoC: SOF: amd: Add support for Rembrandt plaform. 2022-09-20 19:38:02 +01:00
acp-pcm.c ASoC: SOF: amd: increase SRAM inbox and outbox size to 1024 2022-09-20 19:38:04 +01:00
acp-stream.c ASoC: SOF: amd: increase SRAM inbox and outbox size to 1024 2022-09-20 19:38:04 +01:00
acp-trace.c ASoC: SOF: Modify the host trace_init parameter list to include dmab 2022-05-19 16:44:17 +01:00
acp.c ASoC: SOF: amd: Fix for handling spurious interrupts from DSP 2023-03-03 11:52:22 +01:00
acp.h ASoC: SOF: amd: increase SRAM inbox and outbox size to 1024 2022-09-20 19:38:04 +01:00
pci-rmb.c ASoC: SOF: amd: Add support for Rembrandt plaform. 2022-09-20 19:38:02 +01:00
pci-rn.c ASoC: SOF: amd: Make ACP core code generic for newer SOC transition 2022-09-20 19:38:01 +01:00
rembrandt.c ASoC: SOF: amd: Add support for Rembrandt plaform. 2022-09-20 19:38:02 +01:00
renoir.c ASoC: SOF: amd: Make ACP core code generic for newer SOC transition 2022-09-20 19:38:01 +01:00