From owner-freebsd-current@FreeBSD.ORG Mon Mar 2 22:39:42 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4401B1065672; Mon, 2 Mar 2009 22:39:42 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id E14A38FC24; Mon, 2 Mar 2009 22:39:41 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n22MfWTd045346; Mon, 2 Mar 2009 17:41:32 -0500 (EST) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: Alexander Motin In-Reply-To: <49AC4DB3.9020007@FreeBSD.org> References: <49AC4DB3.9020007@FreeBSD.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-bhjOTMbzMCRR1WP//Fdb" Organization: FreeBSD, Inc. Date: Mon, 02 Mar 2009 17:39:43 -0500 Message-Id: <1236033583.37252.146.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: FreeBSD-Current Subject: Re: Continuing saga: FreeBSD -CURRENT hangs with ATA code after April X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2009 22:39:42 -0000 --=-bhjOTMbzMCRR1WP//Fdb Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-03-02 at 23:20 +0200, Alexander Motin wrote: > Joe Marcus Clarke wrote: > > I started this thread on May 31 of last year: > >=20 > > http://lists.freebsd.org/pipermail/freebsd-current/2008-May/085923.html > >=20 > > The problem remains as of: > >=20 > > FreeBSD fugu.marcuscom.com 8.0-CURRENT FreeBSD 8.0-CURRENT #12: Sun Mar > > 1 16:10:52 EST 2009 > > gnome@fugu.marcuscom.com:/space/obj/usr/src/sys/FUGU i386 > >=20 > > The only way I can boot this system is to hack in the ATA code from > > April 9, 2008. I would love just to be able to boot this guy on a > > default -CURRENT. >=20 > 1) If I understand right, you had working system on April 9, 2008 and=20 > not working on May 31, 2008 and now. Have you tried to narrow down that=20 > interval between working and not working system to find exact point of=20 > breakage? I see no documented changes in Promise support there in CVS=20 > log, but for example, on Apr 10 2008 I see some related changes=20 > unmentioned in commit message. >=20 > 2) To properly associate problem with present sources I would like to=20 > see full problem verbose messages for the current HEAD. I cannot save off the dmesg, but here is the last ATA lines (with debugging printf): acd0: CDRW drive at ata1 as master acd0: read 6890KB/s (6890KB/s) write 6890KB/s (6890KB/s), 2048KB buffer, UDMA33 acd0: Reads: CDR, CDRW, CDDA stream, DVDROM, DVDR, packet acd0: Writes: CDR, CDRW, test write, burnproof acd0: Audio: play, 256 volume levels acd0: Mechanism: ejectable tray, unlocked acd0: Medium: no/blank disc ata2: Identifying devices: 00000000 ata2: New devices: 00000000 ata3: Identifying devices: 00000001 ata3: New devices: 00000001 Enter ata_promise_mio_command After ATA_OUTL(ctlr->r_res2, (ch->unit + 1) << 2, 0x00000001); After ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), atadev->unit & 0x0f); Command is 236 Running generic command After that, I expect to see: "After running generic command: %d" Where %d is the result of the command. So ata_promise_mio_command() is not returning. The 236 is the value of request->u.ata.command as passed to ata_promise_mio_command(). Is this helpful, or should I markup ata_generic_command() as well? As for the full dmesg, I'll try and hook the serial console back up to see if I can capture it. Joe >=20 > 3) As my mom told me 15 years ago, if you don't understand what's going=20 > on, insert debugging printfs. If system hangs and we have no other=20 > sources of information, I would start from putting > printf("%s\n", __func__); > wherever it is possible to get readable path. I would start from every=20 > ata_promise_mio_* function beginning of HEAD code. >=20 --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-bhjOTMbzMCRR1WP//Fdb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkmsYC4ACgkQb2iPiv4Uz4dwywCbBNjJ799p/iF0ZDiccmOXYpsW Cm0An31PAV7TO2BwN/oHKvr/ey6ivM/2 =S5S+ -----END PGP SIGNATURE----- --=-bhjOTMbzMCRR1WP//Fdb--