Date: Tue, 24 May 2005 14:39:31 GMT From: Arnaud de Prelle <support@pnzone.net> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/81438: Ataidle seems broken + problem with ATA wakeup Message-ID: <200505241439.j4OEdVqS093817@www.freebsd.org> Resent-Message-ID: <200505241440.j4OEe2F1067977@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <Maxtor 6B200P0/BAH41BY0> [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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505241439.j4OEdVqS093817>