Bug 6272

Summary: oops in Assertion failed! qc != NULL,drivers/scsi/libata-core.c,ata_pio_block,line=3216
Product: IO/Storage Reporter: James Courtier-Dutton (James)
Component: Serial ATAAssignee: Tejun Heo (htejun)
Status: CLOSED CODE_FIX    
Severity: blocking CC: James, protasnb
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: Linux version 2.6.15-gentoo-r7 (root@localhost) (gcc version 3.4 Subsystem:
Regression: --- Bisected commit-id:
Attachments: Extract from dmesg.

Description James Courtier-Dutton 2006-03-22 16:18:55 UTC
Most recent kernel where this bug did not occur: Still happens.
Distribution: Linux version 2.6.15-gentoo-r7 (root@localhost) (gcc version 3.4.5
(Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)) #1 SMP PREEMPT Tue Mar 14 23:04:58
GMT 2006
Hardware Environment: Pentium 4
Software Environment: Linux 2.6.15-gentoo-r7
Problem Description: 

After using
hdparm -S60 /dev/sda
on a SATA disk, the drive will eventually go to sleep.
When one goes to wake it up, it sometimes works, and sometimes does not.
When it fails, one gets an oops
see attachment for extract from kern.log (dmesg)

Steps to reproduce:
hdparm -S60 /dev/sda
wait for the HD to go to sleep.
Try to access the HD.
Repeat until failure.
Comment 1 James Courtier-Dutton 2006-03-22 16:20:08 UTC
Created attachment 7643 [details]
Extract from dmesg.

Extract from dmesg showing the error messages from the libata.
Comment 2 Natalie Protasevich 2007-07-08 17:19:13 UTC
James,
There were multiple fixes to libata. Have you tried latest kernel? Thanks.
Comment 3 Tejun Heo 2007-07-09 11:26:25 UTC
This is definitely fixed now.  Closing.