From owner-freebsd-stable@FreeBSD.ORG Wed Oct 15 04:17:52 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B7AA1065689 for ; Wed, 15 Oct 2008 04:17:52 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 304B68FC13 for ; Wed, 15 Oct 2008 04:17:51 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA05.emeryville.ca.mail.comcast.net ([76.96.30.43]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id SbDX1a00A0vp7WLA2sHrKG; Wed, 15 Oct 2008 04:17:51 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA05.emeryville.ca.mail.comcast.net with comcast id SsHq1a0052P6wsM8RsHqN0; Wed, 15 Oct 2008 04:17:51 +0000 X-Authority-Analysis: v=1.0 c=1 a=O4TkAD0TNb0A:10 a=Vtt3cZiWpDsA:10 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=XfAC_DoxuMOEFRjwGl8A:9 a=2gn4Ejy0ScOMu7LI41kA:7 a=hXwygSnjxJ45YZ8ZkRqre1OJopUA:4 a=EoioJ0NPDVgA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 03ADBC9419; Tue, 14 Oct 2008 21:17:50 -0700 (PDT) Date: Tue, 14 Oct 2008 21:17:49 -0700 From: Jeremy Chadwick To: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <20081015041749.GA67219@icarus.home.lan> References: <48F526BB.6010604@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48F526BB.6010604@quip.cz> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: atacontrol: ioctl(IOCATADEVICES): Device not configured X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 04:17:52 -0000 On Wed, Oct 15, 2008 at 01:09:47AM +0200, Miroslav Lachman wrote: > FreeBSD 7.1-BETA amd64 GENERIC on HP ProLiant ML110 G5 > > When I tried to run 'atacontrol list' I got an error: > atacontrol: ioctl(IOCATADEVICES): Device not configured There was a bug in atacontrol which was causing this for most people, although there's the possibility that this is a new bug. See revision 1.43.2.3 below: http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/atacontrol/atacontrol.c Can you verify what version of src/sbin/atacontrol/atacontrol.c your world was built off of? I'm thinking because it was so new (barely 2 weeks) that it didn't get pulled in during the BETA build, but it definitely should have gotten pulled in for BETA2. ftp://ftp4.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/7.1/ > It is after I switched HDD mode in BIOS to "Serial ATA" (it was "Auto" > before) > > Does it means that atacontrol list is not available for Serial ATA > native mode? (I don't think so, because I am using atacontrol on another > machines where disk are at AHCI mode AFAIK - Sun Fire X2100 M2 for > example) > > > ## pciconf -lv > atapci0@pci0:0:31:2: class=0x01018f card=0x31f4103c chip=0x29208086 > rev=0x02 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801IB/IR/IH (ICH9 Family) 4 port Serial ATA Storage > Controller 1' > class = mass storage > subclass = ATA > none0@pci0:0:31:3: class=0x0c0500 card=0x31f4103c chip=0x29308086 > rev=0x02 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801IB/IR/IH (ICH9 Family) SMBus Controller' > class = serial bus > subclass = SMBus > atapci1@pci0:0:31:5: class=0x010185 card=0x31f4103c chip=0x29268086 > rev=0x02 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage > Controller 2' > class = mass storage > subclass = ATA > > bge0@pci0:14:0:0: class=0x020000 card=0x7051103c chip=0x165a14e4 > rev=0x00 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'NetXtreme BCM5722 Gigabit Ethernet PCIe' > class = network > subclass = ethernet > > ## BIOS HDD mode: Serial ATA > ## /var/run/dmesg.boog > atapci0: port > 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c10-0x1c1f,0x1c00-0x1c0f > irq 17 at device 31.2 on pci0 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > pci0: at device 31.3 (no driver attached) > atapci1: port > 0x1c68-0x1c6f,0x1c5c-0x1c5f,0x1c60-0x1c67,0x1c58-0x1c5b,0x1c30-0x1c3f,0x1c20-0x1c2f > irq 18 at device 31.5 on pci0 > atapci1: [ITHREAD] > ata4: on atapci1 > ata4: [ITHREAD] > ata5: on atapci1 > ata5: [ITHREAD] > [...] > ad4: 953869MB at ata2-master SATA300 > ad5: 953869MB at ata2-slave SATA300 > ad6: 953869MB at ata3-master SATA300 > ad7: 953869MB at ata3-slave SATA300 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 7936MB (16252928 512 byte sectors: 255H 63S/T 1011C) > acd0: DVDR at ata4-master SATA150 > > > ## BIOS HDD mode: Auto > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c10-0x1c1f,0x1c00-0x1c0f at > device 31.2 on pci0 > ata0: on atapci0 > ata0: [ITHREAD] > ata1: on atapci0 > ata1: [ITHREAD] > pci0: at device 31.3 (no driver attached) > atapci1: port > 0x1c68-0x1c6f,0x1c5c-0x1c5f,0x1c60-0x1c67,0x1c58-0x1c5b,0x1c30-0x1c3f,0x1c20-0x1c2f > irq 18 at device 31.5 on pci0 > atapci1: [ITHREAD] > ata2: on atapci1 > ata2: [ITHREAD] > ata3: on atapci1 > ata3: [ITHREAD] > [...] > ad0: 953869MB at ata0-master SATA300 > ad1: 953869MB at ata0-slave SATA300 > ad2: 953869MB at ata1-master SATA300 > ad3: 953869MB at ata1-slave SATA300 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 7936MB (16252928 512 byte sectors: 255H 63S/T 1011C) > acd0: DVDR at ata2-master SATA150 > > > The motherboard has 6x SATA ports, 2 are marked "for optical/removable > drives" and 4 are for HDDs. > System is booted from USB flash disk. > It is first time I see SATA devices attached as Master & Slave on same > ATA channel, previously (on different machines) it was always as Master > on separated channels. This configuration is worse if I want to utilize > all drives at the same time (in RAIDZ). One drive can achieve 110MB/s > read, both drives can achieve only 80MB/s each. ;( > > Next strange thing is difference in Interrupts in systat output. With > mode "Auto', each ATA channel is listed on separated IRQ, with mode > "Serial ATA" channels are not listed but it seems that both are on the > same interrupt as bge0. Am I right? So it seems better to not use > "Serial ATA" mode settings. > > ## part of systat during read test by 'dd if=/dev/adN of=/dev/null' > ## BIOS HDD mode: Serial ATA > Interrupts > 8737 total > uhci0 uhci > 4734 bge0 uhci1 > uhci2 ehci > 2001 cpu0: time > 2002 cpu1: time > > ## BIOS HDD mode: Auto > Interrupts > 9262 total > 2660 ata0 irq14 > 2603 ata1 irq15 > uhci0 uhci > 1 bge0 uhci1 > uhci2 ehci > 1999 cpu0: time > 1999 cpu1: time > > > Let me know if (and what) more details are needed. > > Miroslav Lachman > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- | 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 |