Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mt8173-elm-hana kernel panic (BRK exception in snd_soc_dapm_add_path ) during boot #164

Closed
nuclearcat opened this issue Jan 19, 2023 · 5 comments

Comments

@nuclearcat
Copy link
Member

It is unclear if it is regression or due newly added kernel options and as result more wide hardware support


 1407 09:14:46.553691  <6>[    7.231001] hub 1-0:1.0: USB hub found
 1408 09:14:46.558427  <6>[    7.235355] hub 1-0:1.0: 2 ports detected
 1409 09:14:46.569003  <6>[    7.242095] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
 1410 09:14:46.576691  <6>[    7.254143] hub 2-0:1.0: USB hub found
 1411 09:14:46.580967  <6>[    7.258323] hub 2-0:1.0: 1 port detected
 1412 09:14:46.589431  <6>[    7.264264] mtu3 11271000.usb: xHCI platform device register success...
 1413 09:14:46.648542  <6>[    7.321671] mt8173-afe-pcm 11220000.audio-controller: MT8173 AFE driver initialized.
 1414 09:14:46.666204  <4>[    7.341993] Unexpected kernel BRK exception at EL1
 1415 09:14:46.673299  <0>[    7.347156] Internal error: BRK handler: 00000000f20003e8 [#1] PREEMPT SMP
 1416 09:14:46.676714  <4>[    7.354290] Modules linked in:
 1417 09:14:46.683787  <4>[    7.357601] CPU: 2 PID: 54 Comm: kworker/u8:2 Not tainted 6.2.0-rc4-next-20230119 #1
 1418 09:14:46.689253  <4>[    7.365602] Hardware name: Google Hana (DT)
 1419 09:14:46.695001  <4>[    7.370041] Workqueue: events_unbound deferred_probe_work_func
 1420 09:14:46.701600  <4>[    7.376140] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
 1421 09:14:46.707785  <4>[    7.383359] pc : snd_soc_dapm_add_path+0x42c/0x474
 1422 09:14:46.711438  <4>[    7.388409] lr : snd_soc_dapm_add_path+0x388/0x474
 1423 09:14:46.715698  <4>[    7.393456] sp : ffff80000c75b750
 1424 09:14:46.722873  <4>[    7.397023] x29: ffff80000c75b750 x28: ffff0000cc800200 x27: ffff0000cc800e00
 1425 09:14:46.729866  <4>[    7.404420] x26: ffff800009cc4140 x25: 0000000000004000 x24: ffff0000cc831158
 1426 09:14:46.738149  <4>[    7.411817] x23: ffff0000ca2c65b0 x22: 0000000000000001 x21: 0000000000000001
 1427 09:14:46.745118  <4>[    7.419212] x20: 0000000000000001 x19: ffff0000cc831100 x18: ffff80000b6945e8
 1428 09:14:46.745455  
 1429 09:14:46.752583  <4>[    7.426608] x17: ffff80000932fa34 x16: 0000000000000000 x15: 0000000000000028
 1430 09:14:46.760007  <4>[    7.434004] x14: 000000000004ffff x13: ffff80000bc36e80 x12: 0000000000040000
 1431 09:14:46.767648  <4>[    7.441399] x11: 1fffffffffffffff x10: 000000009f713387 x9 : ffff80000817221c
 1432 09:14:46.775347  <4>[    7.448795] x8 : 0000000000000118 x7 : ffff800008c45c48 x6 : ffff80000bfe2000
 1433 09:14:46.781907  <4>[    7.456189] x5 : 0000000000000001 x4 : ffff80000b285000 x3 : ffff80000c75b674
 1434 09:14:46.790023  <4>[    7.463585] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000005000
 1435 09:14:46.792373  <4>[    7.470981] Call trace:
 1436 09:14:46.797100  <4>[    7.473682]  snd_soc_dapm_add_path+0x42c/0x474
 1437 09:14:46.801528  <4>[    7.478383]  snd_soc_dapm_add_route+0x1d8/0x40c
 1438 09:14:46.806504  <4>[    7.483169]  snd_soc_dapm_add_routes+0x60/0xa0
 1439 09:14:46.811224  <4>[    7.487870]  soc_probe_component+0x258/0x3d4
 1440 09:14:46.815513  <4>[    7.492395]  snd_soc_bind_card+0x4b0/0xd2c
 1441 09:14:46.819930  <4>[    7.496747]  snd_soc_register_card+0xf4/0x110
 1442 09:14:46.825239  <4>[    7.501359]  devm_snd_soc_register_card+0x54/0xb0
 1443 09:14:46.829709  <4>[    7.506319]  mt8173_rt5650_dev_probe+0x1a4/0x280
 1444 09:14:46.833929  <4>[    7.511193]  platform_probe+0x70/0x100
 1445 09:14:46.838052  <4>[    7.515199]  really_probe+0xd4/0x3e4
 1446 09:14:46.842263  <4>[    7.519029]  __driver_probe_device+0x8c/0x1a0
 1447 09:14:46.846409  <4>[    7.523642]  driver_probe_device+0x4c/0x13c
 1448 09:14:46.851345  <4>[    7.528081]  __device_attach_driver+0xd8/0x180
 1449 09:14:46.855588  <4>[    7.532780]  bus_for_each_drv+0x88/0xdc
 1450 09:14:46.859485  <4>[    7.536870]  __device_attach+0xb4/0x1f0
 1451 09:14:46.860124  
 1452 09:14:46.863729  <4>[    7.540961]  device_initial_probe+0x28/0x3c
 1453 09:14:46.868595  <4>[    7.545401]  bus_probe_device+0xa8/0xb0
 1454 09:14:46.872982  <4>[    7.549491]  deferred_probe_work_func+0xc4/0x11c
 1455 09:14:46.877147  <4>[    7.554365]  process_one_work+0x280/0x6e0
 1456 09:14:46.881320  <4>[    7.558630]  worker_thread+0x228/0x430
 1457 09:14:46.885107  <4>[    7.562633]  kthread+0x110/0x114
 1458 09:14:46.888423  <4>[    7.566117]  ret_from_fork+0x10/0x20
 1459 09:14:46.889054  
 1460 09:14:46.894781  <0>[    7.569950] Code: f9400a60 17ffff6b 12800080 17ffffd8 (d4207d00) 
 1461 09:14:46.895523  
 1462 09:14:46.899241  <4>[    7.576299] ---[ end trace 0000000000000000 ]---
 1463 09:14:46.899754  
 1464 09:14:46.905597  <6>[    7.581171] note: kworker/u8:2[54] exited with preempt_count 1
 1465 09:14:46.910673  Setting prompt string to ['-+\\[ end trace \\w* \\]-+[^\\n]*\\r\\n', '/ #', 'Login timed out', 'Login incorrect']
 1466 09:14:46.911881  <4>[    7.587872] ------------[ cut here ]------------
 1467 09:14:46.921750  <4>[    7.592786] WARNING: CPU: 2 PID: 0 at kernel/context_tracking.c:128 ct_kernel_exit.constprop.0+0x11c/0x180
 1468 09:14:46.928174  <6>[    7.596573] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
 1469 09:14:46.931522  <4>[    7.602722] Modules linked in:
 1470 09:14:46.940148  <4>[    7.602736] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D            6.2.0-rc4-next-20230119 #1
 1471 09:14:46.945437  <4>[    7.602752] Hardware name: Google Hana (DT)
 1472 09:14:46.952048  <4>[    7.602759] pstate: 200003c5 (nzCv DAIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
 1473 09:14:46.957873  <4>[    7.633795] pc : ct_kernel_exit.constprop.0+0x11c/0x180
 1474 09:14:46.962074  <4>[    7.639318] lr : ct_idle_enter+0x10/0x1c
 1475 09:14:46.965885  <4>[    7.643533] sp : ffff80000c4abbd0
 1476 09:14:46.970065  <6>[    7.645906] hub 2-1:1.0: USB hub found
 1477 09:14:46.976626  <4>[    7.647105] x29: ffff80000c4abbd0 x28: 0000000000000000 x27: 0000000000000000
 1478 09:14:46.980876  <6>[    7.653905] hub 2-1:1.0: 2 ports detected
 1479 09:14:46.981461  
 1480 09:14:46.988916  <4>[    7.658556] x26: 0000000000000001 x25: ffff80000919e660 x24: ffff0000ca233880
 1481 09:14:46.996085  <4>[    7.658581] x23: ffff80000925b040 x22: 0000000000010000 x21: 00000000000003c0
 1482 09:14:47.004370  <4>[    7.677756] x20: ffff0000ff7718b8 x19: ffff80000a7bd8b8 x18: ffff80000b6945e8
 1483 09:14:47.010745  <4>[    7.685206] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
 1484 09:14:47.018718  <4>[    7.692654] x14: 0000000000000002 x13: 0000000000000000 x12: 0000000000000934
 1485 09:14:47.026333  <4>[    7.700102] x11: 071c71c71c71c71c x10: 0000000000000934 x9 : ffff800008038e44
 1486 09:14:47.033500  <4>[    7.707552] x8 : ffff0000c095e170 x7 : 0000000000010989 x6 : 0000000000000000
 1487 09:14:47.041359  <4>[    7.715001] x5 : ffff80000c4ac000 x4 : 4000000000000002 x3 : ffff8000f4fb4000
 1488 09:14:47.048469  <4>[    7.722450] x2 : ffff80000c4abbd0 x1 : ffff80000a7bd8b8 x0 : 4000000000000000
 1489 09:14:47.049249  
 1490 09:14:47.050731  <4>[    7.729898] Call trace:
 1491 09:14:47.050998  
 1492 09:14:47.056383  <4>[    7.732621]  ct_kernel_exit.constprop.0+0x11c/0x180
 1493 09:14:47.059890  <4>[    7.737795]  ct_idle_enter+0x10/0x1c
 1494 09:14:47.063901  <4>[    7.741660]  cpu_suspend+0x80/0x290
 1495 09:14:47.064629  
 1496 09:14:47.068799  <4>[    7.745445]  psci_cpu_suspend_enter+0x14c/0x190
 1497 09:14:47.069581  
 1498 09:14:47.073718  <4>[    7.750273]  psci_enter_idle_state+0x50/0x90
 1499 09:14:47.077337  <4>[    7.754836]  cpuidle_enter_state+0xd0/0x4e4
 1500 09:14:47.077615  
 1501 09:14:47.081582  <4>[    7.759311]  cpuidle_enter+0x40/0x60
 1502 09:14:47.085471  <4>[    7.763178]  do_idle+0x240/0x2d0
 1503 09:14:47.089656  <4>[    7.766697]  cpu_startup_entry+0x2c/0x34
 1504 09:14:47.094562  <4>[    7.770912]  secondary_start_kernel+0x138/0x160
 1505 09:14:47.098311  <4>[    7.775739]  __secondary_switched+0xb0/0xb4
 1506 09:14:47.102357  <4>[    7.780211] irq event stamp: 11910
 1507 09:14:47.103036  
 1508 09:14:47.111690  <4>[    7.783893] hardirqs last  enabled at (11909): [<ffff8000081bcf2c>] tick_nohz_idle_exit+0x78/0x1dc
 1509 09:14:47.120286  <4>[    7.793166] hardirqs last disabled at (11910): [<ffff80000973d3e8>] __schedule+0x6f8/0xc60
 1510 09:14:47.129119  <4>[    7.801742] softirqs last  enabled at (11894): [<ffff800008010bb8>] __do_softirq+0x4e8/0x63c
 1511 09:14:47.137735  <4>[    7.810481] softirqs last disabled at (11883): [<ffff8000080175b8>] ____do_softirq+0x18/0x24
 1512 09:14:47.138015  
 1513 09:14:47.142842  <4>[    7.819225] ---[ end trace 0000000000000000 ]---
 1514 09:14:47.143139  Setting prompt string to ['-\\[ cut here \\]', 'Unhandled fault', 'BUG: KCSAN:', 'BUG: KASAN:', 'BUG: KFENCE:', 'Oops(?: -|:)', 'WARNING:', '(kernel BUG at|BUG:)', 'invalid opcode:', 'Kernel panic - not syncing', '/ #', 'Login timed out', 'Login incorrect']
 1515 09:14:47.143224  login-action: kernel 'warning'
 1516 09:14:47.143303  [login-action] Waiting for messages, (timeout 00:04:20)
@gctucker
Copy link
Contributor

I guess we'll be able to see if it's reproducible on mainline, next and stable 6.1?

@gctucker
Copy link
Contributor

@nuclearcat Please add more context to this issue e.g. kernel version, build etc. and also add it to the kernel bugs workboard.

@nuclearcat
Copy link
Member Author

I am still in progress of collecting more information

@nuclearcat
Copy link
Member Author

It seems preferable to wait few more staging runs, to see if bug repeats, and if it appears on stable and mainline.

@padovan
Copy link
Contributor

padovan commented Jul 9, 2024

Old issue. (also we are not tracking kernel test failure/issues through GitHub anymore)

@padovan padovan closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants