From owner-freebsd-i386@FreeBSD.ORG Tue May 24 14:40:02 2005 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE4B116A41C for ; Tue, 24 May 2005 14:40:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B64843D53 for ; Tue, 24 May 2005 14:40:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4OEe2rl067978 for ; Tue, 24 May 2005 14:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4OEe2F1067977; Tue, 24 May 2005 14:40:02 GMT (envelope-from gnats) Resent-Date: Tue, 24 May 2005 14:40:02 GMT Resent-Message-Id: <200505241440.j4OEe2F1067977@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arnaud de Prelle Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D90316A41C for ; Tue, 24 May 2005 14:39:31 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DC2743D4C for ; Tue, 24 May 2005 14:39:31 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4OEdVj9093818 for ; Tue, 24 May 2005 14:39:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j4OEdVqS093817; Tue, 24 May 2005 14:39:31 GMT (envelope-from nobody) Message-Id: <200505241439.j4OEdVqS093817@www.freebsd.org> Date: Tue, 24 May 2005 14:39:31 GMT From: Arnaud de Prelle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/81438: Ataidle seems broken + problem with ATA wakeup X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 14:40:02 -0000 >Number: 81438 >Category: i386 >Synopsis: Ataidle seems broken + problem with ATA wakeup >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 24 14:40:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Arnaud de Prelle >Release: 6.0-Current >Organization: >Environment: FreeBSD pnserver.pnzone.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue May 24 15:41:42 CEST 2005 i386 >Description: First, there seems to be some problem with a PATA-133 Maxtor disk when trying to wake it up (it has been waked up before with 'ataidle -S'): kernel log messages: >How-To-Repeat: Every times >Fix: Unknown >Release-Note: >Audit-Trail: >Unformatted: >> ad2: TIMEOUT - READ_DMA retrying (2 retries left) LBA=12127 >> ad2: WARNING - removed from configuration >> ata1-master: FAILURE - READ_DMA timed out And when I manually try to remove it from the mounting point in the tree 'unmount /mount_point' of this ad2 makes the server freezing. This brand-new disk has those properties: ad2: 194481MB [395136/16/63] at ata1-master UDMA133 So I tried to upgrade to 6.0-Current, successfully, but with this version, ataidle does simply not working: # ataidle -l error getting maximum channel: Operation not supported # ataidle -S 20 1 0 error getting maximum channel: Operation not supported So I tought maybe the binary for 5.4 isn't compatible with 6.0 and I tried to recompile ataidle. And it seems to be broken: # pwd /usr/ports/sysutils/ataidle # cat distinfo MD5 (ataidle-0.8.tar.gz) = c7486da942c4fcd47a3724270ac4012d SIZE (ataidle-0.8.tar.gz) = 13618 # make install clean ===> Building for ataidle-0.8 /bin/sh Make.sh clean all rm -f *.o ataidle cc -O -pipe -std=c99 -Wall -pedantic -c freebsd/ataidle.c In file included from freebsd/ataidle.h:39, from freebsd/ataidle.c:63: freebsd/../mi/atagen.h:81: error: field `atacmd' has incomplete type In file included from freebsd/ataidle.c:65: freebsd/../mi/atadefs.h:11: error: syntax error before numeric constant freebsd/../mi/atadefs.h:13: error: syntax error before numeric constant freebsd/ataidle.c: In function `ata_cmd': freebsd/ataidle.c:88: error: `ATAGMAXCHANNEL' undeclared (first use in this function) freebsd/ataidle.c:88: error: (Each undeclared identifier is reported only once freebsd/ataidle.c:88: error: for each function it appears in.) freebsd/ataidle.c:99: error: `ATAREQUEST' undeclared (first use in this function) freebsd/ataidle.c:103: error: `IOCATA' undeclared (first use in this function) freebsd/ataidle.c: In function `ata_setataparams': freebsd/ataidle.c:113: error: invalid application of `sizeof' to incomplete type `ata_cmd' freebsd/ataidle.c:114: error: `ATAREQUEST' undeclared (first use in this function) freebsd/ataidle.c: In function `ata_devpresent': freebsd/ataidle.c:153: error: `ATAGPARM' undeclared (first use in this function) freebsd/ataidle.c:155: error: `IOCATA' undeclared (first use in this function) freebsd/ataidle.c: In function `ata_getmaxchan': freebsd/ataidle.c:170: error: `ATAGMAXCHANNEL' undeclared (first use in this function) *** Error code 1 Stop in /usr/ports/sysutils/ataidle/work/ataidle-0.8. *** Error code 1 Stop in /usr/ports/sysutils/ataidle/work/ataidle-0.8. *** Error code 1 Stop in /usr/ports/sysutils/ataidle.