Bug 256548 - [mrsas] crash, old disk
Summary: [mrsas] crash, old disk
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-11 11:40 UTC by Konrad
Modified: 2022-04-18 01:11 UTC (History)
1 user (show)

See Also:


Attachments
logs from kernel crash (8.98 KB, text/plain)
2022-04-18 01:10 UTC, bbbill42
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad 2021-06-11 11:40:13 UTC
Hello,
I have DELL R730 with H730 controller. I have set HBA for all drivers and hw.mfi.mrsas_enable="1"

I see da0 and da1 disk, smartctl:

=== START OF INFORMATION SECTION ===
Vendor:               IBM-SSG
Product:              S5RE146
Revision:             E01B
Compliance:           SPC-4
User Capacity:        146,814,976,000 bytes [146 GB]
Logical block size:   512 bytes
Rotation Rate:        15000 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000c5005ef23e1f
Serial number:        6XM22ZVA0000B327BRZ7
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Fri Jun 11 13:32:10 2021 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

works good, but when I attache some older drives SAS disk (SAS IBM 10k 146GB or HP SAS 72GB 10k) I have got panic:


Unread portion of the kernel message buffer:


Fatal trap 18: integer divide fault while in kernel mode
cpuid = 1; apic id = 0e
instruction pointer	= 0x20:0xffffffff80bad238
stack pointer	        = 0x0:0xfffffe00ff2aba30
frame pointer	        = 0x0:0xfffffe00ff2aba60
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 13 (g_event)
trap number		= 18
panic: integer divide fault
cpuid = 5
time = 1623407429
KDB: stack backtrace:
#0 0xffffffff80caecb5 at kdb_backtrace+0x65
#1 0xffffffff80c62b21 at vpanic+0x181
#2 0xffffffff80c62993 at panic+0x43
#3 0xffffffff810e8277 at trap_fatal+0x387
#4 0xffffffff810e775b at trap+0x8b
#5 0xffffffff810be928 at calltrap+0x8
#6 0xffffffff80babb3f at g_label_taste+0x1df
#7 0xffffffff80baa24a at g_new_provider_event+0x7a
#8 0xffffffff80ba53ce at g_run_events+0x12e
#9 0xffffffff80c209ce at fork_exit+0x7e
#10 0xffffffff810bf9ae at fork_trampoline+0xe
Uptime: 17h55m43s


when I set hw.mfi.mrsas_enable="0" these disks works goods, but old mfi driver shows /dev/mfi* instead direct /dev/da*
Comment 1 bbbill42 2022-04-18 01:10:44 UTC
Created attachment 233293 [details]
logs from kernel crash
Comment 2 bbbill42 2022-04-18 01:11:42 UTC
Reproduced on 13.0-RELEASE as guest under linux KVM.