From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 00:32:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CF2516A4BF for ; Sun, 7 Sep 2003 00:32:56 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4E2F43F3F for ; Sun, 7 Sep 2003 00:32:54 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h877Z1bi000897; Sun, 7 Sep 2003 03:35:02 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h877WkBO048811; Sun, 7 Sep 2003 00:32:46 -0700 (PDT) (envelope-from jmg) Date: Sun, 7 Sep 2003 00:32:46 -0700 From: John-Mark Gurney To: "raoul.megelas" Message-ID: <20030907073246.GD39788@funkthat.com> Mail-Followup-To: "raoul.megelas" , freebsd-current@freebsd.org References: <20030907064510.GA702@libertysurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907064510.GA702@libertysurf.fr> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org Subject: Re: usb flashkey disk copy error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 07:32:56 -0000 raoul.megelas wrote this message on Sun, Sep 07, 2003 at 08:45 +0200: > I have a copy error between hdd and a flashkey 1gig usb (easydisk) > on Current dated August 28. Here is in short: > > mount -t msdos /dev/da2s1 /flashkey > cp myfile /flashkey/ > diff myfile /flashkey/myfile > (ok). could you try a fsync /flashkey/myfile before the umount? > umount /flashkey > > mount (flashkey) > diff myfile /flashkey/myfile > (Binary file differ)! > > It is not a flashkey disk error, it works on XP. > Note that this error occurs on FreeBSD 4.8 too. > > Please, can you tell me how to deal with that? > And in an other hand can you tell me how to obtain the exact map of the flashkey > to verify the writing on the disk. > Thanks in advance for this newbie question. You're the second person that has reported corruption with USB umass devices. I am interested in tracking down this problem, but it's a bit difficult since I haven't seen it myself. (I currently don't quite have a test bed box to play with, but I will in the next week.) Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 01:49:44 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1DBC16A4BF; Sun, 7 Sep 2003 01:49:44 -0700 (PDT) Received: from cueball.rtp.FreeBSD.org (cueball.rtp.FreeBSD.org [192.58.184.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C25F43FF7; Sun, 7 Sep 2003 01:49:44 -0700 (PDT) (envelope-from des+tinderbox@freebsd.org) Received: from cueball.rtp.FreeBSD.org (localhost [127.0.0.1]) h878nh9u020405; Sun, 7 Sep 2003 04:49:43 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Received: (from des@localhost) by cueball.rtp.FreeBSD.org (8.12.9/8.12.9/Submit) id h878ngNl020404; Sun, 7 Sep 2003 04:49:43 -0400 (EDT) (envelope-from des+tinderbox@freebsd.org) Date: Sun, 7 Sep 2003 04:49:43 -0400 (EDT) Message-Id: <200309070849.h878ngNl020404@cueball.rtp.FreeBSD.org> X-Authentication-Warning: cueball.rtp.FreeBSD.org: des set sender to Tinderbox using -f Sender: Tinderbox From: Tinderbox To: current@freebsd.org, i386@freebsd.org Precedence: bulk Subject: [current tinderbox] failure on i386/pc98 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 08:49:45 -0000 TB --- 2003-09-07 07:43:59 - starting CURRENT tinderbox run for i386/pc98 TB --- 2003-09-07 07:43:59 - checking out the source tree TB --- cd /home/des/tinderbox/CURRENT/i386/pc98 TB --- /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2003-09-07 07:46:20 - building world TB --- cd /home/des/tinderbox/CURRENT/i386/pc98/src TB --- /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: populating /home/des/tinderbox/CURRENT/i386/pc98/obj/pc98/vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/i386/usr/include >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything.. TB --- 2003-09-07 08:41:07 - building generic kernel TB --- cd /home/des/tinderbox/CURRENT/i386/pc98/src TB --- /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Sun Sep 7 08:41:07 GMT 2003 [...] /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c:271: error: invalid operands to binary & /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c: In function `sab82532_bus_getsig': /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c:448: error: invalid operands to binary & /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c: In function `sab82532_bus_probe': /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c:555: error: invalid operands to binary & /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c: In function `sab82532_bus_setsig': /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c:637: error: invalid operands to binary & /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/dev/uart/uart_dev_sab82532.c:639: error: invalid operands to binary & *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/modules/uart. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/modules. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/obj/pc98/vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src/sys/GENERIC. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src. *** Error code 1 Stop in /vol/vol0/users/des/tinderbox/CURRENT/i386/pc98/src. TB --- 2003-09-07 08:49:42 - /usr/bin/make returned exit code 1 TB --- 2003-09-07 08:49:42 - ERROR: failed to build generic kernel TB --- 2003-09-07 08:49:42 - tinderbox aborted From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 01:52:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 379A016A4BF for ; Sun, 7 Sep 2003 01:52:22 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53E3043FE1 for ; Sun, 7 Sep 2003 01:52:20 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: from spider.deepcore.dk (localhost [127.0.0.1]) by spider.deepcore.dk (8.12.9/8.12.9) with ESMTP id h878qHIo031713 for ; Sun, 7 Sep 2003 10:52:17 +0200 (CEST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.9/8.12.9/Submit) id h878qHVi031712 for freebsd-current@FreeBSD.ORG; Sun, 7 Sep 2003 10:52:17 +0200 (CEST) From: Soren Schmidt Message-Id: <200309070852.h878qHVi031712@spider.deepcore.dk> In-Reply-To: To: freebsd-current@FreeBSD.ORG Date: Sun, 7 Sep 2003 10:52:17 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 X-mail-scanned: by DeepCore Virus & Spam killer v1.3 Subject: Re: ATAng problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 08:52:22 -0000 It seems Christian Laursen wrote: > Since ATAng was comitted I've had problems with the disk on > which my root filesystem is residing. > > If I choose 'Safe mode' in the boot menu, it will boot but > it is then running with DMA and write caching disabled. > > This is the dmesg output from a failed boot. If anything > else is needed to figure it out, just tell me what to do. I have one other report of problems on the older Acer chips, I must have screwed something up there. I'll dig out my old ASUS board and see what I can find out... Bortset fra det kunne vi da snakke dansk ku' vi ikke ? :) -Søren From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 02:37:29 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF2B316A4BF for ; Sun, 7 Sep 2003 02:37:29 -0700 (PDT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 67BCD43F85 for ; Sun, 7 Sep 2003 02:37:26 -0700 (PDT) (envelope-from pilkis@gmx.net) Received: (qmail 3492 invoked by uid 65534); 7 Sep 2003 09:37:24 -0000 Received: from unknown (EHLO pilkisnotexp) (62.68.42.70) by mail.gmx.net (mp005) with SMTP; 07 Sep 2003 11:37:24 +0200 Message-ID: <067101c37523$a520a0f0$0464a8c0@spotripoli.local> From: "Putinas" To: Date: Sun, 7 Sep 2003 11:37:23 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_066F_01C37534.677F48D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: cosmetic bug in newsyslog ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 09:37:29 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_066F_01C37534.677F48D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 SGkgYWxsLCBtYXliZSBub3QgcmVhbGx5IHByb3BlciBtYWlsbGluZyBsaXN0LCBJIGp1c3QgY3Zz dXBlZCA0LjkgcHJlcmVsZWFzZQ0KYW5kIGZ1bm55IHRoaW5nIHdpdGggc3lzbG9nDQp0aGlzIGlz IG5ld3N5c2xvZy5jb25mDQovdmFyL2xvZy9odHRwZC1yZWZlcmVyLmxvZyAgICAgICAgICAgICAg IDY0NCAgMjAgICAgKiAgICAkTTFEMCBCWiAgIC92YXIvcnVuL2h0dHBkLnBpZCAgICAgICAgICAz MA0KDQp0aGlzIGlzIG5ld3N5c2xvZyAtdiBvdXRwdXQNCi92YXIvbG9nL2h0dHBkLXJlZmVyZXIu bG9nIDwyMFo+OiAtLT4gd2lsbCB0cmltIGF0IE1vbiBTZXAgIDEgMDA6MDA6MDAgMjAwMw0KDQph bmQgdGhpcyBpcyBkYXRlIHRvZGF5Og0KU3VuIFNlcCAgNyAxMTozNDo0OCBFRVQgMjAwMw0KDQpJ ZiBJIHdvdWxkIGJlbGlldmUgdGhlIG91dHB1dCwgdGhlIGxvZyByb3RhdGlvbiB3b3VsZCBORVZF UiBoYXBlbiA6KQ0K ------=_NextPart_000_066F_01C37534.677F48D0-- From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 03:16:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E4D116A4BF for ; Sun, 7 Sep 2003 03:16:01 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id A62A243FFB for ; Sun, 7 Sep 2003 03:15:59 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (localhost [127.0.0.1]) by bremen.shuttle.de (Postfix) with ESMTP id 515B717D1B; Sun, 7 Sep 2003 12:15:57 +0200 (CEST) Received: (from uucp@localhost)h87AFu6J022470; Sun, 7 Sep 2003 12:15:56 +0200 Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.9/8.12.9) id h87AGo01002403; Sun, 7 Sep 2003 12:16:50 +0200 (CEST) (envelope-from schweikh) Date: Sun, 7 Sep 2003 12:16:50 +0200 From: Jens Schweikhardt To: Enache Adrian Message-ID: <20030907101650.GA1558@schweikhardt.net> References: <20030907012700.GA1148@ratsnest.hole> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907012700.GA1148@ratsnest.hole> User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: [PATCH] /bin/sh buglet X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 10:16:01 -0000 On Sun, Sep 07, 2003 at 04:27:00AM +0300, Enache Adrian wrote: # $ a=foo # $ : $((a=15)) # arithmetic expression: variable assignment error: "a=15" # $ echo $a # 15 # # --- /usr/src/bin/sh/arith.y Thu Sep 4 23:31:14 2003 # +++ ./arith.y Sun Sep 7 01:04:06 2003 # @@ -155,7 +155,7 @@ # } | # ARITH_VAR ARITH_ASSIGN expr # { # - if (arith_assign($1, $3) != 1) # + if (arith_assign($1, $3) != 0) # yyerror("variable assignment error"); # $$ = $3; # } | Good catch! Commited. Thanks! Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 04:47:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAA0216A4BF for ; Sun, 7 Sep 2003 04:47:58 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B391043FBF for ; Sun, 7 Sep 2003 04:47:56 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id VAA05500; Sun, 7 Sep 2003 21:47:47 +1000 Date: Sun, 7 Sep 2003 21:47:46 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Mark Dixon In-Reply-To: <3F5A7970.8000805@markdnet.demon.co.uk> Message-ID: <20030907212417.E13751@delplex.bde.org> References: <3F5A7970.8000805@markdnet.demon.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: LS120, ATANg and Atapicam X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 11:47:58 -0000 On Sun, 7 Sep 2003, Mark Dixon wrote: > I'm not sure if this is a known problem, but I don't see any references > to it. I've gone from 5.1-RELEASE to todays CURRENT to try to get rid of > a different panic (no news on that yet), but I have hit this one. > > If I boot my system with no floppy in the LS-120, the system panics > where atapicam creates da0 for it. If there is a disk in the drive, it > works fine. > > As yet, I havn't got the details of the panic, but if this is of > interest to anyone here, I will be willing to provide them with them > (they wil have to be be copied out by hand, so I'm lothe to do it if > nobody is interested). I see similar bugs for a 1 ZIP drive 2 CDROM drives. The panic is mostly for division by 0 in cam_calc_geometry(), but sometimes there is division by a garbage value and the error is detected before it causes a panic. Debugging one of the CDROM drives shows that all SCSI commands done as part of cdopen() succeed although there is no disk in the drive! Most of the commands are reads and the reads are apparently null, leaving garbage in the buffers. In particular, the disk geometry is garbage and dividing by a garbage sector size of 0 causes the panic. The SCSI commands get at least as far as ata_completed() (via ata_command() and ata_interrupt() so they apparently get sent to the drive, but no errors are detected. For ATAPI drives, there are no problems unless the drives are explicitly accessed since GEOM doesn't probe them unconditonally. Panics for the ZIP drive are deterministic here since GEOM accesses it unconditionally at boot time when the garbage is more likely to be 0. Bruce From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 04:59:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF19816A4BF for ; Sun, 7 Sep 2003 04:59:58 -0700 (PDT) Received: from thuis.piwebs.com (217-19-20-186.dsl.cambrium.nl [217.19.20.186]) by mx1.FreeBSD.org (Postfix) with SMTP id 242A943FE9 for ; Sun, 7 Sep 2003 04:59:57 -0700 (PDT) (envelope-from avleeuwen@piwebs.com) Received: (qmail 86273 invoked by uid 85); 7 Sep 2003 12:00:51 -0000 Received: from avleeuwen@piwebs.com by thuis.piwebs.com by uid 82 with qmail-scanner-1.20rc1 (uvscan: v4.2.40/v4288. Clear:RC:1:. Processed in 0.063374 secs); 07 Sep 2003 12:00:51 -0000 Received: from unknown (HELO 192.168.0.109) (192.168.0.109) by 0 with SMTP; 7 Sep 2003 12:00:50 -0000 From: Arjan van Leeuwen To: current@freebsd.org Date: Sun, 7 Sep 2003 13:59:55 +0200 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309071359.55439.avleeuwen@piwebs.com> Subject: Problems with ATAng and cdparanoia X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 11:59:59 -0000 Hi, Since the ATAng import, I can't use the cd ripper cdparanoia (audio/cdparanoia) with my IDE CD-ROM drive. When I direct cdparanoia to device /dev/acd0, it will exit with the message 006: Could not read any data from drive Cdparanoia could not find a way to read audio from this drive. If, however, I use the atapicam device to rip (I have to set the device to /dev/cd1 for that), it works without any problem. Before ATAng, I could use cdparanoia on both devices, now I can only use the atapicam one, which probably means that people without atapicam can't use cdparanoia at all. My CD drives are: acd0: DVDROM at ata1-master WDMA2 Waiting 2 seconds for SCSI devices to settle cd1 at ata1 bus 0 target 0 lun 0 cd1: Removable CD-ROM SCSI-0 device cd1: 16.000MB/s transfers cd1: cd present [405416901 x 0 byte records] Mounting root from ufs:/dev/ad0s1a cd0 at sym0 bus 0 target 2 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: Attempt to query device size failed: NOT READY, Medium not present Best regards, Arjan From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 08:09:04 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F84316A4BF for ; Sun, 7 Sep 2003 08:09:04 -0700 (PDT) Received: from judge.thecrucible.ca (judge.thecrucible.ca [69.41.232.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BE9E43FB1 for ; Sun, 7 Sep 2003 08:09:03 -0700 (PDT) (envelope-from brandon@mail.avioc.org) Received: (qmail 92645 invoked by uid 0); 7 Sep 2003 15:09:02 -0000 Received: from unknown (HELO ?192.168.2.2?) (brandon@mail.avioc.org@69.41.232.130) by judge.thecrucible.ca with SMTP; 7 Sep 2003 15:09:02 -0000 From: Brandon Weisz To: freebsd-current@freebsd.org Content-Type: text/plain Message-Id: <1062947334.436.12.camel@quark.avioc.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sun, 07 Sep 2003 10:08:54 -0500 Content-Transfer-Encoding: 7bit Subject: 5.1-RELEASE-p2 panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 15:09:04 -0000 For the last couple weeks, I have been getting a daily panic just before 24 hours uptime. Seems to have started after -p2 patches and rebuild. The system was solid up until that point. I know I have seen others complain about this "24 hr panic" but no suggestions. [.....] panic: from debugger panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0xcf41224 fault code = supervisor read, page not present instruction pointer = 0x8:0xc0380a07 stack pointer = 0x10:0xde0f7b28 frame pointer = 0x10:0xde0f7b80 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 51776 (sudo) panic: from debugger Fatal trap 3: breakpoint instruction fault while in kernel mode instruction pointer = 0x8:0xc047eb54 stack pointer = 0x10:0xde0f78a8 frame pointer = 0x10:0xde0f78b4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = IOPL = 0 current process = 51776 (sudo) panic: from debugger Uptime: 23h52m33s Dumping 511 MB #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:238 238 dumping++; (kgdb) bt #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:238 #1 0xc0309828 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:370 #2 0xc0309b1b in panic () at /usr/src/sys/kern/kern_shutdown.c:543 #3 0xc0162bb2 in db_panic () at /usr/src/sys/ddb/db_command.c:448 #4 0xc0162b32 in db_command (last_cmdp=0xc0518d40, cmd_table=0x0, aux_cmd_tablep=0xc050fbbc, aux_cmd_tablep_end=0xc050fbd4) at /usr/src/sys/ddb/db_command.c:346 #5 0xc0162c46 in db_command_loop () at /usr/src/sys/ddb/db_command.c:470 #6 0xc01659da in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:72 #7 0xc047e8b5 in kdb_trap (type=12, code=0, regs=0xde0f7ae8) at /usr/src/sys/i386/i386/db_interface.c:170 #8 0xc04905c2 in trap_fatal (frame=0xde0f7ae8, eva=0) at /usr/src/sys/i386/i386/trap.c:829 #9 0xc04902d2 in trap_pfault (frame=0xde0f7ae8, usermode=0, eva=217322020) at /usr/src/sys/i386/i386/trap.c:748 #10 0xc048fead in trap (frame= {tf_fs = -569442280, tf_es = 16, tf_ds = -962985968, tf_edi = 152, tf_esi = 0, tf_ebp = -569410688, tf_isp = -569410796, tf_ebx = -964577280, tf_edx = -96 2953984, tf_ecx = -569410664, tf_eax = 217321984, tf_trapno = 12, tf_err = 0, tf _eip = -1070069241, tf_cs = 8, tf_eflags = 66182, tf_esp = 12, tf_ss = -56941074 8}) at /usr/src/sys/i386/i386/trap.c:433 #11 0xc0480208 in calltrap () at {standard input}:96 #12 0xc0380b91 in sysctl_rtsock (oidp=0xc054db40, arg1=0xde0f7cb0, arg2=4, ---Type to continue, or q to quit--- req=0x0) at /usr/src/sys/net/rtsock.c:1048 #13 0xc03121ba in sysctl_root (oidp=0x0, arg1=0x98, arg2=0, req=0xc681b800) at /usr/src/sys/kern/kern_sysctl.c:1173 #14 0xc031245d in userland_sysctl (td=0x0, name=0xde0f7ca8, namelen=6, old=0x0, oldlenp=0xc681b800, inkernel=0, new=0x98, newlen=0, retval=0xde0f7ca4) at /usr/src/sys/kern/kern_sysctl.c:1280 #15 0xc03122a0 in __sysctl (td=0x0, uap=0xde0f7d10) at /usr/src/sys/kern/kern_sysctl.c:1210 #16 0xc04908be in syscall (frame= {tf_fs = -1078001617, tf_es = 47, tf_ds = -1078001617, tf_edi = 0, tf_esi = -1077937156, tf_ebp = -1077937288, tf_isp = -569410188, tf_ebx = 672630356, tf _edx = 0, tf_ecx = -1077937152, tf_eax = 202, tf_trapno = 12, tf_err = 2, tf_eip = 672127299, tf_cs = 31, tf_eflags = 663, tf_esp = -1077937332, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1021 #17 0xc048025d in Xint0x80_syscall () at {standard input}:138 ---Can't read userspace from dump, or kernel process--- From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 09:02:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74DE516A4BF for ; Sun, 7 Sep 2003 09:02:41 -0700 (PDT) Received: from lapdance.yazzy.org (yazzy.org [217.8.140.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D9FE43FBD for ; Sun, 7 Sep 2003 09:02:24 -0700 (PDT) (envelope-from freebsd@yazzy.org) Received: from lapdance (localhost [127.0.0.1]) by lapdance.yazzy.org (Postfix) with SMTP id 988844507 for ; Sun, 7 Sep 2003 17:54:59 +0200 (CEST) Date: Sun, 7 Sep 2003 17:54:59 +0200 From: Martin Jessa To: freebsd-current Message-Id: <20030907175459.5b338678.freebsd@yazzy.org> Organization: WRS ASA X-Mailer: Sylpheed version 0.9.3claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: ATAng and CF cards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 16:02:41 -0000 Hi. The latest changes in ATAng code made it impossible to use my CF cards. I have a few of them which previously worked just fine. Now, each time I put one to my laptop's PCMCIA slot i get following errors: pccard0: Allocation failed for cfe 0 ata2: at port 0x110-0x11f irq 11 function 0 config 1 on pccard0 ata2: [MPSAFE] ad4: FAILURE - SETFEATURES status=51 error=4 ad4: FAILURE - SETFEATURES status=51 error=4 ad4: FAILURE - SET_MULTI status=51 error=4 GEOM: create disk ad4 dp=0xc1e9d770 ad4: 9007199253773098MB <\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P> [426376296036596/208/208] at ata2-master PIO0 From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 10:00:34 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED09516A4C0 for ; Sun, 7 Sep 2003 10:00:34 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C57BB43FCB for ; Sun, 7 Sep 2003 10:00:31 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id B1F0272DA3; Sun, 7 Sep 2003 10:00:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id ACCB072DA2; Sun, 7 Sep 2003 10:00:31 -0700 (PDT) Date: Sun, 7 Sep 2003 10:00:31 -0700 (PDT) From: Doug White To: Martin Jessa In-Reply-To: <20030907175459.5b338678.freebsd@yazzy.org> Message-ID: <20030907100003.O24758@carver.gumbysoft.com> References: <20030907175459.5b338678.freebsd@yazzy.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current Subject: Re: ATAng and CF cards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 17:00:35 -0000 On Sun, 7 Sep 2003, Martin Jessa wrote: > The latest changes in ATAng code made it impossible to use my CF cards. > I have a few of them which previously worked just fine. > Now, each time I put one to my laptop's PCMCIA slot i get following errors: Looks like it mounted fine to me; some of the special options failed but thats not unusual. > GEOM: create disk ad4 dp=0xc1e9d770 > ad4: 9007199253773098MB <\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P> [426376296036596/208/208] at ata2-master PIO0 Does ad4 work? -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 10:43:29 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0E0216A4BF for ; Sun, 7 Sep 2003 10:43:29 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37EAE43FE5 for ; Sun, 7 Sep 2003 10:43:27 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id DAA05244; Mon, 8 Sep 2003 03:42:58 +1000 Date: Mon, 8 Sep 2003 03:42:57 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Doug White In-Reply-To: <20030907100003.O24758@carver.gumbysoft.com> Message-ID: <20030908033912.P2257@gamplex.bde.org> References: <20030907175459.5b338678.freebsd@yazzy.org> <20030907100003.O24758@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Martin Jessa cc: freebsd-current Subject: Re: ATAng and CF cards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 17:43:29 -0000 On Sun, 7 Sep 2003, Doug White wrote: > On Sun, 7 Sep 2003, Martin Jessa wrote: > > > The latest changes in ATAng code made it impossible to use my CF cards. > > I have a few of them which previously worked just fine. > > Now, each time I put one to my laptop's PCMCIA slot i get following errors: > > Looks like it mounted fine to me; some of the special options failed but > thats not unusual. > > > GEOM: create disk ad4 dp=0xc1e9d770 > > ad4: 9007199253773098MB <\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P> [426376296036596/208/208] at ata2-master PIO0 > > Does ad4 work? Perhaps not the last 9007199252 TB of it. Bruce From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 10:44:13 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D690416A4BF for ; Sun, 7 Sep 2003 10:44:13 -0700 (PDT) Received: from ferengi.borderworlds.dk (borderworlds.dk [62.79.110.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FFDB43F85 for ; Sun, 7 Sep 2003 10:44:12 -0700 (PDT) (envelope-from xi@borderworlds.dk) Received: from borg.borderworlds.dk (localhost [127.0.0.1]) by ferengi.borderworlds.dk (Postfix) with ESMTP id B5FD65C5A for ; Sun, 7 Sep 2003 19:44:11 +0200 (CEST) Received: by borg.borderworlds.dk (Postfix, from userid 500) id 8576F3B8008; Sun, 7 Sep 2003 19:44:10 +0200 (CEST) Sender: xi@borderworlds.dk To: freebsd-current@freebsd.org References: <200309070852.h878qHVi031712@spider.deepcore.dk> From: Christian Laursen Date: 07 Sep 2003 19:44:10 +0200 In-Reply-To: <200309070852.h878qHVi031712@spider.deepcore.dk> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: ATAng problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 17:44:13 -0000 Soren Schmidt writes: > I have one other report of problems on the older Acer chips, > I must have screwed something up there. I'll dig out my > old ASUS board and see what I can find out... Great, I'll be happy to test stuff. > Bortset fra det kunne vi da snakke dansk ku' vi ikke ? :) Jo, men s=E5 forst=E5r de andre jo ikke s=E5 meget. :) --=20 Med venlig hilsen Christian Laursen From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 10:46:51 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 943D616A4BF for ; Sun, 7 Sep 2003 10:46:51 -0700 (PDT) Received: from pit.databus.com (p70-227.acedsl.com [66.114.70.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A99343FBF for ; Sun, 7 Sep 2003 10:46:50 -0700 (PDT) (envelope-from barney@pit.databus.com) Received: from pit.databus.com (localhost [127.0.0.1]) by pit.databus.com (8.12.9/8.12.9) with ESMTP id h87Hkn1Q004736 for ; Sun, 7 Sep 2003 13:46:49 -0400 (EDT) (envelope-from barney@pit.databus.com) Received: (from barney@localhost) by pit.databus.com (8.12.9/8.12.9/Submit) id h87HknSK004735 for freebsd-current@freebsd.org; Sun, 7 Sep 2003 13:46:49 -0400 (EDT) Date: Sun, 7 Sep 2003 13:46:49 -0400 From: Barney Wolff To: freebsd-current@freebsd.org Message-ID: <20030907174649.GA4378@pit.databus.com> References: <20030907064510.GA702@libertysurf.fr> <20030907073246.GD39788@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907073246.GD39788@funkthat.com> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.35 Subject: Re: usb flashkey disk copy error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 17:46:51 -0000 On Sun, Sep 07, 2003 at 12:32:46AM -0700, John-Mark Gurney wrote: > > You're the second person that has reported corruption with USB umass > devices. I am interested in tracking down this problem, but it's a > bit difficult since I haven't seen it myself. Make me the third. I have a Sony F707 camera, which I can use on 4-stable and with 5-current on a Dell I5000 laptop, but not on 5-current on an Asus A7M266-D with world/kernel built 9/4/03. The bad data starts at byte 4096, always. The problem has existed for at least a month, perhaps longer; I can't remember if it ever worked on the Asus. But the same system runs fine with usb keyboard and mouse - which proves nothing as the data rate and amount are so small. So I can't rule out hardware as the problem. In a few days I can try booting from a 4.8 live cd and see if the hardware works ok. Old-quirks had no effect on the problem. -- Barney Wolff http://www.databus.com/bwresume.pdf I'm available by contract or FT, in the NYC metro area or via the 'Net. From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 10:55:32 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D45F16A4BF for ; Sun, 7 Sep 2003 10:55:32 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59F644400E for ; Sun, 7 Sep 2003 10:55:29 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h87Hvgbi015496; Sun, 7 Sep 2003 13:57:42 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h87HtOrr057622; Sun, 7 Sep 2003 10:55:24 -0700 (PDT) (envelope-from jmg) Date: Sun, 7 Sep 2003 10:55:24 -0700 From: John-Mark Gurney To: Barney Wolff Message-ID: <20030907175524.GG39788@funkthat.com> Mail-Followup-To: Barney Wolff , freebsd-current@freebsd.org References: <20030907064510.GA702@libertysurf.fr> <20030907073246.GD39788@funkthat.com> <20030907174649.GA4378@pit.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907174649.GA4378@pit.databus.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org Subject: Re: usb flashkey disk copy error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 17:55:32 -0000 Barney Wolff wrote this message on Sun, Sep 07, 2003 at 13:46 -0400: > On Sun, Sep 07, 2003 at 12:32:46AM -0700, John-Mark Gurney wrote: > > > > You're the second person that has reported corruption with USB umass > > devices. I am interested in tracking down this problem, but it's a > > bit difficult since I haven't seen it myself. > > Make me the third. I have a Sony F707 camera, which I can use on > 4-stable and with 5-current on a Dell I5000 laptop, but not on 5-current > on an Asus A7M266-D with world/kernel built 9/4/03. The bad data starts > at byte 4096, always. The problem has existed for at least a month, Ahh, this is useful information. What are the controller types of the two machines? ohci? uhci? I think it might be ohci, and it maybe a page miscalculation when dispatching the request. Have you looked at the corrupted data? does it apear to be from some other location, like the kernel? > perhaps longer; I can't remember if it ever worked on the Asus. But > the same system runs fine with usb keyboard and mouse - which proves > nothing as the data rate and amount are so small. So I can't rule > out hardware as the problem. In a few days I can try booting from > a 4.8 live cd and see if the hardware works ok. Old-quirks had no > effect on the problem. It's been about two months since I updated USB to use bus_dma. So you could try checking out the usb code from July 4th or so and see if it goes away (it probably will). -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 10:56:27 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D021516A4BF for ; Sun, 7 Sep 2003 10:56:27 -0700 (PDT) Received: from mail.lambertfam.org (www.lambertfam.org [216.223.208.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id F19A343FE5 for ; Sun, 7 Sep 2003 10:56:26 -0700 (PDT) (envelope-from lambert@lambertfam.org) Received: from laptop.lambertfam.org (laptop.int.lambertfam.org [10.1.0.2]) by mail.lambertfam.org (Postfix) with ESMTP id 0527434D3B; Sun, 7 Sep 2003 13:56:22 -0400 (EDT) Received: by laptop.lambertfam.org (Postfix, from userid 1000) id 5DF4D8878; Sun, 7 Sep 2003 13:56:20 -0400 (EDT) Date: Sun, 7 Sep 2003 13:56:20 -0400 From: Scott Lambert To: Soren Schmidt , freebsd-current@FreeBSD.ORG Message-ID: <20030907175620.GA3962@laptop.lambertfam.org> Mail-Followup-To: Soren Schmidt , freebsd-current@FreeBSD.ORG References: <200309070852.h878qHVi031712@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309070852.h878qHVi031712@spider.deepcore.dk> User-Agent: Mutt/1.4.1i Subject: Re: ATAng problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-current@FreeBSD.ORG List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 17:56:27 -0000 I thought I was going to miss out on the ATAng issues... I use a SanDisk CompactFlash PC Card Adapter to read my digital camera pictures. It worked fine before ATAng. Now I get: ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 ... And after transferring some data the machine locks up. I updated last night from my week old -CURRENT but still have the same problem. Starting update: Sat Sep 6 21:27:09 EDT 2003 Finished update: Sat Sep 6 21:35:20 EDT 2003 http://www.lambertfam.org/~lambert/laptop/5/20030907-1331 has the verbose dmesg.boot and dmesg showing the insertion and removal of the card as well as other things. It doesn't lockup until I try to transfer data. When it locks up and I restart, it has typically transferred about 10 - 15 700K to 1.2M photos. -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 11:20:30 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18D4E16A4BF for ; Sun, 7 Sep 2003 11:20:30 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAA9443F75 for ; Sun, 7 Sep 2003 11:20:28 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id EAA08204; Mon, 8 Sep 2003 04:20:23 +1000 Date: Mon, 8 Sep 2003 04:20:22 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: freebsd-current@freebsd.org In-Reply-To: <20030907175620.GA3962@laptop.lambertfam.org> Message-ID: <20030908040227.D2362@gamplex.bde.org> References: <200309070852.h878qHVi031712@spider.deepcore.dk> <20030907175620.GA3962@laptop.lambertfam.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Soren Schmidt Subject: Re: ATAng problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 18:20:30 -0000 On Sun, 7 Sep 2003, Scott Lambert wrote: > I thought I was going to miss out on the ATAng issues... > > I use a SanDisk CompactFlash PC Card Adapter to read my digital camera > pictures. It worked fine before ATAng. Now I get: > > ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 > ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 > ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 > ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 > ata2: spurious interrupt - status=0xff error=0x00 reason=0x00 > ... > > And after transferring some data the machine locks up. I get endless spurious interrupts at boot time and use the following fix. %%% Index: ata-lowlevel.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v retrieving revision 1.8 diff -u -2 -r1.8 ata-lowlevel.c --- ata-lowlevel.c 1 Sep 2003 11:13:21 -0000 1.8 +++ ata-lowlevel.c 1 Sep 2003 18:03:56 -0000 @@ -271,10 +271,15 @@ struct ata_channel *ch = (struct ata_channel *)data; struct ata_request *request = ch->running; + static int spurcount; + static int spurtotcount; int length; /* if we dont have a running request shout and ignore this interrupt */ if (request == NULL) { - if (bootverbose) { - printf("ata%d: spurious interrupt - ", device_get_unit(ch->dev)); + spurcount++; + spurtotcount++; + if (1 || bootverbose) { + printf("ata%d: %d/%dth spurious interrupt - ", + device_get_unit(ch->dev), spurtotcount, spurcount); if (request) printf("request OK - "); @@ -283,4 +288,8 @@ ATA_IDX_INB(ch, ATA_IREASON)); } + if (spurcount == 10) { + (void)ATA_IDX_INB(ch, ATA_STATUS); + spurcount = 0; + } return; } %%% More details: - most of the above is debuggig code. Only on line near the end that reads the status register is necessary. The debugging code waits for 10 spurious interrupts before clearing the interrupt. - the spurious interrupts somehow go away without the above change after 2 or 3 of them for plain -current, but repeat endlessly with my version of -current. The hardware interrupt is not repeated, but something at a level between Xintr*() and ata_highpoint_intr() apparently keeps dispatching the interrupt. - the spurious interrupts only happen on a channel with an atapi slave. They don't happen on channels with both slaves and masters or on an empty channel. Some dmesg output with the above fix: %%% ... atapci1: port 0xbc00-0xbcff,0xb800-0xb803,0xb400-0xb407 irq 11 at device 19.0 on pci0 ithread_add_handler: atapci1: id -1 atapci1: [MPSAFE] ata2: at 0xb400 on atapci1 ata2: [MPSAFE] atapci2: port 0xc800-0xc8ff,0xc400-0xc403,0xc000-0xc007 irq 11 at device 19.1 on pci0 ithread_add_handler: atapci2: id -1 atapci2: [MPSAFE] ata3: at 0xc000 on atapci2 ata3: [MPSAFE] orm0: