[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#852038: linux-image-3.16.0-4-amd64: Many "Unhandled sense code" errors when using a certain model of USB hard drives.



Package: src:linux
Version: 3.16.39-1
Severity: important

Dear Maintainer,
After upgrading to this new kernel, I immediately noticed hard drive errors in dmesg:
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc] Unhandled sense code
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:14:20 2017] Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:14:20 2017] Sense Key : Hardware Error [current] [descriptor]
[Wed Jan 18 21:14:20 2017] Descriptor sense data with sense descriptors (in hex):
[Wed Jan 18 21:14:20 2017]         72 04 00 00 00 00 00 0e 09 0c 00 00 00 81 00 00
[Wed Jan 18 21:14:20 2017]         00 00 00 00 40 50
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:14:20 2017] Add. Sense: No additional sense information
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc] CDB:
[Wed Jan 18 21:14:20 2017] ATA command pass through(12)/Blank: a1 06 20 00 00 00 00 00 00 e5 00 00
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc] Unhandled sense code
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:14:20 2017] Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:14:20 2017] Sense Key : Hardware Error [current] [descriptor]
[Wed Jan 18 21:14:20 2017] Descriptor sense data with sense descriptors (in hex):
[Wed Jan 18 21:14:20 2017]         72 04 00 00 00 00 00 0e 09 0c 00 00 00 00 00 00
[Wed Jan 18 21:14:20 2017]         00 4f 00 c2 40 50
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:14:20 2017] Add. Sense: No additional sense information
[Wed Jan 18 21:14:20 2017] sd 5:0:0:0: [sdc] CDB:
[Wed Jan 18 21:14:20 2017] ATA command pass through(12)/Blank: a1 06 20 da 00 00 4f c2 00 b0 00 00
[Wed Jan 18 21:24:20 2017] sd 5:0:0:0: [sdc] Unhandled sense code
[Wed Jan 18 21:24:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:24:20 2017] Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[Wed Jan 18 21:24:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:24:20 2017] Sense Key : Hardware Error [current] [descriptor]
[Wed Jan 18 21:24:20 2017] Descriptor sense data with sense descriptors (in hex):
[Wed Jan 18 21:24:20 2017]         72 04 00 00 00 00 00 0e 09 0c 00 00 00 ff 00 00
[Wed Jan 18 21:24:20 2017]         00 00 00 00 40 50
[Wed Jan 18 21:24:20 2017] sd 5:0:0:0: [sdc]
[Wed Jan 18 21:24:20 2017] Add. Sense: No additional sense information
[Wed Jan 18 21:24:20 2017] sd 5:0:0:0: [sdc] CDB:
[Wed Jan 18 21:24:20 2017] ATA command pass through(12)/Blank: a1 06 20 00 00 00 00 00 00 e5 00 00

I thought my hard drive was dying so I immediately bought a new one and replaced it. When I restored my backup to the new drive, I noticed the same errors happening on the backup drive, which happens to be the same model as the drive I replaced. I thought there was no way that both of these drives failed at the exact same time, since the backup drive is only spun up once a week.

The new drive is a different model and doesn't report any errors. I plugged the replaced drive into a different machine and booted knoppix which was running kernel 3.9.6 and didn't see any of the errors I saw before after reading a bunch of the drive and copying 14G.

When troubleshooting I was able to find this Fedora bug report that seems relevant: https://bugzilla.redhat.com/show_bug.cgi?id=1351305

My errors would show up more or less constantly. From my troubleshooting, I've confirmed that:
My computer and USB bus is functioning normally (the new USB drive doesn't generate errors)
Neither hard drive is bad like I originally believed (no problem using the drive in another computer)
The last thing I did before this problem started happening was to upgrade my system to the new minor version of Debian stable.

The hard drives in question are this one: https://www.newegg.com/Product/Product.aspx?Item=N82E16822152425 "SAMSUNG D3 Station 5TB USB 3.0 3.5" Desktop External Hard Drive STSHX-D501TDB Black"

Please let me know what I can do to help get this bug resolved. I fear that if I continue to use these drives I won't be able to catch real hardware failures and that performances may be impacted by this. Thanks!

-- Package-specific info:
** Version:
Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.39-1 (2016-12-30)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=82a98e66-8095-404e-aaf6-e1967e04cd90 ro quiet

** Not tainted

** Kernel log:
[28423.237100] perf interrupt took too long (2528 > 2500), lowering kernel.perf_event_max_sample_rate to 50000

** Model information
sys_vendor:         
product_name:         
product_version:         
chassis_vendor:         
chassis_version:         
bios_vendor: Intel Corp.
bios_version: WYLPT10H.86A.0033.2014.1201.0940
board_vendor: Intel Corporation
board_name: D34010WYK
board_version: H14771-303

** Loaded modules:
xt_multiport
iptable_filter
ip_tables
x_tables
cfg80211
rfkill
nfsd
auth_rpcgss
oid_registry
nfs_acl
nfs
lockd
fscache
sunrpc
hid_logitech_dj
snd_usb_audio
snd_usbmidi_lib
snd_rawmidi
snd_seq_device
joydev
hid_generic
usbhid
usb_storage
snd_hda_codec_hdmi
nls_utf8
nls_cp437
vfat
fat
iTCO_wdt
iTCO_vendor_support
x86_pkg_temp_thermal
intel_powerclamp
intel_rapl
coretemp
kvm_intel
kvm
evdev
crc32_pclmul
snd_hda_codec_realtek
aesni_intel
snd_hda_codec_generic
ir_lirc_codec
aes_x86_64
lirc_dev
lrw
gf128mul
ir_mce_kbd_decoder
ir_sharp_decoder
glue_helper
ablk_helper
cryptd
ir_rc6_decoder
i915
ir_sanyo_decoder
pcspkr
ir_sony_decoder
efi_pstore
ir_jvc_decoder
ir_rc5_decoder
drm_kms_helper
efivars
ir_nec_decoder
snd_hda_intel
drm
snd_hda_controller
i2c_algo_bit
lpc_ich
snd_hda_codec
mei_me
i2c_i801
mei
snd_hwdep
mfd_core
snd_soc_rt5640
tpm_tis
snd_soc_rl6231
tpm
rc_rc6_mce
battery
snd_soc_core
nuvoton_cir
snd_compress
rc_core
snd_pcm
snd_timer
snd
soundcore
regmap_i2c
snd_soc_sst_acpi
video
i2c_designware_platform
i2c_designware_core
processor
button
fuse
autofs4
ext4
crc16
mbcache
jbd2
sg
sd_mod
crc_t10dif
crct10dif_generic
ahci
libahci
ehci_pci
xhci_hcd
ehci_hcd
crct10dif_pclmul
crct10dif_common
libata
crc32c_intel
scsi_mod
e1000e
ptp
usbcore
pps_core
usb_common
thermal
fan
thermal_sys
i2c_hid
hid
sdhci_acpi
sdhci
i2c_core
mmc_core

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 09)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 63
	Region 0: Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at f000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 64
	Region 0: Memory at f7c34000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04) (prog-if 30 [XHCI])
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 59
	Region 0: Memory at f7c20000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 61
	Region 0: Memory at f7c3e000 (64-bit, non-prefetchable) [size=32]
	Capabilities: <access denied>
	Kernel driver in use: mei_me

00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I218-V [8086:1559] (rev 04)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 58
	Region 0: Memory at f7c00000 (32-bit, non-prefetchable) [size=128K]
	Region 1: Memory at f7c3c000 (32-bit, non-prefetchable) [size=4K]
	Region 2: I/O ports at f080 [size=32]
	Capabilities: <access denied>
	Kernel driver in use: e1000e

00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 62
	Region 0: Memory at f7c30000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 23
	Region 0: Memory at f7c3b000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04) (prog-if 01 [AHCI 1.0])
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 60
	Region 0: I/O ports at f0d0 [size=8]
	Region 1: I/O ports at f0c0 [size=4]
	Region 2: I/O ports at f0b0 [size=8]
	Region 3: I/O ports at f0a0 [size=4]
	Region 4: I/O ports at f060 [size=32]
	Region 5: Memory at f7c3a000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
	Subsystem: Intel Corporation Device [8086:2054]
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin C routed to IRQ 18
	Region 0: Memory at f7c39000 (64-bit, non-prefetchable) [size=256]
	Region 4: I/O ports at f040 [size=32]


** USB devices:
Bus 003 Device 002: ID 8087:8000 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 006: ID 2109:0812  
Bus 002 Device 004: ID 2109:0812  
Bus 002 Device 005: ID 2109:0812  
Bus 002 Device 003: ID 2109:0812  
Bus 002 Device 002: ID 0bc2:3322 Seagate RSS LLC 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 05af:0906 Jing-Mold Enterprise Co., Ltd 
Bus 001 Device 014: ID 0d8c:0008 C-Media Electronics, Inc. 
Bus 001 Device 013: ID 17ef:602b Lenovo 
Bus 001 Device 007: ID 2109:2812  
Bus 001 Device 003: ID 2109:2812  
Bus 001 Device 006: ID 0c40:8000  
Bus 001 Device 005: ID 1781:0938 Multiple Vendors Iguanaworks USB IR Transceiver
Bus 001 Device 012: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 001 Device 011: ID 0e8f:0020 GreenAsia Inc. USB to PS/2 Adapter
Bus 001 Device 018: ID 400c:107a  
Bus 001 Device 017: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 016: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 001 Device 015: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 010: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 009: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 001 Device 004: ID 2109:2812  
Bus 001 Device 002: ID 2109:2812  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-image-3.16.0-4-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.56
ii  initramfs-tools [linux-initramfs-tool]  0.120+deb8u2
ii  kmod                                    18-3
ii  linux-base                              3.5

Versions of packages linux-image-3.16.0-4-amd64 recommends:
ii  firmware-linux-free  3.3
ii  irqbalance           1.0.6-3

Versions of packages linux-image-3.16.0-4-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-efi                2.02~beta2-22+deb8u1
pn  linux-doc-3.16          <none>

Versions of packages linux-image-3.16.0-4-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
pn  firmware-linux-nonfree  <none>
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.16.0-4-amd64/prerm/removing-running-kernel-3.16.0-4-amd64: true
  linux-image-3.16.0-4-amd64/postinst/mips-initrd-3.16.0-4-amd64:
  linux-image-3.16.0-4-amd64/postinst/depmod-error-initrd-3.16.0-4-amd64: false


Reply to: