#!/bin/bash
#
#
# enable sense data
#sysctl -w dev.scsi.logging_level=0x1000
# enable scanning debuging
#sysctl -w dev.scsi.logging_level=0x1C0
#sysctl -w dev.scsi.logging_level=0x11C0

modprobe sd_mod
modprobe scsi_transport_sas
modprobe scsi_transport_fc
modprobe scsi_transport_spi

#insmod mptbase.ko mpt_debug_level=0x00000020
#insmod mptbase.ko mpt_debug_level=0x00002120

#MPT_DEBUG_EVENTS + MPT_DEBUG_FAIL + MPT_DEBUG_TM + MPT_DEBUG_DV + MPT_DEBUG_REPLY
#insmod mptbase.ko mpt_debug_level=0x00000788

# MPT_DEBUG_EVENTS + MPT_DEBUG_FAIL + MPT_DEBUG_TM + MPT_DEBUG_REPLY
#insmod mptbase.ko mpt_debug_level=0x00000588

# MPT_DEBUG_EVENTS + MPT_DEBUG_REPLY
#insmod mptbase.ko mpt_debug_level=0x00000408

# MPT_DEBUG_EVENTS + MPT_DEBUG_REPLY + MPT_DEBUG_TM
#insmod mptbase.ko mpt_debug_level=0x00000508

# nothing
insmod mptbase.ko
insmod mptscsih.ko
#insmod mptspi.ko
#insmod mptfc.ko
#insmod mptsas.ko mpt_pt_clear=1
insmod mptsas.ko
insmod mptctl.ko
#insmod mptlan.ko
