Re: Intermittent SATA failures ("link offline, clearing class 1 to NONE")

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

 



Hello,

On 12/01/2009 04:37 PM, Alex Vandiver wrote:
> My original post included both 'goodboot' and 'badboot' files, which
> were the dmesg output from a successful boot, and a failed boot with
> the event -- is that not what you are looking for?  Apologies if I'm
> misunderstanding.

Ooh... sorry, I missed them.  A problem with large screen is that
those attachments show up so far down in the screen that they become
pretty easy to miss.  :-)

> I tried 2.6.32-rc6 at the time as well -- it happened to have the
> fault much more often, and showed that both ata2.00 and ata2.01 could
> be affected.  I've attached dmesg output from a successful boot, as
> well as dmesg output from a boot which affected sdc, and a boot which
> affected sdd.

Hmmm... Okay, the problem is that, ata_piix has SCR regs but doesn't
have PHY event notification.  libata reset protocol does the following
during reset.

1. plug interrupts.
2. reset and determine device presence.
3. clear PHY events.
4. unplug interrupts.
5. check link status and retry if link status doesn't match device
   presence so that no hotplug event is lost.

The assumption is that a controller which reports link status will
notify EH if something happens after #4.  ata_piix doesn't have such
thing and #5 sees that the link is offline (this sometimes happens
after hardreset, links bounces between on and offline states) and
marks that the device is not present.  As the link was temporarily
down, when it gets back up, it would notify another link event and
libata will retry probing but that never happens with ata_piix so it
misses the devices.

Removing PIIX_FLAG_SIDPR from ich8_sata and ich8_2port_sata entries in
ata_piix.c::piix_port_info fixes the problem, right?

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux