Project

General

Profile

Bug #4315

mpt_sas panic: BAD TRAP: type=d (#gp General protection)

Added by Rich Ercolani about 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
driver - device drivers
Start date:
2013-11-12
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

http://skysrv.pha.jhu.edu/~rercola/vmdump.6 (3.5G)

> ::stack
mptsas_hash_search+0x30(ffffff2374be0000, 50030480010b0651, f)
mptsas_tgt_alloc+0x56(ffffff2374be0000, 34, 50030480010b0651, 81, f, 11)
mptsas_get_target_device_info+0x134(ffffff2374ab4000, 33, ffffff00f5f7c60e, ffffff00f5f7c600)
mptsas_update_hashtab+0xd9(ffffff2374ab4000)
mptsas_config_all+0x80(ffffff230f321078)
mptsas_bus_config+0x140(ffffff230f321078, 1020008, 2, ffffffff, 0)
scsi_hba_bus_config+0x8b(ffffff230f321078, 1020008, 2, ffffffff, 0)
devi_config_common+0xa5(ffffff230f321078, 1020008, ffffffff)
ndi_devi_config+0x67(ffffff230f321078, 1020008)
ndi_devi_online+0x1d3(ffffff230f321078, 0)
scsi_hba_bus_config_port+0x1db(ffffff22f21848e0, ffffff232b999dc0, 0)
scsi_hba_bus_config_iports+0x218(ffffff22f21848e0, 4080, 1, ffffff232b999dc0, ffffff00f5f7cb40)
scsi_hba_bus_config+0x159(ffffff22f21848e0, 4080, 1, ffffff232b999dc0, ffffff00f5f7cb40)
ndi_devi_config_one+0x1f6(ffffff22f21848e0, ffffff232b999dc0, ffffff00f5f7cb40, 4080)
resolve_pathname+0x1d2(ffffff2373b44220, ffffff00f5f7cbb8, 0, 0)
e_ddi_hold_devi_by_path+0x2c(ffffff2373b44220, 0)
bus_config_phci+0x29(ffffff2374767060)
thread_start+8()

That's a fascinating failure mode.

#1

Updated by Rich Ercolani about 6 years ago

Hey neat, I just had this happen again, on OI151a9.

> ::panicinfo
             cpu                0
          thread ffffff00f5dc9c40
         message BAD TRAP: type=e (#pf Page fault) rp=ffffff00f5dc9840 addr=ffffff21fdafb048
             rdi ffffff21fdafb000
             rsi 5003048001488949
             rdx                f
             rcx               81
              r8                9
              r9                9
             rax                f
             rbx                9
             rbp ffffff00f5dc9950
             r10 ffffff21b6c3d008
             r11                0
             r12               81
             r13 ffffff00f5dc9a84
             r14 5003048001488949
             r15               d4
          fsbase                0
          gsbase fffffffffbc30640
              ds               4b
              es               4b
              fs                0
              gs              1c3
          trapno                e
             err                0
             rip fffffffff7aeeee0
              cs               30
          rflags            10206
             rsp ffffff00f5dc9938
              ss               38
          gdt_hi                0
          gdt_lo         e00001ef
          idt_hi                0
          idt_lo         d0000fff
             ldt                0
            task               70
             cr0         8005003b
             cr2 ffffff21fdafb048
             cr3          4000000
             cr4              6f8
> ::stack
mptsas_hash_search+0x20(ffffff21fdafb000, 5003048001488949, f)
mptsas_tgt_alloc+0x4c(ffffff21fdafb000, d4, 5003048001488949, 81, f, 9)
mptsas_get_target_device_info+0x1ab(ffffff21ecc0b000, 200000d4, ffffff00f5dc9a84, ffffff00f5dc9a88)
mptsas_handle_topo_change+0x93(ffffff22410ba100, ffffff220106a7f8)
mptsas_handle_dr+0x1fe(ffffff22410ba100)
taskq_thread+0x285(ffffff21fd7d8288)
thread_start+8()
> ::mptsas
        mptsas_t inst ncmds suspend  power
================================================================================
ffffff21b7054000    0     0       0 ON=D0
ffffff21ecbfb000    1     1       0 ON=D0
ffffff21ecc0b000    2     1       0 ON=D0
THREAD           STATE    SOBJ                COUNT
ffffff00f78a4c40 ONPROC   <NONE>                  1
                 mutex_enter+0x10
                 mptsas_alloc_extra_sgl_frame+0x35
                 mptsas_scsi_init_pkt+0x46d
                 scsi_init_pkt+0x5c
                 vhci_bind_transport+0x603
                 vhci_scsi_init_pkt+0x160
                 scsi_init_pkt+0x5c
                 sd_setup_rw_pkt+0x12a
                 sd_initpkt_for_buf+0xad
                 sd_start_cmds+0x197
                 sd_core_iostart+0x1d2
                 sd_pm_iostart+0x43
                 sd_mapblockaddr_iostart+0x367
                 sd_xbuf_strategy+0x50
                 xbuf_iostart+0x1e5
                 ddi_xbuf_qstrategy+0xd3
                 sdstrategy+0x101
                 bdev_strategy+0x75
                 ldi_strategy+0x59
                 vdev_disk_io_start+0xd0
                 zio_vdev_io_start+0x1cb
                 zio_execute+0x8d
                 zio_nowait+0x42
                 vdev_raidz_io_start+0x171
                 zio_vdev_io_start+0x1cb
                 zio_execute+0x8d
                 zio_nowait+0x42
                 vdev_mirror_io_start+0x142
                 zio_vdev_io_start+0x20a
                 zio_execute+0x8d
                 zio_nowait+0x42
                 arc_read+0x89a
                 dbuf_prefetch+0xff
                 dmu_zfetch_fetch+0x6b
                 dmu_zfetch_dofetch+0xb8
                 dmu_zfetch_find+0x436
                 dmu_zfetch+0xac
                 dbuf_read+0x117
                 dmu_buf_hold_array_by_dnode+0x1a7
                 dmu_buf_hold_array+0x6e
                 dmu_read_uio+0x4d
                 zfs_read+0x250
                 vnext_read+0x68
                 smb_fem_oplock_read+0x5a
                 vhead_read+0xc1
                 fop_read+0x6b
                 smb_vop_read+0x50
                 smb_fsop_read+0x14f
                 smb_common_read+0x112
                 smb_com_read_andx+0x64
                 smb_dispatch_request+0x4a6
                 smb_session_worker+0x6c
                 taskq_d_thread+0xb1
                 thread_start+8
> ::msgbuf
[snip]
WARNING: /pci@0,0/pci8086,3410@9/pci1000,30d0@0 (mpt_sas2):
        passthrough command timeout
/pci@0,0/pci8086,3410@9/pci1000,30d0@0 (mpt_sas2):
        mpt2 Firmware version v19.0.0.0 (?)
/pci@0,0/pci8086,3410@9/pci1000,30d0@0 (mpt_sas2):
        mpt2: IOC Operational.
WARNING: /pci@0,0/pci8086,3410@9/pci1000,30d0@0 (mpt_sas2):
        mptsas request inquiry page 0x83 for target:d4, lun:0 failed!

panic[cpu0]/thread=ffffff00f5dc9c40:
BAD TRAP: type=e (#pf Page fault) rp=ffffff00f5dc9840 addr=ffffff21fdafb048

sched:
#pf Page fault
Bad kernel fault at addr=0xffffff21fdafb048
pid=0, pc=0xfffffffff7aeeee0, sp=0xffffff00f5dc9938, eflags=0x10206
cr0: 8005003b<pg,wp,ne,et,ts,mp,pe> cr4: 6f8<xmme,fxsr,pge,mce,pae,pse,de>
cr2: ffffff21fdafb048
cr3: 4000000
cr8: 0

        rdi: ffffff21fdafb000 rsi: 5003048001488949 rdx:                f
        rcx:               81  r8:                9  r9:                9
        rax:                f rbx:                9 rbp: ffffff00f5dc9950
        r10: ffffff21b6c3d008 r11:                0 r12:               81
        r13: ffffff00f5dc9a84 r14: 5003048001488949 r15:               d4
        fsb:                0 gsb: fffffffffbc30640  ds:               4b
         es:               4b  fs:                0  gs:              1c3
        trp:                e err:                0 rip: fffffffff7aeeee0
         cs:               30 rfl:            10206 rsp: ffffff00f5dc9938
         ss:               38

ffffff00f5dc9710 unix:die+100 ()
ffffff00f5dc9830 unix:trap+17db ()
ffffff00f5dc9840 unix:cmntrap+e6 ()
ffffff00f5dc9950 mpt_sas:mptsas_hash_search+20 ()
ffffff00f5dc99d0 mpt_sas:mptsas_tgt_alloc+4c ()
ffffff00f5dc9a60 mpt_sas:mptsas_get_target_device_info+1ab ()
ffffff00f5dc9b20 mpt_sas:mptsas_handle_topo_change+93 ()
ffffff00f5dc9b70 mpt_sas:mptsas_handle_dr+1fe ()
ffffff00f5dc9c20 genunix:taskq_thread+285 ()
ffffff00f5dc9c30 unix:thread_start+8 ()

syncing file systems...
 done
dumping to /dev/zvol/dsk/rpool/dump, offset 65536, content: kernel

Also available in: Atom PDF