Re: SMART problems in 2.6.22

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bruce Allen <ballen@...>
Cc: Mark Lord <liml@...>, David Greaves <david@...>, Douglas Gilbert <dougg@...>, Tejun Heo <htejun@...>, Alan Cox <alan@...>, Jeff Garzik <jeff@...>, Linux Kernel Mailing List <linux-kernel@...>, Jan Dvorak <fermentol@...>, Klaus Fuerstberger <kfuerstberger@...>, Bruce Allen <bruce.allen@...>, Robert Hancock <hancockr@...>
Date: Monday, July 16, 2007 - 6:48 am

On Tue, 10 Jul 2007, Kai Makisara wrote:

...
...
...
The other system with the Maxtor disk fails in a slightly different way 
(it correctly returns the c2 byte but not in the correct location):

[  162.896173] ata_qc_complete before: 00 00 00 40
[  162.896179] ata_qc_complete 16: 00 c2 00 50



My earlier 'git bisect' suggested that this problem surfaced after the 
patch

1e999736cafdffc374f22eed37b291129ef82e4e is first bad commit
commit 1e999736cafdffc374f22eed37b291129ef82e4e
Author: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date:   Wed Apr 11 00:23:13 2007 +0100

    libata: HPA support

I have now done some further tests to see what is happening. 
It turned out that after commenting the call (at line 1956 in 
drivers/ata/libata-core.c in 2.6.22)

                        if (ata_id_hpa_enabled(dev->id))
                           dev->n_sectors = ata_hpa_resize(dev);

'smartctl -H' worked again without problems. This applied to both of the 
systems where I see the problem. The disks in both systems support hpa but 
nothing is hidden. Next I commented only the call to 
ata_read_native_max_address_ext() in ata_hpa_resize(). This was enough 
to remove the problem (as was expected).

So, the question is: why does calling ata_read_native_max_address_ext() 
when booting the system cause the SMART RETURN STATUS fail much later?

-- 
Kai
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SMART problems in 2.6.22, Bruce Allen, (Sun Jul 8, 8:32 pm)
Re: SMART problems in 2.6.22, Kai Makisara, (Mon Jul 9, 5:11 pm)
Re: SMART problems in 2.6.22, Kai Makisara, (Mon Jul 16, 6:48 am)
Re: SMART problems in 2.6.22, Tejun Heo, (Mon Jul 16, 7:22 am)
Re: SMART problems in 2.6.22, Kai Makisara, (Mon Jul 16, 7:58 am)
Re: SMART problems in 2.6.22, Klaus Fuerstberger, (Mon Jul 16, 9:12 am)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 16, 5:27 pm)
Re: SMART problems in 2.6.22, Douglas Gilbert, (Tue Jul 10, 12:24 am)
Re: SMART problems in 2.6.22, Bruce Allen, (Tue Jul 10, 9:31 pm)
Re: SMART problems in 2.6.22, David Greaves, (Mon Jul 9, 7:55 am)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 9, 1:56 pm)
Re: SMART problems in 2.6.22, Jeff Garzik, (Mon Jul 9, 2:43 pm)
Re: SMART problems in 2.6.22, David Greaves, (Mon Jul 9, 2:00 pm)
Re: SMART problems in 2.6.22, Bruce Allen, (Sun Jul 8, 9:14 pm)
Re: [smartmontools-support] SMART problems in 2.6.22, Adam Spiers, (Mon Jul 9, 7:35 pm)
Re: SMART problems in 2.6.22, Jeff Garzik, (Sun Jul 8, 10:09 pm)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 9, 1:35 pm)
Re: SMART problems in 2.6.22, Jeff Garzik, (Mon Jul 9, 1:52 pm)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 9, 2:02 pm)