From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 29 00:02:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0980A1065692 for ; Mon, 29 Sep 2008 00:02:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA01.emeryville.ca.mail.comcast.net (qmta01.emeryville.ca.mail.comcast.net [76.96.30.16]) by mx1.freebsd.org (Postfix) with ESMTP id E09D18FC12 for ; Mon, 29 Sep 2008 00:02:28 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by QMTA01.emeryville.ca.mail.comcast.net with comcast id LDaw1a00E16AWCUA1Q2622; Mon, 29 Sep 2008 00:02:06 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA06.emeryville.ca.mail.comcast.net with comcast id LQ2T1a0044v8bD78SQ2Tie; Mon, 29 Sep 2008 00:02:27 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=IjLdvNC3foNJktdLwTgA:9 a=vTf-ZAQqeoAnHNiv4agA:7 a=HrcFU4mo6WJkrdJ37FqklWdcSFEA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id EDCACC9432; Sun, 28 Sep 2008 17:02:26 -0700 (PDT) Date: Sun, 28 Sep 2008 17:02:26 -0700 From: Jeremy Chadwick To: Bruce Cran Message-ID: <20080929000226.GA92057@icarus.home.lan> References: <20080928103937.U51561@hercules.mthelicon.com> <20080928232438.5d0c4a55@tau.draftnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080928232438.5d0c4a55@tau.draftnet> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, Andrey Elsukov , Pegasus McCleaft , sos@freebsd.org Subject: Re: atacontrol broken in 7.1-PR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 00:02:29 -0000 On Sun, Sep 28, 2008 at 11:24:38PM +0100, Bruce Cran wrote: > On Sun, 28 Sep 2008 10:43:58 +0000 (UTC) > Pegasus McCleaft wrote: > > > Hello everyone. > > > > I was wondering if anyone else is experiencing this problem. > > I have recently reloaded my machine (due to a meltdown of my primary > > boot drive) and noticed that under 7.0-rel the atacontrol command > > seems to work great, however, under 7.1 I get and error > > > > atacontrol: ioctl(IOCATADEVICES): Device not configured > > > > Has anyone else seen this error. I wouldent be conserned if > > it wasent for the fact that it worked under 7.0-rel but now dosent. > > The machine is using both the: > > > > atapci0: > > atapci1: > > I'm also seeing this problem on my amd64 7.1-PRERELEASE system: > > > atacontrol list > ATA channel 0: > Master: acd0 ATA/ATAPI revision 5 > Slave: no device present > atacontrol: ioctl(IOCATADEVICES): Device not configured > > I've attached the dmesg, and truss output from "atacontrol list". Your dmesg output implies you're not using atapicam, while Pegasus is. So I believe that rules that out. Are you using ATA_STATIC_ID? If not, then I'm out of "simple" ideas as to what could be causing this. > open("/dev/ata",O_RDWR,037777766320) = 3 (0x3) > ioctl(3,IOCATAGMAXCHANNEL,0xffffec20) = 0 (0x0) > ioctl(3,IOCATADEVICES,0xffffe590) = 0 (0x0) > fstat(1,{ mode=-rw-r--r-- ,inode=307828,size=2281,blksize=4096 }) = 0 (0x0) > __sysctl(0x7fffffffdba0,0x2,0x800845b48,0x7fffffffdbb8,0x0,0x0) = 0 (0x0) > __sysctl(0x7fffffffd6f0,0x2,0x8008547d8,0x7fffffffd6e8,0x0,0x0) = 0 (0x0) > __sysctl(0x7fffffffd730,0x2,0x7fffffffd74c,0x7fffffffd740,0x0,0x0) = 0 (0x0) > readlink("/etc/malloc.conf",0x7fffffffd790,1024) ERR#2 'No such file or directory' > issetugid(0x80071c2aa,0x7fffffffd790,0xffffffffffffffff,0x0,0xffffffff80ac1c40,0x7fffffffd768) = 0 (0x0) > break(0x600000) = 0 (0x0) > break(0x700000) = 0 (0x0) > ioctl(3,IOCATADEVICES,0xffffe590) ERR#6 'Device not configured' I've snipped the truss output to the relevant piece. fd 3 points to /dev/ata, and there are no man pages which document the IOCATADEVICES ioctl. I'll have to look at the source. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |