From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 28 22:37:11 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 7105B1065686 for ; Sun, 28 Sep 2008 22:37:11 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id 14C968FC12 for ; Sun, 28 Sep 2008 22:37:10 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA03.westchester.pa.mail.comcast.net with comcast id LGbj1a00J0SCNGk53NdA0S; Sun, 28 Sep 2008 22:37:10 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA09.westchester.pa.mail.comcast.net with comcast id LNd91a00A4v8bD73VNd9Hb; Sun, 28 Sep 2008 22:37:10 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=JwCsm0qYgY5sURVSvXUA:9 a=D77wblRTVdWzPqojVX0A:7 a=rrYgBRsiKnmcdd-Z0qDtGrIsBBQA:4 a=EoioJ0NPDVgA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 326B4C9432; Sun, 28 Sep 2008 15:37:09 -0700 (PDT) Date: Sun, 28 Sep 2008 15:37:09 -0700 From: Jeremy Chadwick To: Pegasus Mc Cleaft Message-ID: <20080928223709.GA90348@icarus.home.lan> References: <20080928103937.U51561@hercules.mthelicon.com> <20080928204241.GA88408@icarus.home.lan> <200809282232.49053.ken@mthelicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809282232.49053.ken@mthelicon.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, 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: Sun, 28 Sep 2008 22:37:11 -0000 On Sun, Sep 28, 2008 at 10:32:48PM +0100, Pegasus Mc Cleaft wrote: > On Sunday 28 September 2008 21:42:41 Jeremy Chadwick wrote: > > On Sun, Sep 28, 2008 at 10:43:58AM +0000, Pegasus McCleaft wrote: > > > 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 > > > > What arguments did you give atacontrol? > > Sorry, forgot to add that in. I was typing from a terminal window while xorg > was rebuilding. Perhapse some more usefull information to follow :> > > feathers# atacontrol list > 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: > > > > atapci is just the PCI portion, and doesn't show any sign of the ATA > > driver being attached. Do you have ataX (e.g. ata0) devices showing > > up in dmesg? > > Yea.. The machine is otherwise running fine, and also loaded the driver for > the ata raid controller (I made the machine boot off a raid-1 pack and made > slices on the pack for /, /usr, /var . The rest zfs for /usr/home) I don't know what filesystems you have assigned to what drives, but please be aware there are known major problems with Silicon Image controllers on FreeBSD, Linux, and Windows. The most common problem is silent data corruption. I can refer you to previous discussions of this problem if you'd like. If at all possible, disable this controller in the BIOS, and do not use it. JMicron controllers are known to behave OK, but have a history of serious driver problems under Windows. I doubt that'll affect you, but it's something to keep in mind. I see the system has an Intel AHCI-based controller (probably an ICH10 chip, since the ICH10 is the first to support 6 SATA channels). I would recommend using that for as much as you can (I see you have disks ad14 through ad24 off that controller). Just things you should be aware of. > Thinking about it, I also added atapicd in the kernel config so I could use > things like K3B and xcdroast.. I dont know if maybe that shim might be causing > issues. I'll try making another kernel without it and giving that a try. I highly doubt that's the problem. Can you please include your kernel configuration file here? Also, please do not copy/paste the file; I noticed in your dmesg|grep ata output, all of the lines had trailing spaces (I've stripped them off). I've CC'd sos@freebsd.org who maintains ata(4). I see no reason why "atacontrol list" would be returning such an error. > feathers# dmesg | grep ata > atapci0: port 0x9000-0x907f mem > 0xe7004000-0xe700407f,0xe7000000-0xe7003fff irq 16 at device 0.0 on pci3 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > atapci1: mem 0xec100000-0xec101fff irq 19 > at device 0.0 on pci5 > atapci1: [ITHREAD] > atapci1: AHCI called from vendor specific driver > atapci1: AHCI Version 01.00 controller with 2 ports detected > ata4: on atapci1 > ata4: [ITHREAD] > ata5: on atapci1 > ata5: [ITHREAD] > atapci2: port > 0xb000-0xb007,0xb100-0xb103,0xb200-0xb207,0xb300-0xb303,0xb400-0xb40f irq 16 > at device 0.1 on pci5 > atapci2: [ITHREAD] > ata6: on atapci2 > ata6: [ITHREAD] > atapci3: port > 0xe600-0xe607,0xe700-0xe703,0xe800-0xe807,0xe900-0xe903,0xea00-0xea1f mem > 0xec406000-0xec4067ff irq 19 at device 31.2 on pci0 > atapci3: [ITHREAD] > atapci3: AHCI Version 01.20 controller with 6 ports detected > ata7: on atapci3 > ata7: [ITHREAD] > ata8: on atapci3 > ata8: [ITHREAD] > ata9: on atapci3 > ata9: [ITHREAD] > ata10: on atapci3 > ata10: [ITHREAD] > ata11: on atapci3 > ata11: [ITHREAD] > ata12: on atapci3 > ata12: [ITHREAD] > acd0: DVDR at ata3-master SATA150 > ad8: 476940MB at ata4-master SATA300 > ad10: 476940MB at ata5-master SATA300 > ad14: 476938MB at ata7-master SATA300 > ad16: 476940MB at ata8-master SATA300 > ad18: 476940MB at ata9-master SATA300 > ad20: 476940MB at ata10-master SATA300 > ad22: 476940MB at ata11-master SATA300 > ad24: 476940MB at ata12-master SATA300 > ar0: disk0 READY (master) using ad8 at ata4-master > ar0: disk1 READY (mirror) using ad10 at ata5-master > cd0 at ata1 bus 0 target 0 lun 0 -- | 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 |