Bug 6663 - Serial ATA problems with hotplugging
Summary: Serial ATA problems with hotplugging
Status: REJECTED DOCUMENTED
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: i386 Linux
: P2 low
Assignee: Jeff Garzik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-08 01:08 UTC by Priit Laes
Modified: 2007-06-18 08:23 UTC (History)
0 users

See Also:
Kernel Version: 2.6.16-gentoo-r8
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Priit Laes 2006-06-08 01:08:20 UTC
Distribution: Gentoo GNU/Linux
Hardware: Dell Latitude D610 laptop
Problem Description: Removing combo cdrw drive results in abnormal status
messages in dmesg:
-- SNIP --
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ata2: command 0xa0 timeout, stat 0x7f host_stat 0x0
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ata2: command 0xa0 timeout, stat 0x7f host_stat 0x0
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
sr0: CDROM (ioctl) error, command: <6>cdb[0]=0x0 00 00 00 00 00 00
sr: Current: sense key=0x7
    ASC=0x0 ASCQ=0x0
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ata2: command 0xa0 timeout, stat 0x7f host_stat 0x0
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
sr 1:0:0:0: ioctl_internal_command return code = 8000002
   : Current: sense key=0x7
    ASC=0x0 ASCQ=0x0
ATA: abnormal status 0x7F on port 0x177
-- SNIP --

It does keep adding these messages until I put the drive back in:
dmesg:
---
sr 1:0:0:0: ioctl_internal_command return code = 8000002
   : Current [descriptor]: sense key=0x0
    ASC=0x0 ASCQ=0x0
---

After all these steps (removing drive, putting it back) I was able to mount a CD
using the same drive.
Comment 1 Andrew Morton 2006-06-08 01:34:13 UTC
sata hotplug isn't actually implemented yet.  With luck we'll have
it in 2.6.18, so your testing of the 2.6.18-rcN series would
be appreciated.

Comment 2 Alan 2007-06-18 08:23:37 UTC
Only warm plug is supported by this hardware the behaviour is expected. You should now (2.6.20) be able to tell the kernel to remove the drive, pull it and then replace it, and tell the kernel to rescan (as with scsi devices). You may need ACPI scripts to run the right ACPI method for unplugging/dock support for this too

Note You need to log in before you can comment on or make changes to this bug.