From owner-freebsd-current Mon Jun 18 7:47:47 2001 Delivered-To: freebsd-current@freebsd.org Received: from updraft.jp.freebsd.org (updraft.jp.FreeBSD.ORG [210.157.158.42]) by hub.freebsd.org (Postfix) with ESMTP id 606B537B405 for ; Mon, 18 Jun 2001 07:47:43 -0700 (PDT) (envelope-from matusita@jp.FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by updraft.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet id f5IEld849539 for ; Mon, 18 Jun 2001 23:47:39 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) In-Reply-To: <20010618091710.A72197@peitho.fxp.org> References: <20010618141337.L728@tao.org.uk> <20010618141337.L728@tao.org.uk> <20010618091710.A72197@peitho.fxp.org> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94.2 XEmacs/21.5 (alfalfa) X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20000228(IM140) Lines: 58 From: Makoto MATSUSHITA To: current@FreeBSD.ORG Subject: Problems with ata probing twice. Date: Mon, 18 Jun 2001 23:47:17 +0900 Message-Id: <20010618234717K.matusita@jp.FreeBSD.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jedgar> Commenting hints.psm.0.* and hint.atkbd.0.* from /boot/device.hints jedgar> (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=84052+0+current/freebsd-current) jedgar> works here. I have similar problem; 'ata' bus is detected twice. We jp.FreeBSD.org have donated TrustGuard iSV, which is 13 PCs in 4U (). FreeBSD 4-stable works fine, but 5-current (as of mid-March/2001; early-June/2001 kernel causes unwanted panic but it's another story) kernel detects ata bus twice, even if there is only one ata bus (and one HDD on the bus). (from dmesg output) atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 I've tried to figure out what's going on with atacontrol(8), and got: ushi % sudo atacontrol info ata0 Master slot: ad0: ATA/ATAPI rev 5 Slave slot: no device present ushi % sudo atacontrol info ata1 Master slot: ad0: ATA/ATAPI rev 5 Slave slot: no device present Apparantly, the kernel attaches same bus/HDD _twice_. Detecting atkbd/psm twice can be disabled with device.hints, but how to do with ata bus? I've commented out all hw.ata.* line in device.hints but no lacks... This causes another problem. In fact, this iSV has two fxp ethernet device, and one of them uses IRQ 15. Since ata1 is detected before fxp, I've got: (from dmesg output) fxp0: port 0xe400-0xe43f mem 0xd2420000-0xd243ffff,0xd2440000-0xd2440fff irq 15 at device 8.0 on pci0 fxp0: could not map interrupt device_probe_and_attach: fxp0 attach returned 6 fxp0: port 0xe800-0xe83f mem 0xd2400000-0xd241ffff,0xd2441000-0xd2441fff irq 11 at device 9.0 on pci0 fxp0: Ethernet address 00:10:f3:03:52:32 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Kernel refuses to attach first fxp device. *** Is there any way to stop detecting ata1 in this case? Why kernel detects ata1 which doesn't exist? Since this machine will be 5-current buildbox for our SNAPSHOTs service, there are no options that using 4-stable kernel instead. -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message