Bug 259707 - mrsas crash in Current
Summary: mrsas crash in Current
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-08 08:38 UTC by shamsher
Modified: 2022-09-15 00:56 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shamsher 2021-11-08 08:38:00 UTC
SAS controller info:
...
3066 mrsas0: <BROADCOM AERO-10E2 SAS Controller> port 0xf000-0xf0ff mem 0xfb400000-0xfb4fffff,0xfb300000-0xf     b3fffff,0xfb600000-0xfb6fffff at device 0.0 numa-domain 0 on pci18
3067 mrsas0: FW now in Ready state
3068 mrsas0: attempting to allocate 32 MSI-X vectors (128 supported)
3069 msi: routing MSI-X IRQ 203 to local APIC 12 vector 52
...

------------------------
Below are the crash info:

ums2: 3 buttons and [XYZ] coordinates ID=0
panic: mutex mrsas_sim_lock not owned at /usr/home/sardarsi/FreeBSD_latest_oct28/freebsd-src/sys/kern/kern_mutex.c:204
cpuid = 30
time = 1636360131
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe010c754c90
vpanic() at vpanic+0x187/frame 0xfffffe010c754cf0
panic() at panic+0x43/frame 0xfffffe010c754d50
__mtx_assert() at __mtx_assert+0x9d/frame 0xfffffe010c754d60
_callout_stop_safe() at _callout_stop_safe+0x59/frame 0xfffffe010c754de0
mrsas_complete_cmd() at mrsas_complete_cmd+0x1b0/frame 0xfffffe010c754e60
ithread_loop() at ithread_loop+0x279/frame 0xfffffe010c754ef0
fork_exit() at fork_exit+0x80/frame 0xfffffe010c754f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe010c754f30
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
[ thread pid 12 tid 100308 ]
Stopped at      kdb_enter+0x37: movq    $0,0xe24d8e(%rip)
db> bt
Tracing pid 12 tid 100308 td 0xfffffe011296f020
kdb_enter() at kdb_enter+0x37/frame 0xfffffe010c754c90
vpanic() at vpanic+0x1b8/frame 0xfffffe010c754cf0
panic() at panic+0x43/frame 0xfffffe010c754d50
__mtx_assert() at __mtx_assert+0x9d/frame 0xfffffe010c754d60
_callout_stop_safe() at _callout_stop_safe+0x59/frame 0xfffffe010c754de0
mrsas_complete_cmd() at mrsas_complete_cmd+0x1b0/frame 0xfffffe010c754e60
ithread_loop() at ithread_loop+0x279/frame 0xfffffe010c754ef0
fork_exit() at fork_exit+0x80/frame 0xfffffe010c754f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe010c754f30
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
db> dump
Cannot dump: no dump device specified.
db> alltrace

Tracing command kernel pid 0 tid 100000 td 0xffffffff81986b80
sched_switch() at sched_switch+0x578/frame 0xffffffff8202de00
mi_switch() at mi_switch+0x155/frame 0xffffffff8202de20
sleepq_switch() at sleepq_switch+0x119/frame 0xffffffff8202de60
sleepq_timedwait() at sleepq_timedwait+0x4b/frame 0xffffffff8202dea0
_sleep() at _sleep+0x282/frame 0xffffffff8202df40
swapper() at swapper+0x75/frame 0xffffffff8202dfa0
mi_startup() at mi_startup+0x2f3/frame 0xffffffff8202dff0
btext() at btext+0x22

Tracing command kernel pid 0 tid 100035 td 0xfffffe010bf9bac0
sched_switch() at sched_switch+0x578/frame 0xfffffe00e3bcbdf0
mi_switch() at mi_switch+0x155/frame 0xfffffe00e3bcbe10
sleepq_switch() at sleepq_switch+0x119/frame 0xfffffe00e3bcbe50
msleep_spin_sbt() at msleep_spin_sbt+0x151/frame 0xfffffe00e3bcbec0
gtaskqueue_thread_loop() at gtaskqueue_thread_loop+0xf1/frame 0xfffffe00e3bcbef0
fork_exit() at fork_exit+0x80/frame 0xfffffe00e3bcbf30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00e3bcbf30
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
Comment 1 shamsher 2021-11-08 11:00:16 UTC
Just for info : RAID-10 configuration has been done in this
Comment 2 Sumit Saxena 2021-11-09 11:33:59 UTC
Few questions:

1. What are the steps to reproduce the issue ?
2. Output of ./storcli64 /c0 show all. Please download storcli(management utility for adapters managed by mrsas driver) from Broadcom Website.
3. Try with Broadcom released OOB driver. Download URL: https://www.broadcom.com/products/storage/raid-controllers/megaraid-sas-9365-28i
Comment 3 Sumit Saxena 2021-11-10 11:59:22 UTC
How is the issue got fixed  ?