linux-stable/sound/soc/tegra
Mohan Kumar ba60170725 ASoC: tegra: Fix CBB error during probe()
[ Upstream commit 6781b962d9 ]

When Tegra audio drivers are built as part of the kernel image,
TIMEOUT_ERR is observed from cbb-fabric. Following is seen on
Jetson AGX Orin during boot:

[    8.012482] **************************************
[    8.017423] CPU:0, Error:cbb-fabric, Errmon:2
[    8.021922]    Error Code            : TIMEOUT_ERR
[    8.025966]    Overflow              : Multiple TIMEOUT_ERR
[    8.030644]
[    8.032175]    Error Code            : TIMEOUT_ERR
[    8.036217]    MASTER_ID             : CCPLEX
[    8.039722]    Address               : 0x290a0a8
[    8.043318]    Cache                 : 0x1 -- Bufferable
[    8.047630]    Protection            : 0x2 -- Unprivileged, Non-Secure, Data Access
[    8.054628]    Access_Type           : Write

[    8.106130] WARNING: CPU: 0 PID: 124 at drivers/soc/tegra/cbb/tegra234-cbb.c:604 tegra234_cbb_isr+0x134/0x178

[    8.240602] Call trace:
[    8.243126]  tegra234_cbb_isr+0x134/0x178
[    8.247261]  __handle_irq_event_percpu+0x60/0x238
[    8.252132]  handle_irq_event+0x54/0xb8

These errors happen when MVC device, which is a child of AHUB
device, tries to access its device registers. This happens as
part of call tegra210_mvc_reset_vol_settings() in MVC device
probe().

The root cause of this problem is, the child MVC device gets
probed before the AHUB clock gets enabled. The AHUB clock is
enabled in runtime PM resume of parent AHUB device and due to
the wrong sequence of pm_runtime_enable() in AHUB driver,
runtime PM resume doesn't happen for AHUB device when MVC makes
register access.

Fix this by calling pm_runtime_enable() for parent AHUB device
before of_platform_populate() in AHUB driver. This ensures that
clock becomes available when MVC makes register access.

Fixes: 16e1bcc2ca ("ASoC: tegra: Add Tegra210 based AHUB driver")
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Signed-off-by: Ritu Chaudhary <rituc@nvidia.com>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://patch.msgid.link/20240823144342.4123814-3-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-12 11:10:28 +02:00
..
Kconfig
Makefile
tegra20_ac97.c
tegra20_ac97.h
tegra20_das.c
tegra20_i2s.c
tegra20_i2s.h
tegra20_spdif.c
tegra20_spdif.h
tegra30_ahub.c
tegra30_ahub.h
tegra30_i2s.c
tegra30_i2s.h
tegra186_asrc.c
tegra186_asrc.h
tegra186_dspk.c ASoC: tegra: Fix DSPK 16-bit playback 2024-05-17 11:56:20 +02:00
tegra186_dspk.h
tegra210_admaif.c
tegra210_admaif.h
tegra210_adx.c
tegra210_adx.h
tegra210_ahub.c ASoC: tegra: Fix CBB error during probe() 2024-09-12 11:10:28 +02:00
tegra210_ahub.h
tegra210_amx.c
tegra210_amx.h
tegra210_dmic.c
tegra210_dmic.h
tegra210_i2s.c
tegra210_i2s.h
tegra210_mbdrc.c
tegra210_mbdrc.h
tegra210_mixer.c
tegra210_mixer.h
tegra210_mvc.c
tegra210_mvc.h
tegra210_ope.c
tegra210_ope.h
tegra210_peq.c
tegra210_peq.h
tegra210_sfc.c ASoC: tegra: Fix SFC conversion for few rates 2023-09-19 12:27:56 +02:00
tegra210_sfc.h ASoC: tegra: Fix SFC conversion for few rates 2023-09-19 12:27:56 +02:00
tegra_asoc_machine.c
tegra_asoc_machine.h
tegra_audio_graph_card.c ASoC: tegra: Fix redundant PLLA and PLLA_OUT0 updates 2023-10-10 22:00:34 +02:00
tegra_cif.h
tegra_pcm.c
tegra_pcm.h
tegra_wm8903.c