From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756734AbXGKBcD (ORCPT ); Tue, 10 Jul 2007 21:32:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751583AbXGKBbw (ORCPT ); Tue, 10 Jul 2007 21:31:52 -0400 Received: from trinity.phys.uwm.edu ([129.89.57.159]:42441 "EHLO trinity.phys.uwm.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbXGKBbv (ORCPT ); Tue, 10 Jul 2007 21:31:51 -0400 Date: Tue, 10 Jul 2007 20:31:11 -0500 (CDT) From: Bruce Allen X-X-Sender: ballen@trinity.phys.uwm.edu To: Jeff Garzik , Kai Makisara , Douglas Gilbert cc: Mark Lord , David Greaves , Tejun Heo , Alan Cox , Linux Kernel Mailing List , Jan Dvorak , Klaus Fuerstberger , Bruce Allen , Robert Hancock Subject: Re: SMART problems in 2.6.22 In-Reply-To: <469309FA.6040501@torque.net> Message-ID: References: <469309FA.6040501@torque.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Jul 2007, Douglas Gilbert wrote: > Kai Makisara wrote: >> I have done some more debugging on this one. An easy way to reproduce >> the >> The log shows that the sense data returned by the commands differ: with >> 2.6.22 the bytes 4f and 2c (tf.lbam and tf.lbah) are not returned. Both >> of the status commands fail to return these bytes but the tests in >> smartctl are more strict for the second case. This is why the second >> status command seems to be failing. > Kai, Thanks for the analysis. > So when smartmontools sees 0 and 0 in those positions it pulls out the > red card for that device. My guess is that libata in lk 2.6.22 is > corrupting those FIS device to host register values. Kai, Doug: thank you very much for tracking down the source of this problem. Jeff: OK, from what I am reading here I think that this is a genuine libata/kernel bug. But I'm out of my depth here, so the ball is in your court. Hopefully you'll understand what's going on and how to fix it. Cheers, Bruce