Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494078 - sr_mod and ata error when a USB device is plugged
Summary: sr_mod and ata error when a USB device is plugged
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 18:16 UTC by Raphaël Droz
Modified: 2014-05-01 17:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Asrock Dual SataII lspci -kvnn (lspci-kvnn.txt,8.84 KB, text/plain)
2013-12-12 18:17 UTC, Raphaël Droz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Droz 2013-12-12 18:16:29 UTC
I'm not sure yet if it's a hardware problem. Here is the symptom:

- asrock dual sataII motherboard
- hard-drive on the SATA II (unique) slot
- optical device on a SATA I (first) slot
In 90% cases, when I plug my printer (Epson CX 6400) to any of the USB ports I get a SATA error (and a kernel reboot in most cases).
It even happens if I physically touch an inside part of the USB female port with the male printer connector (printer powered-off).

From what I can say (but didn't tested enough), if sr_mod is removed the bug isn't triggered.
(sr_mod handles the optical device and is in no much way related to the USB)

If I load sr_mod after having successfully plugged the printer, an "CPU / hardware error" failure arises (which I haven't logged yet)

Attached is lspcsi -kvnn and follows a kernel trace of a partial SATA error (in this case the SATA controller seems to have been able to survive through a soft-reset).

The fact that plugging could success when sr_mod is not loaded could be seen as a clue in the direction of a software bug.


Reproducible: Always

Actual Results:  
Dec 12 17:42:55 home kernel: [174559.832623] ata2.00: exception Emask 0x12 SAct 0x0 SErr 0x48d0401 action 0xe frozen
Dec 12 17:42:55 home kernel: [174559.832727] ata2.00: ST_FIRST: !(DRQ|ERR|DF)
Dec 12 17:42:55 home kernel: [174559.832775] ata2: SError: { RecovData Proto PHYRdyChg CommWake 10B8B LinkSeq DevExch }
Dec 12 17:42:55 home kernel: [174559.832862] sr 1:0:0:0: CDB: 
Dec 12 17:42:55 home kernel: [174559.832896] Get event status notification: 4a 01 00 00 10 00 00 00 08 00
Dec 12 17:42:55 home kernel: [174559.833014] ata2.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 0 pio 16392 in
Dec 12 17:42:55 home kernel: [174559.833014]          res 50/00:00:00:08:00/00:00:00:00:00/a0 Emask 0x12 (ATA bus error)
Dec 12 17:42:55 home kernel: [174559.833161] ata2.00: status: { DRDY }
Dec 12 17:42:56 home kernel: [174560.548049] ata2: soft resetting link
Dec 12 17:42:56 home kernel: [174560.704077] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Dec 12 17:42:56 home kernel: [174560.760303] ata2.00: configured for UDMA/100
Dec 12 17:42:56 home kernel: [174560.763591] ata2: EH complete
Comment 1 Raphaël Droz 2013-12-12 18:17:22 UTC
Created attachment 365172 [details]
Asrock Dual SataII lspci -kvnn
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-16 12:02:44 UTC
1) Please post your `emerge --info' output in a comment.
Comment 3 Mike Pagano gentoo-dev 2014-03-07 20:10:28 UTC
I found a post where a user which an asrock board switched sata ports to solve this: 

" SATA cables from the SATA3_A0_A1 ports to the SATA3_0_1 ports."

Not sure what your MB has on it. Can you take a look?
Comment 4 Raphaël Droz 2014-03-07 20:32:23 UTC
My motherboard has no SATA3 and I don't really understand what means the sentence you quoted (do you have an online source/thread ?)

But I interpret this as a hint in the direction of switching the optical drive from one sata port to the other. I'll try this.

I've not yet taken the time to dig more into this issue (... but if this one end up being about hardware, then it'd not be the only one of this MB)


thank for your interest !
Comment 5 Mike Pagano gentoo-dev 2014-05-01 17:53:50 UTC
Please let us know if you attempted the switch and what the results were.

Thanks.