public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Julien Massot <julien.massot@collabora.com>,
	kernel@collabora.com, Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Trevor Wu <trevor.wu@mediatek.com>
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/6] ASoC: mediatek: mt8195: Set ETDM1/2 IN/OUT to COMP_DUMMY()
Date: Thu, 17 Apr 2025 12:20:30 +0200	[thread overview]
Message-ID: <2fd29a45-5b4d-4465-8ec7-dd7cecd8b9fa@collabora.com> (raw)
In-Reply-To: <20250417-mt8395-audio-sof-v1-2-30587426e5dd@collabora.com>

Il 17/04/25 10:44, Julien Massot ha scritto:
> ETDM2_IN_BE and ETDM1_OUT_BE are defined as COMP_EMPTY(),
> in the case the codec dai_name will be null.
> 
> Avoid a crash if the device tree is not assigning a codec
> to these links.
> 
> [    1.179936] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
> [    1.181065] Mem abort info:
> [    1.181420]   ESR = 0x0000000096000004
> [    1.181892]   EC = 0x25: DABT (current EL), IL = 32 bits
> [    1.182576]   SET = 0, FnV = 0
> [    1.182964]   EA = 0, S1PTW = 0
> [    1.183367]   FSC = 0x04: level 0 translation fault
> [    1.183983] Data abort info:
> [    1.184406]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
> [    1.185097]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
> [    1.185766]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
> [    1.186439] [0000000000000000] user address but active_mm is swapper
> [    1.187239] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
> [    1.188029] Modules linked in:
> [    1.188420] CPU: 7 UID: 0 PID: 70 Comm: kworker/u32:1 Not tainted 6.14.0-rc4-next-20250226+ #85
> [    1.189515] Hardware name: Radxa NIO 12L (DT)
> [    1.190065] Workqueue: events_unbound deferred_probe_work_func
> [    1.190808] pstate: 40400009 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
> [    1.191683] pc : __pi_strcmp+0x24/0x140
> [    1.192170] lr : mt8195_mt6359_soc_card_probe+0x224/0x7b0
> [    1.192854] sp : ffff800083473970
> [    1.193271] x29: ffff800083473a10 x28: 0000000000001008 x27: 0000000000000002
> [    1.194168] x26: ffff800082408960 x25: ffff800082417db0 x24: ffff800082417d88
> [    1.195065] x23: 000000000000001e x22: ffff800082dbf480 x21: ffff800082dc07b8
> [    1.195961] x20: 0000000000000000 x19: 0000000000000013 x18: 00000000ffffffff
> [    1.196858] x17: 000000040044ffff x16: 005000f2b5503510 x15: 0000000000000006
> [    1.197755] x14: ffff800082407af0 x13: 6e6f69737265766e x12: 692d6b636f6c6374
> [    1.198651] x11: 0000000000000002 x10: ffff80008240b920 x9 : 0000000000000018
> [    1.199547] x8 : 0101010101010101 x7 : 0000000000000000 x6 : 0000000000000000
> [    1.200443] x5 : 0000000000000000 x4 : 8080808080000000 x3 : 303933383978616d
> [    1.201339] x2 : 0000000000000000 x1 : ffff80008240b920 x0 : 0000000000000000
> [    1.202236] Call trace:
> [    1.202545]  __pi_strcmp+0x24/0x140 (P)
> [    1.203029]  mtk_soundcard_common_probe+0x3bc/0x5b8
> [    1.203644]  platform_probe+0x70/0xe8
> [    1.204106]  really_probe+0xc8/0x3a0
> [    1.204556]  __driver_probe_device+0x84/0x160
> [    1.205104]  driver_probe_device+0x44/0x130
> [    1.205630]  __device_attach_driver+0xc4/0x170
> [    1.206189]  bus_for_each_drv+0x8c/0xf8
> [    1.206672]  __device_attach+0xa8/0x1c8
> [    1.207155]  device_initial_probe+0x1c/0x30
> [    1.207681]  bus_probe_device+0xb0/0xc0
> [    1.208165]  deferred_probe_work_func+0xa4/0x100
> [    1.208747]  process_one_work+0x158/0x3e0
> [    1.209254]  worker_thread+0x2c4/0x3e8
> [    1.209727]  kthread+0x134/0x1f0
> [    1.210136]  ret_from_fork+0x10/0x20
> [    1.210589] Code: 54000401 b50002c6 d503201f f86a6803 (f8408402)
> [    1.211355] ---[ end trace 0000000000000000 ]---
> 
> Signed-off-by: Julien Massot <julien.massot@collabora.com>
> Fixes: e70b8dd26711 ("ASoC: mediatek: mt8195: Remove afe-dai component and rework codec link")

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



  reply	other threads:[~2025-04-17 10:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-17  8:44 [PATCH 0/6] ASoC: mt8195: Add support for MT8395 Radxa NIO 12L with MT6359 codec Julien Massot
2025-04-17  8:44 ` [PATCH 1/6] ASoC: mediatek: mt8195: Move rt5682 specific dapm routes Julien Massot
2025-04-17 10:20   ` AngeloGioacchino Del Regno
2025-04-17  8:44 ` [PATCH 2/6] ASoC: mediatek: mt8195: Set ETDM1/2 IN/OUT to COMP_DUMMY() Julien Massot
2025-04-17 10:20   ` AngeloGioacchino Del Regno [this message]
2025-04-17  8:44 ` [PATCH 3/6] ASoC: mediatek: mt8195: Add mt8195-mt6359 card Julien Massot
2025-04-17 10:20   ` AngeloGioacchino Del Regno
2025-04-17  8:44 ` [PATCH 4/6] ASoC: dt-bindings: mt8195: add compatible mt8195_mt6359 Julien Massot
2025-04-17 10:20   ` AngeloGioacchino Del Regno
2025-04-22  7:54     ` Julien Massot
2025-04-17  8:44 ` [PATCH 5/6] ASoC: dt-bindings: mt8195: add missing audio routing and link-name Julien Massot
2025-04-17 10:20   ` AngeloGioacchino Del Regno
2025-04-17  8:44 ` [PATCH 6/6] mt8395-radxa-nio-12l: Add sound node for headphone Julien Massot
2025-04-17 10:20   ` AngeloGioacchino Del Regno
2025-04-17 16:21 ` (subset) [PATCH 0/6] ASoC: mt8195: Add support for MT8395 Radxa NIO 12L with MT6359 codec Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2fd29a45-5b4d-4465-8ec7-dd7cecd8b9fa@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=julien.massot@collabora.com \
    --cc=kernel@collabora.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=tiwai@suse.com \
    --cc=trevor.wu@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox