On Mon, Nov 13, 2023 at 01:28:27AM +0000, Kuninori Morimoto wrote:
Current ASoC CPU:Codec = N:M connection is using connection mapping idea, but it is used for N < M case only. We want to use it for any case.
By this patch, not only N:M connection, but all existing connection (1:1, 1:N, N:N) will use same connection mapping. Then, because it will use default mapping, no conversion patch is needed to exising drivers.
The KernelCI bisection bot has reported that this is breaking boot on meson-g12a-u200 in -next with a defconfig+debug configuration:
<1>[ 39.211516][ T39] Unable to handle kernel paging request at virtual address f999199999999999 <1>[ 39.215123][ T39] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf]
...
<4>[ 39.498854][ T39] x5 : 1fffe00001b50887 x4 : 0000000000000001 x3 : ffff000013f44be8 <4>[ 39.506914][ T39] x2 : dfff800000000000 x1 : 1999999999999999 x0 : 0000000000000007 <4>[ 39.514975][ T39] Call trace: <4>[ 39.518356][ T39] snd_soc_compensate_channel_connection_map+0x210/0x578 <4>[ 39.525461][ T39] snd_soc_bind_card+0x368/0x1280 <4>[ 39.530575][ T39] snd_soc_register_card+0x2e8/0x3e0 <4>[ 39.535949][ T39] devm_snd_soc_register_card+0x58/0xd8 <4>[ 39.541581][ T39] meson_card_probe+0x25c/0x388 [snd_soc_meson_card_utils] <4>[ 39.548864][ T39] platform_probe+0xcc/0x240
Full boot log here:
https://storage.kernelci.org/mainline/master/v6.8-rc7-250-g137e0ec05aeb/arm6...
with the config here:
https://storage.kernelci.org/mainline/master/v6.8-rc7-250-g137e0ec05aeb/arm6...
The full bot report is here:
https://groups.io/g/kernelci-results/message/52435
and everything does look plausible about the failure.