NetBSD Problem Report #37866
From smb@cs.columbia.edu Fri Jan 25 00:37:53 2008
Return-Path: <smb@cs.columbia.edu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 60B4A63B853
for <gnats-bugs@gnats.NetBSD.org>; Fri, 25 Jan 2008 00:37:53 +0000 (UTC)
Message-Id: <20080125003747.253E0282C9A@yellowstone.machshav.com>
Date: Thu, 24 Jan 2008 19:37:47 -0500 (EST)
From: smb@cs.columbia.edu
Reply-To: smb@cs.columbia.edu
To: gnats-bugs@gnats.NetBSD.org
Subject: Thinkpad T61 disk doesn't work in AHCI mode
X-Send-Pr-Version: 3.95
>Number: 37866
>Category: kern
>Synopsis: Thinkpad T61 disk doesn't work in AHCI mode
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 25 00:40:00 +0000 2008
>Last-Modified: Tue Jan 12 07:10:03 +0000 2010
>Originator: Steven M. Bellovin
>Release: NetBSD 4.99.49
>Organization:
Department of Computer Science, Columbia University
>Environment:
System: NetBSD yellowstone.machshav.com 4.99.49 NetBSD 4.99.49 (YELLOWSTONE) #0: Mon Jan 21 23:10:45 EST 2008 smb@yellowstone.machshav.com:/usr/BUILD/obj/sys/arch/amd64/compile/YELLOWSTONE amd64
Architecture: x86_64
Machine: amd64
>Description:
Much of the time, if I boot my machine with the disk set in the
BIOS to AHCI mode, it doesn't see the whole disk. This causes
errors in finding the NetBSD partition and the root partition,
and if you persist you'll overwrite random parts of the disk,
including things outside of what NetBSD should be touching.
It is not 100% reproducbile. In tests today, it didn't happen
if I rebooted from power-off; it did happen if I warm-booted.
This suggests a bug in the initialization code.
>How-To-Repeat:
See above.
>Fix:
Set the disk to compatibility mode in the BIOS.
>Audit-Trail:
From: Juan RP <juan@xtrarom.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/37866: Thinkpad T61 disk doesn't work in AHCI mode
Date: Fri, 25 Jan 2008 01:58:15 +0100
On Fri, 25 Jan 2008 00:40:00 +0000 (UTC)
smb@cs.columbia.edu wrote:
> >Description:
> Much of the time, if I boot my machine with the disk set in the
> BIOS to AHCI mode, it doesn't see the whole disk. This causes
> errors in finding the NetBSD partition and the root partition,
> and if you persist you'll overwrite random parts of the disk,
> including things outside of what NetBSD should be touching.
>
> It is not 100% reproducbile. In tests today, it didn't happen
> if I rebooted from power-off; it did happen if I warm-booted.
> This suggests a bug in the initialization code.
Perhaps you would be able to build a livecd (with mklivecd obviously)
and append a dmesg with ata/wd debugging turned on?
--
Juan Romero Pardines The NetBSD Project
http://plog.xtrarom.org/ NetBSD/pkgsrc news in Spanish
http://mklivecd.xtrarom.org/ Make your own NetBSD Live CD/DVD!
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: gnats-bugs@NetBSD.org
Cc: juan@xtrarom.org, kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: kern/37866: Thinkpad T61 disk doesn't work in AHCI mode
Date: Fri, 25 Jan 2008 01:04:15 +0000
On Fri, 25 Jan 2008 01:00:06 +0000 (UTC)
Juan RP <juan@xtrarom.org> wrote:
>
> Perhaps you would be able to build a livecd (with mklivecd obviously)
> and append a dmesg with ata/wd debugging turned on?
>
I'll try to do that this weekend; I won't have the facilities to do
that until then.
--Steve Bellovin, http://www.cs.columbia.edu/~smb
From: "Jared D. McNeill" <jmcneill@invisible.ca>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/37866: Thinkpad T61 disk doesn't work in AHCI mode
Date: Thu, 24 Jan 2008 20:13:59 -0500
smb@cs.columbia.edu wrote:
>> Description:
> Much of the time, if I boot my machine with the disk set in the
> BIOS to AHCI mode, it doesn't see the whole disk. This causes
> errors in finding the NetBSD partition and the root partition,
> and if you persist you'll overwrite random parts of the disk,
> including things outside of what NetBSD should be touching.
>
> It is not 100% reproducbile. In tests today, it didn't happen
> if I rebooted from power-off; it did happen if I warm-booted.
> This suggests a bug in the initialization code.
Please confirm that you are running the latest firmware from Lenovo.
Jared
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: gnats-bugs@NetBSD.org
Cc: jmcneill@invisible.ca, kern-bug-people@NetBSD.org,
gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/37866: Thinkpad T61 disk doesn't work in AHCI mode
Date: Fri, 25 Jan 2008 03:35:48 +0000
On Fri, 25 Jan 2008 01:15:03 +0000 (UTC)
"Jared D. McNeill" <jmcneill@invisible.ca> wrote:
> The following reply was made to PR kern/37866; it has been noted by
> GNATS.
>
> From: "Jared D. McNeill" <jmcneill@invisible.ca>
> To: gnats-bugs@NetBSD.org
> Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.org
> Subject: Re: kern/37866: Thinkpad T61 disk doesn't work in AHCI mode
> Date: Thu, 24 Jan 2008 20:13:59 -0500
>
> smb@cs.columbia.edu wrote:
> >> Description:
> > Much of the time, if I boot my machine with the disk set
> > in the BIOS to AHCI mode, it doesn't see the whole disk. This
> > causes errors in finding the NetBSD partition and the root
> > partition, and if you persist you'll overwrite random parts of the
> > disk, including things outside of what NetBSD should be touching.
> >
> > It is not 100% reproducbile. In tests today, it didn't
> > happen if I rebooted from power-off; it did happen if I
> > warm-booted. This suggests a bug in the initialization code.
>
> Please confirm that you are running the latest firmware from Lenovo.
>
I just updated -- I still see the problem.
--Steve Bellovin, http://www.cs.columbia.edu/~smb
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/37866: Thinkpad T61 disk doesn't work in AHCI mode
Date: Fri, 25 Jan 2008 22:02:57 +0100
On Fri, Jan 25, 2008 at 12:40:00AM +0000, smb@cs.columbia.edu wrote:
> >Number: 37866
> >Category: kern
> >Synopsis: Thinkpad T61 disk doesn't work in AHCI mode
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: kern-bug-people
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Fri Jan 25 00:40:00 +0000 2008
> >Originator: Steven M. Bellovin
> >Release: NetBSD 4.99.49
> >Organization:
> Department of Computer Science, Columbia University
> >Environment:
>
>
> System: NetBSD yellowstone.machshav.com 4.99.49 NetBSD 4.99.49 (YELLOWSTONE) #0: Mon Jan 21 23:10:45 EST 2008 smb@yellowstone.machshav.com:/usr/BUILD/obj/sys/arch/amd64/compile/YELLOWSTONE amd64
> Architecture: x86_64
> Machine: amd64
> >Description:
> Much of the time, if I boot my machine with the disk set in the
> BIOS to AHCI mode, it doesn't see the whole disk. This causes
> errors in finding the NetBSD partition and the root partition,
> and if you persist you'll overwrite random parts of the disk,
> including things outside of what NetBSD should be touching.
>
> It is not 100% reproducbile. In tests today, it didn't happen
> if I rebooted from power-off; it did happen if I warm-booted.
> This suggests a bug in the initialization code.
This is a known issue, and it's most probably timing-related in
the PHY setup code (probably between the "link up" and the IDENTIFY
command). unfortunably I can't reproduce this issue on my systems.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/37866: real disks sometimes probe as very small ST506
disks
Date: Tue, 12 Jan 2010 07:09:49 +0000
See also 37848, which I just closed as a duplicate.
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.