From owner-freebsd-current@FreeBSD.ORG Wed Nov 14 11:19:54 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CED1616A41B for ; Wed, 14 Nov 2007 11:19:54 +0000 (UTC) (envelope-from andrey.kosachenko@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 4F29113C503 for ; Wed, 14 Nov 2007 11:19:54 +0000 (UTC) (envelope-from andrey.kosachenko@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so338383uge for ; Wed, 14 Nov 2007 03:19:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:from; bh=ZAzDzy3VYdZqwiisIINmR3khpFX8KNPg6SV/Gp3naQs=; b=ZJGRz7mMbTy2gYzLLnJXFGS0fFv8yEpVolf//m0a/c4N3++8/6fdE75mQsjUhEXdh48afu6znB8vVFScMbi/vrmVCCQ7GBqPLYS3qQu9/DPc3w7XTIQLg2ftrHX0lG3XzNvPqVf1MMERVFkiiBpHUSFl6nCpkyp94syitmPK5DM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:from; b=GeqPWnJiw6Ai/QWvxH5he/tvFKdk9YdWaKPuMytkuMIHys7Bg1d+L3tbz0wto2t5nSeH69614wV+SuqTg96F+2wcjMorod76rlRTyZ5orO3QDNN7Fz3PyvHfw60KYyviKRQMsQAgldaTv8sqP4a6VKG3pREZkm+LALDCnN9asiw= Received: by 10.67.116.7 with SMTP id t7mr62989ugm.1195039183365; Wed, 14 Nov 2007 03:19:43 -0800 (PST) Received: from avalon.intra ( [194.9.14.78]) by mx.google.com with ESMTPS id g30sm2861233ugd.2007.11.14.03.19.41 (version=SSLv3 cipher=RC4-MD5); Wed, 14 Nov 2007 03:19:42 -0800 (PST) Message-ID: <473AD98A.8050003@gmail.com> Date: Wed, 14 Nov 2007 13:18:34 +0200 User-Agent: Thunderbird 2.0.0.6 (X11/20071106) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Andrey Subject: RELENG_7 and HEAD: bge causes system hang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 11:19:54 -0000 Good time of the day. I still would like to report the real and constantly reproducible problem connected with bge driver on machines with BroadCom Netlink Gigabit Ethernet Controller (BCM5787 chipset). In order to reproduce the problem it is enough try to install RELENG_7 or CURRENT system on a machine with BroadCom Netlink Gigabit Ethernet Controller (with BCM5787 chipset). System hangs as soon as it tries to adjust bge device driver. I've tried to overcome mentioned problem in many different ways. Unfortunately I still didn't manage to get it working. As RELENG_6 handles bge properly on that machine, so I even decided to try "rollback" bge from RELENG_7 to RELENG_6. Actually I don't think it was a good idea, but I couldn't see a way out. Thus I threw out miibus and bge devices from the kernel config and recompiled kernel (in order to obtain freedom to play with bge). Then I obtained the RELENG_6 sources for bge, miibus and dependencies. After that I managed to compile miibus.ko and if_bge.ko (of course I had to overcome several problems but at least I managed to compile it). # cd /usr/src/sys/modules/mii # make cleandepend && make clean # make obj && make depend && make && make install # cd /usr/src/sys/modules/bge # make cleandepend && make clean # make obj && make depend && make && make install After those steps above I got new miibus.ko and if_bge.ko under /boot/kernel/. And I even managed to kldload miibus successfully. But with if_bge an old story took place :(. It completely freezed the system. Of course I doubt that I'm trying right means in order to solve the problem. But it seems that nobody interested even to confirm or refuse an existence of described problem. I've tried to reproduce the problem on two different machines with BCM5787 and the results were the same: bge driver causes system hang on RELENG_7 and CURRENT and works properly on RELENG_6. So I'll appreciate any comments on this. Thanks. # uname -a FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #0: Thu Nov 8 23:58:43 EET 2007 root@:/usr/obj/usr/src/sys/FREE-SMP-ULE-08112007-v1 i386 # pciconf -lv hostb0 at pci0:0:0:0: class=0x060000 card=0x30c0103c chip=0x2a008086 rev=0x0c hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile PM965/GM965/GL960 Express Processor to DRAM Controller' class = bridge subclass = HOST-PCI vgapci0 at pci0:0:2:0: class=0x030000 card=0x30c0103c chip=0x2a028086 rev=0x0c hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile 965 Express Integrated Graphics Controller' class = display subclass = VGA vgapci1 at pci0:0:2:1: class=0x038000 card=0x30c0103c chip=0x2a038086 rev=0x0c hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile 965 Express Integrated Graphics Controller' class = display uhci0 at pci0:0:26:0: class=0x0c0300 card=0x30c0103c chip=0x28348086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB uhci1 at pci0:0:26:1: class=0x0c0300 card=0x30c0103c chip=0x28358086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB ehci0 at pci0:0:26:7: class=0x0c0320 card=0x30c0103c chip=0x283a8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '81EC1043 (?) ICH8 Enhanced USB2 Enhanced Host Controller' class = serial bus subclass = USB none0 at pci0:0:27:0: class=0x040300 card=0x30c0103c chip=0x284b8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H &SUBSYS_81EC1043&REV_02\3&11583659&0&D8' class = multimedia pcib1 at pci0:0:28:0: class=0x060400 card=0x30c0103c chip=0x283f8086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 1' class = bridge subclass = PCI-PCI pcib2 at pci0:0:28:1: class=0x060400 card=0x30c0103c chip=0x28418086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 2' class = bridge subclass = PCI-PCI pcib3 at pci0:0:28:2: class=0x060400 card=0x30c0103c chip=0x28438086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 3' class = bridge subclass = PCI-PCI pcib4 at pci0:0:28:4: class=0x060400 card=0x30c0103c chip=0x28478086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 5' class = bridge subclass = PCI-PCI uhci2 at pci0:0:29:0: class=0x0c0300 card=0x30c0103c chip=0x28308086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB uhci3 at pci0:0:29:1: class=0x0c0300 card=0x30c0103c chip=0x28318086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB uhci4 at pci0:0:29:2: class=0x0c0300 card=0x30c0103c chip=0x28328086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB ehci1 at pci0:0:29:7: class=0x0c0320 card=0x30c0103c chip=0x28368086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB2 EHCI' class = serial bus subclass = USB pcib5 at pci0:0:30:0: class=0x060401 card=0x30c0103c chip=0x24488086 rev=0xf3 hdr=0x01 vendor = 'Intel Corporation' device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge' class = bridge subclass = PCI-PCI isab0 at pci0:0:31:0: class=0x060100 card=0x30c0103c chip=0x28158086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'ICH8M-E (ICH8 Family) LPC Interface Controller' class = bridge subclass = PCI-ISA atapci0 at pci0:0:31:1: class=0x01018a card=0x30c0103c chip=0x28508086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) Ultra ATA Storage Controllers' class = mass storage subclass = ATA atapci1 at pci0:0:31:2: class=0x010601 card=0x30c0103c chip=0x28298086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801 Intel(R) 82801HEM/HBM SATA AHCI Controller' class = mass storage none1 at pci0:16:0:0: class=0x028000 card=0x135c103c chip=0x42228086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '10418086 Intel 3945ABG Wireless LAN controller' class = network none2 at pci0:24:0:0: class=0x020000 card=0x30c0103c chip=0x169314e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM 5787A Ethernet Controller Broadcom Netlink Gigabit' class = network subclass = ethernet cbb0 at pci0:2:4:0: class=0x060700 card=0x30c0103c chip=0x04761180 rev=0xb6 hdr=0x02 vendor = 'Ricoh Company, Ltd.' device = 'unknown Ricoh R/RL/5C476(II)' class = bridge subclass = PCI-CardBus -- Sincerely, Andrey