8881681b24
The mps(4) and mpr(4) drivers and hardware handle T10 Protection Information, which is a system of checksums and guard blocks to protect data while it is being transferred and while it is on disk. It is also known as T10 DIF. For more details, see section 4.22 of the SBC-4 spec. Supporting Type 2 protection requires using 32 byte CDBs, and filling in the fields in those CDBs. We don't yet support that in the da(4) driver. Type 1 and Type 3 protection don't require that, and can be handled by the mps(4)/mpr(4) driver's code and firmware without any additional input from the da(4) driver. If a drive has Type 2 protection enabled (you frequently see this with SAS drives shipped from Dell), don't set the various EEDP fields in the mps(4)/mpr(4) driver command fields. Otherwise, you wind up with errors like this that would otherwise make no sense: (da9:mpr0:0:18:0): READ(10). CDB: 28 00 00 00 00 00 00 02 00 00 (da9:mpr0:0:18:0): CAM status: SCSI Status Error (da9:mpr0:0:18:0): SCSI status: Check Condition (da9:mpr0:0:18:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da9:mpr0:0:18:0): (da9:mpr0:0:18:0): Field Replaceable Unit: 0 (da9:mpr0:0:18:0): Command Specific Info: 0 (da9:mpr0:0:18:0): (da9:mpr0:0:18:0): Descriptor 0x80: f8 21 (da9:mpr0:0:18:0): Descriptor 0x81: 00 00 00 00 00 00 (da9:mpr0:0:18:0): Error 22, Unretryable error In other words, what kind of strange SAS hard drive doesn't support a standard 10 byte SCSI READ command? In this case, one that has Type 2 protection enabled. We can revisit this when we put Type 2 protection support in the da(4) driver, but for now this will help people who put Type 2 formatted drives in a system and wonder what in the world is going on. MFC after: 3 days Sponsored by: Spectra Logic |
||
---|---|---|
.. | ||
aac | ||
aacraid | ||
acpi_support | ||
acpica | ||
adb | ||
adlink | ||
advansys | ||
ae | ||
age | ||
agp | ||
aha | ||
ahci | ||
aic | ||
aic7xxx | ||
al_eth | ||
alc | ||
ale | ||
alpm | ||
altera | ||
amd_ecc_inject | ||
amdpm | ||
amdsbwd | ||
amdsmb | ||
amdsmn | ||
amdtemp | ||
amr | ||
an | ||
arcmsr | ||
asmc | ||
ata | ||
ath | ||
atkbdc | ||
auxio | ||
axgbe | ||
bce | ||
beri | ||
bfe | ||
bge | ||
bhnd | ||
bktr | ||
bm | ||
bnxt | ||
buslogic | ||
bvm | ||
bwi | ||
bwn | ||
bxe | ||
cadence | ||
cardbus | ||
cas | ||
ce | ||
cesa | ||
cfe | ||
cfi | ||
chromebook_platform | ||
ciss | ||
cm | ||
cmx | ||
coretemp | ||
cp | ||
cpuctl | ||
cpufreq | ||
cs | ||
ctau | ||
cx | ||
cxgb | ||
cxgbe | ||
cy | ||
cyapa | ||
dc | ||
dcons | ||
de | ||
dme | ||
dpaa | ||
dpms | ||
dpt | ||
drm | ||
drm2 | ||
dwc | ||
e1000 | ||
ed | ||
efidev | ||
ena | ||
ep | ||
esp | ||
et | ||
etherswitch | ||
evdev | ||
ex | ||
exca | ||
extres | ||
fb | ||
fdc | ||
fdt | ||
fe | ||
ffec | ||
filemon | ||
firewire | ||
flash | ||
fxp | ||
gem | ||
glxiic | ||
glxsb | ||
gpio | ||
gxemul | ||
hdmi | ||
hifn | ||
hme | ||
hpt27xx | ||
hptiop | ||
hptmv | ||
hptnr | ||
hptrr | ||
hwpmc | ||
hyperv | ||
ic | ||
ichiic | ||
ichsmb | ||
ichwd | ||
ida | ||
if_ndis | ||
iicbus | ||
iir | ||
imcsmb | ||
intel | ||
intpm | ||
io | ||
ioat | ||
ipmi | ||
ips | ||
ipw | ||
isci | ||
iscsi | ||
iscsi_initiator | ||
iser | ||
isl | ||
ismt | ||
isp | ||
ispfw | ||
iwi | ||
iwm | ||
iwn | ||
ixgb | ||
ixgbe | ||
ixl | ||
jedec_dimm | ||
jedec_ts | ||
jme | ||
joy | ||
kbd | ||
kbdmux | ||
ksyms | ||
le | ||
led | ||
lge | ||
liquidio | ||
lmc | ||
malo | ||
mbox | ||
mc146818 | ||
md | ||
mdio | ||
mem | ||
mfi | ||
mge | ||
mii | ||
mk48txx | ||
mlx | ||
mlx4 | ||
mlx5 | ||
mly | ||
mmc | ||
mmcnull | ||
mn | ||
mpr | ||
mps | ||
mpt | ||
mrsas | ||
mse | ||
msk | ||
mthca | ||
mvs | ||
mwl | ||
mxge | ||
my | ||
nand | ||
ncr | ||
nctgpio | ||
ncv | ||
neta | ||
netfpga10g/nf10bmac | ||
netmap | ||
nfe | ||
nfsmb | ||
nge | ||
nmdm | ||
nsp | ||
ntb | ||
null | ||
nvd | ||
nvme | ||
nvram | ||
nvram2env | ||
nxge | ||
oce | ||
ofw | ||
otus | ||
ow | ||
pbio | ||
pccard | ||
pccbb | ||
pcf | ||
pci | ||
pcn | ||
pdq | ||
pms | ||
powermac_nvram | ||
ppbus | ||
ppc | ||
proto | ||
psci | ||
pst | ||
pty | ||
puc | ||
qlnx/qlnxe | ||
qlxgb | ||
qlxgbe | ||
qlxge | ||
quicc | ||
ral | ||
random | ||
rc | ||
rccgpio | ||
re | ||
rl | ||
rndtest | ||
rp | ||
rt | ||
rtwn | ||
safe | ||
sbni | ||
scc | ||
sdhci | ||
sec | ||
sf | ||
sfxge | ||
sge | ||
siis | ||
sio | ||
sis | ||
sk | ||
smbus | ||
smc | ||
sn | ||
snp | ||
sound | ||
speaker | ||
spibus | ||
ste | ||
stg | ||
stge | ||
sym | ||
syscons | ||
tcp_log | ||
tdfx | ||
terasic | ||
ti | ||
tl | ||
tpm | ||
trm | ||
tsec | ||
twa | ||
twe | ||
tws | ||
tx | ||
txp | ||
uart | ||
ubsec | ||
usb | ||
vge | ||
viapm | ||
viawd | ||
videomode | ||
virtio | ||
vkbd | ||
vmware/vmxnet3 | ||
vnic | ||
vr | ||
vt | ||
vte | ||
vx | ||
vxge | ||
watchdog | ||
wb | ||
wbwd | ||
wi | ||
wpi | ||
wtap | ||
xdma | ||
xe | ||
xen | ||
xilinx | ||
xl |