From owner-cvs-src@FreeBSD.ORG Sun Apr 13 14:53:00 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76E361065670; Sun, 13 Apr 2008 14:53:00 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.18.44]) by mx1.freebsd.org (Postfix) with ESMTP id 144A18FC16; Sun, 13 Apr 2008 14:52:59 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [217.50.161.84] (helo=localhost) by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Jl3Os-00081p-NR; Sun, 13 Apr 2008 16:41:47 +0200 Date: Sun, 13 Apr 2008 16:41:41 +0200 From: Fabian Keil To: cvs-src@freebsd.org Message-ID: <20080413164141.63091ef5@fabiankeil.de> In-Reply-To: <20080412230157.GC44768@alchemy.franken.de> References: <200804121721.m3CHLNqu095189@repoman.freebsd.org> <20080412230157.GC44768@alchemy.franken.de> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-portbld-freebsd8.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/XWeXN4S7ldyGTlNsddZARKS"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Df-Sender: 775067 Cc: src-committers@freebsd.org, =?ISO-8859-1?Q?S=F8re?=, cvs-all@freebsd.org, =?ISO-8859-1?Q?n?= Schmidt Subject: Re: cvs commit: src/sys/dev/ata ata-chipset.c ata-pci.c ata-pci.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2008 14:53:00 -0000 --Sig_/XWeXN4S7ldyGTlNsddZARKS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Marius Strobl wrote: > On Sat, Apr 12, 2008 at 05:21:23PM +0000, Sren Schmidt wrote: > > sos 2008-04-12 17:21:23 UTC > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > sys/dev/ata ata-chipset.c ata-pci.c ata-pci.h=20 > > Log: > > Dont call hw.status recursively. > > =20 > > Spotted by: Marcel Moolenaar > Even with these fixes in place your latest round of ata(4) > changes causes acd0 to disappear on a sparc64 machine for > me. Reverting to ata(4) sources of April 9th fixes these. > Verbose before and after dmesg output is at: > http://people.freebsd.org/~marius/v100_1.txt > http://people.freebsd.org/~marius/v100_2.txt On one of my i386 systems, ad1 (the disk with the root partition) is no longer detected. As acd0 in the dmesg output above, it's configured as slave and the master on the same controller is still detected. With a kernel build a month ago the detection looks like this: atapci0: port 0xa000-0xa007,0xa400-0x= a403,0xa800-0xa807,0xac00-0xac03,0xb000-0xb0ff irq 10 at device 14.0 on pci0 atapci0: Reserved 0x100 bytes for rid 0x20 type 4 at 0xb000 atapci0: [MPSAFE] atapci0: [ITHREAD] ata2: on atapci0 atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0xa000 atapci0: Reserved 0x4 bytes for rid 0x14 type 4 at 0xa400 ata2: reset tp1 mask=3D03 ostat0=3D50 ostat1=3D00 ata2: stat0=3D0x50 err=3D0x01 lsb=3D0x00 msb=3D0x00 ata2: stat1=3D0x00 err=3D0x01 lsb=3D0x00 msb=3D0x00 ata2: reset tp2 stat0=3D50 stat1=3D00 devices=3D0x1 ata2: [MPSAFE] ata2: [ITHREAD] ata3: on atapci0 atapci0: Reserved 0x8 bytes for rid 0x18 type 4 at 0xa800 atapci0: Reserved 0x4 bytes for rid 0x1c type 4 at 0xac00 ata3: reset tp1 mask=3D03 ostat0=3D60 ostat1=3D70 ata3: stat0=3D0x20 err=3D0x20 lsb=3D0x20 msb=3D0x20 ata3: stat1=3D0x30 err=3D0x30 lsb=3D0x30 msb=3D0x30 ata3: reset tp2 stat0=3D20 stat1=3D30 devices=3D0x0 ata3: [MPSAFE] ata3: [ITHREAD] isab0: at device 17.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,= 0x376,0xb400-0xb40f at device 17.1 on pci0 atapci1: Reserved 0x10 bytes for rid 0x20 type 4 at 0xb400 ata0: on atapci1 atapci1: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0 atapci1: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6 ata0: reset tp1 mask=3D03 ostat0=3D50 ostat1=3D50 ata0: stat0=3D0x00 err=3D0x01 lsb=3D0x14 msb=3D0xeb ata0: stat1=3D0x50 err=3D0x01 lsb=3D0x00 msb=3D0x00 ata0: reset tp2 stat0=3D00 stat1=3D50 devices=3D0x6 ata0: [MPSAFE] ata0: [ITHREAD] ata1: on atapci1 atapci1: Reserved 0x8 bytes for rid 0x18 type 4 at 0x170 atapci1: Reserved 0x1 bytes for rid 0x1c type 4 at 0x376 ata1: reset tp1 mask=3D03 ostat0=3D50 ostat1=3D50 ata1: stat0=3D0x00 err=3D0x01 lsb=3D0x14 msb=3D0xeb ata1: stat1=3D0x00 err=3D0x01 lsb=3D0x14 msb=3D0xeb ata1: reset tp2 stat0=3D00 stat1=3D00 devices=3D0xc ata1: [MPSAFE] ata1: [ITHREAD] [...] ata0-slave: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA100 cable=3D80 wire ata0-master: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA66 cable=3D40 wire acd0: setting PIO4 on 8233A chip acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: setting UDMA33 on 8233A chip acd0: DVDR drive at ata0 as master acd0: read 8268KB/s (8268KB/s) write 8268KB/s (8268KB/s), 2048KB buffer, UD= MA33 acd0: Reads: CDR, CDRW, CDDA stream, DVDROM, DVDR, packet acd0: Writes: CDR, CDRW, DVDR, test write, burnproof acd0: Audio: play, 256 volume levels acd0: Mechanism: ejectable tray, unlocked acd0: Medium: no/blank disc ad1: setting PIO4 on 8233A chip ad1: setting UDMA100 on 8233A chip ad1: 381554MB at ata0-slave UDMA100 ad1: 781422768 sectors [12403536C/1H/63S] 16 sectors/interrupt 1 depth queue ad1: VIA check1 failed ad1: Adaptec check1 failed ad1: LSI (v3) check1 failed ad1: LSI (v2) check1 failed ad1: FreeBSD check1 failed ata1-slave: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA33 cable=3D40 wire ata1-master: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA33 cable=3D40 wire GEOM: new disk ad1 acd1: setting PIO4 on 8233A chip acd1: setting UDMA33 on 8233A chip acd1: CDRW drive at ata1 as master acd1: read 10820KB/s (10820KB/s) write 10820KB/s (10820KB/s), 2048KB buffer= , UDMA33 acd1: Reads: CDR, CDRW, CDDA stream, DVDROM, DVDR, packet acd1: Writes: CDR, CDRW, test write, burnproof acd1: Audio: play, 256 volume levels acd1: Mechanism: ejectable tray, unlocked acd1: Medium: DVD 120mm data disc acd2: setting PIO4 on 8233A chip acd2: setting UDMA33 on 8233A chip acd2: CDRW drive at ata1 as slave acd2: read 8958KB/s (6890KB/s) write 8958KB/s (8958KB/s), 8192KB buffer, UD= MA33 acd2: Reads: CDR, CDRW, CDDA stream, packet acd2: Writes: CDR, CDRW, test write, burnproof acd2: Audio: play, 256 volume levels acd2: Mechanism: ejectable tray, unlocked acd2: Medium: CD-ROM unknown ata2-master: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA100 cable=3D80 wire ad4: setting PIO4 on HighPoint chip ad4: setting UDMA100 on HighPoint chip ad4: 381554MB at ata2-master UDMA100 ad4: 781422768 sectors [775221C/16H/63S] 16 sectors/interrupt 1 depth queue GEOM: new disk ad4 GEOM_LABEL: Label for provider ad1s1 is ext2fs//12. ad4: HighPoint (v3) check1 failed ad4: HighPoint (v2) check1 failed ad4: Adaptec check1 failed ad4: LSI (v3) check1 failed ad4: LSI (v2) check1 failed ad4: FreeBSD check1 failed ATA PseudoRAID loaded With a kernel from today the line: ata0: reset tp2 stat0=3D00 stat1=3D50 devices=3D0x6 changes to: ata0: reset tp2 stat0=3D00 stat1=3D50 devices=3D0x10002 Note that the slave (ad1) is the missing drive while the master (acd0) is detected later on. Fabian --Sig_/XWeXN4S7ldyGTlNsddZARKS Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkgCG6UACgkQBYqIVf93VJ0JrACeM4jJ4QVjA+XzsUl2y0HBRDYb EAAAni7Ck3nyk8/8ZxIUgEo1uxdw+ggn =yTpl -----END PGP SIGNATURE----- --Sig_/XWeXN4S7ldyGTlNsddZARKS--