From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 17 10:40:12 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61D6B1065672 for ; Mon, 17 Jan 2011 10:40:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3F5128FC16 for ; Mon, 17 Jan 2011 10:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0HAeCbd014914 for ; Mon, 17 Jan 2011 10:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0HAeCS7014913; Mon, 17 Jan 2011 10:40:12 GMT (envelope-from gnats) Resent-Date: Mon, 17 Jan 2011 10:40:12 GMT Resent-Message-Id: <201101171040.p0HAeCS7014913@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chester Lee Schmaltz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E9A1106564A for ; Mon, 17 Jan 2011 10:39:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id F24C48FC19 for ; Mon, 17 Jan 2011 10:39:32 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p0HAdWiV055165 for ; Mon, 17 Jan 2011 10:39:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p0HAdWK9055164; Mon, 17 Jan 2011 10:39:32 GMT (envelope-from nobody) Message-Id: <201101171039.p0HAdWK9055164@red.freebsd.org> Date: Mon, 17 Jan 2011 10:39:32 GMT From: Chester Lee Schmaltz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/154076: recent alc driver locks computer X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 10:40:12 -0000 >Number: 154076 >Category: kern >Synopsis: recent alc driver locks computer >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 17 10:40:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Chester Lee Schmaltz >Release: modified 8.1-RELEASE amd64, also on ordinary 8.2-RC2 for i386 & amd64 >Organization: >Environment: FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sun Jan 16 22:39:49 CST 2011 root@n7010.local.xxx:/usr/obj/usr/src/sys/GENERICpatch amd64 >Description: I'm having problems with getting the wired Atheros network card working on my new laptop (Dell N7010). The pciconf output says the device ID is 0x2060, which from the dev/alc/if_alcreg.h on the CVSweb browser indicates it is an AR8152. I'm running 8.1-RELEASE but its version of alc doesn't support this card. So I grabbed the version of if_alc.c, if_alcreg.h, and if_alcvar.h from Aug. 20th 2010 which added support, but now after using dhclient or manually assigning an IP my computer completely locks up. A message about the interface going down, and then a second one about it coming back up are the last things I see. No error messages come up nor are written to /var/log/messages. I also tried even more recent versions from the RELENG_8_2 branch and had to update some files in dev/mii and sys/net/if_media.h but... same results. I have an Intel i5 processor and I'm using the amd64 architecture. GENERIC kernel or a modified one to remove unneeded stuff makes no difference. Here is the pciconf output after updating alc: alc0@pci0:4:0:0: class=0x020000 card=0x04571028 chip=0x20601969 rev=0xc1 hdr=0x00 vendor = 'Attansic (Now owned by Atheros)' class = network subclass = ethernet bar [10] = type Memory, range 64, base 0xf0400000, size 262144, enabled bar [18] = type I/O Port, range 32, base 0x2000, size 128, enabled cap 01[40] = powerspec 3 supports D0 D3 current D0 cap 05[48] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[58] = PCI-Express 1 endpoint max data 128(4096) link x1(x1) cap 03[6c] = VPD with plain 8.1-RELEASE it's similar but with none3@" replacing "alc0@" and the cap 05 line doesn't say "enabled with 1 message". The ifconfig output (with the newer driver) is: alc0: flags=8802 metric 0 mtu 1500 options=c3198 ether f0:4d:a2:56:b9:48 media: Ethernet autoselect I also tried both the i386 and amd64 bootonly CD's for 8.2-RC2 and the same thing still happens if I give an IP address to alc0 with ifconfig at the holographic shell prompt. For reference, in Linux the driver atl1c is working for it just fine. Linux's lspci -vvv seems to git a lot more info, here it is: 04:00.0 Ethernet controller: Attansic Technology Corp. Device 2060 (rev c1) Subsystem: Dell Device 0457 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- How-To-Repeat: Use the alc driver after Aug. 30 2010, Dell N7010 laptop, Attansic/Atheros device 2060 (rev c1) wired network card. and then run: ifconfig alc0 192.168.100.3 (or any other IP) or dhclient alc0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: