Bug 51931 - Intermittent no boot with failed IDENTIFY on ASM1061 when DVD attached
Summary: Intermittent no boot with failed IDENTIFY on ASM1061 when DVD attached
Status: NEW
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: All Linux
: P1 blocking
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-23 05:54 UTC by Brian Spisak
Modified: 2019-02-26 23:24 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.5.0-21-generic.efi.signed
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Brian Spisak 2012-12-23 05:54:13 UTC
Problem:

Failed boot when my ASUS DRW-24B1/ST DVD drive is attached to my Asmedia ASM1061 on ASUS P8Z77-V Pro.

Symptoms:

When DVD is attached and using kernel 3.5.0-21: the boot hangs in various places without any libata messages. I have been able to boot all the way to my desktop once, but then the system hung.

When DVD is attached and using kernel 3.2.0-35 

The following happens after a ~30 second delay. No further progress occurs afterwards and the system must be reset. libata.force=norst doesn't help. 

ata8.00: exception Emask 0x52 Sact 0x0 SErr 0xffffffff action 0xe frozen
ata8: SError: { blah blah }
ata8.00: failed command: IDENTIFY PACKET DEVICE
ata8.00: cmd blah blah
         res blah blah (ATA bus error)
ata8.00: status: { DRDY }
ata8: hard resetting link

Background:

The Asmedia ASM1061 is an integrated PCIe to SATA bridge on the P8Z77-V providing 2 x 6Gb/s ports in addition to the 2 x 6Gb/s + 4 x 3Gb/s provided by the Z77. Although Asmedia says it is fully compliant to SATA specs, the fine print in the ASUS manual says "These SATA ports are for data hard drivers [sic] only. ATAPI devices are not supported." Despite this, I was able to install Windows 7 using this drive and I can also run the Ubuntu installer from it as well. The only time there is a problem is during linux boot.

In googling this issue, there is evidence that others have experienced the same issue when attaching a DVD drive to the Asmedia. In all cases that I read, they worked around the problem by using the Z77 instead. Unfortunately, I can't simply switch this device to another SATA port because they are already allocated to other devices. (My chipset's 2 x 6Gb/s are connected to my boot SSD and a fast HDD while the 4 x 3Gb/s ports are running a RAID 5 array.) If this can't be fixed or worked around, I suppose I'll have to go buy a SATA add-in card just for the DVD drive. Blech.

Thoughts:

Since this drive on this controller works fine in Windows 7, it seems it should also work with limux. At the very least, not having an error result in a hung system would be nice. I can live without the DVD in linux, but as this is a dual-boot machine, I can't physically disconnect it everytime I want to boot linux. 

I don't really know my way around linux that well, but am happy to help anyway I can.
Comment 1 Brian Spisak 2012-12-24 19:12:48 UTC
I found that by editing /lib/udev/rules.d/60-persistent-storage.rules to disable ATAPI the problem goes away.

If the ASM1061 doesn't support ATAPI, shouldn't the kernel be smart enough not to send an ATAPI command to it?
Comment 2 Alan 2014-01-20 19:07:06 UTC
The kernel is smart enough. However ata_id runs as a privileged command from userspace and unlike the kernel it is not smart enough to take special action and that may be the Fedora problem you have.

It should still be working the ASM1061 is supposed to support ATAPI devices and people report that it does so correctly.

http://rog.asus.com/forum/archive/index.php/t-28796.html?s=2eb6f05134859245cc4b899bc129c0bd

btw suggests the ATAPI problem was fixed by a board RMA in at least one case so maybe there are different versions of the device or something ?

Anyway libata.atapi_passthru16=0 will make the kernel treat it so that the device works, it won't fix the ata_id bug - that needs to go to Fedora/Red Hat.

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