From owner-freebsd-current Fri Jun 22 10:45:55 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 B44C337B403 for ; Fri, 22 Jun 2001 10:45:46 -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 f5MHjZa24417 for ; Sat, 23 Jun 2001 02:45:38 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) In-Reply-To: <200106221627.f5MGRJh55632@freebsd.dk> References: <20010623002021Z.matusita@jp.FreeBSD.org> <200106221627.f5MGRJh55632@freebsd.dk> 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: 61 From: Makoto MATSUSHITA To: current@FreeBSD.ORG Subject: Re: Problems with ata probing twice. Date: Sat, 23 Jun 2001 02:45:13 +0900 Message-Id: <20010623024513Q.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 sos> Well, sortof, the ata driver doesn't allow for sharing irq14&15 sos> since lots of boards doesn't work that way. However if you need sos> it you can try to add the shared flag in the driver and see if sos> it works on yours. I've changed src/sys/dev/ata/ata-pci.c with: --- ata-pci.c.dist Sat Jun 23 02:19:58 2001 +++ ata-pci.c Sat Jun 23 02:20:26 2001 @@ -515,7 +515,7 @@ return BUS_ALLOC_RESOURCE(device_get_parent(dev), child, SYS_RES_IRQ, rid, - irq, irq, 1, flags & ~RF_SHAREABLE); + irq, irq, 1, flags); #endif } else { and reboot. At booting time, ata driver says: atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xf000 ata0: mask=03 ostat0=50 ostat2=00 ata0-slave: ATAPI probe 00 00 ata0-master: ATAPI probe 00 00 ata0: mask=03 stat0=50 stat1=00 ata0-master: ATA probe 01 a5 ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xf008 ata1: at 0x170 irq 15 on atapci0 it's as same as before. fxp driver says: fxp0: port 0xe400-0xe43f mem 0xd2420000-0xd243ffff,0xd2440000-0xd2440fff irq 15 at device 8.0 on pci0 fxp0: using memory space register mapping fxp0: Ethernet address 00:10:f3:03:52:31, 10Mbps fxp0: PCI IDs: 8086 1229 0000 0000 0009 fxp0: Chip Type: 0 bpf: fxp0 attached fxp1: port 0xe800-0xe83f mem 0xd2400000-0xd241ffff,0xd2441000-0xd2441fff irq 11 at device 9.0 on pci0 fxp1: using memory space register mapping fxp1: Ethernet address 00:10:f3:03:52:32, 10Mbps fxp1: PCI IDs: 8086 1229 0000 0000 0009 fxp1: Chip Type: 0 bpf: fxp1 attached Yeah! Thank you for your advice ^_^/ sos> Hmm, maybe I should make this tunable... It would be great if this is tunable for me. It would also help other users who have small PCs, there are only one IDE bus because of space (as said before, this machine is also small PC, 13-PCs in 4U space). -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message