[Bug 256548] [mrsas] crash, old disk

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 11 Jun 2021 11:40:13 UTC

            Bug ID: 256548
           Summary: [mrsas] crash, old disk
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: konrad.kreciwilk@korbank.pl

I have DELL R730 with H730 controller. I have set HBA for all drivers and

I see da0 and da1 disk, smartctl:

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 0x0, 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*

You are receiving this mail because:
You are the assignee for the bug.