From owner-freebsd-current@FreeBSD.ORG Fri Aug 13 07:45:41 2010 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 09E0E106566C for ; Fri, 13 Aug 2010 07:45:41 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8B77B8FC20 for ; Fri, 13 Aug 2010 07:45:40 +0000 (UTC) Received: by eyh6 with SMTP id 6so1299597eyh.13 for ; Fri, 13 Aug 2010 00:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=evgV+fmxtcf8CXHPtEw515QkbMUZ5Y0oUuF49kagh9U=; b=WJvvpkqYoLLzB5ssqnvugKrZaIfm0D4dAi2+lAdilZYg0u16m4Dx7fP45pEtqnx4hy SkoxXUmldoPfQZGY1AR1O2XRxG/wVvAx5Fb7q71sfLZdb0lqmlXNJdFtrf4nnLOSw1nY iuQ8sD5w3Qt1BOzVWE5eIeeWH62nz57CHjALY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=wTRvFkcfG56np+YGAAUiCUlwz7l6cWjCKgyBliYtrzVDYYYvjuD+uc+A6CNqGR5DgE w0XO+XPSj6wX8ENAle3wLDINLCzIaCeloPQW/IDn5qtmsD36FW5OYn8MDSPOsRHdVCN6 VrwyYKBlt0vx+Z8Zey/YWpawHcjmQ5NVyt1X4= Received: by 10.213.35.136 with SMTP id p8mr271234ebd.88.1281684102304; Fri, 13 Aug 2010 00:21:42 -0700 (PDT) Received: from localhost (minsk.agava.net [212.98.174.157]) by mx.google.com with ESMTPS id z55sm3662689eeh.9.2010.08.13.00.21.41 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Aug 2010 00:21:41 -0700 (PDT) Date: Fri, 13 Aug 2010 10:22:06 +0300 From: "Sergey V. Dyatko" To: freebsd-current@FreeBSD.org Message-ID: <20100813102206.1756fbe9@gmail.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: if_alc trouble 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: Fri, 13 Aug 2010 07:45:41 -0000 Hi all, I have strange problem: NIC: alc0@pci0:2:0:0: class=0x020000 card=0x38a317aa chip=0x10621969 rev=0xc0 hdr=0x00 vendor = 'Attansic (Now owned by Atheros)' device = 'Atheros AR8132 PCI-E Fast Ethernet Controller (AR8132)' class = network subclass = ethernet % uname -a FreeBSD laptop.minsk.domain 9.0-CURRENT FreeBSD 9.0-CURRENT #8 r209973: Tue Jul 13 10:17:08 EEST 2010 root@laptop.minsk.domain:/usr/obj/usr/src/sys/b450 i386 I'm using if_alc as a kernel module, when I boot with plugged in cable all works fine, but when I booting with unplugged cable - network doesn't work. I'm trying kenv hw.alc.msi_disable=1 and kldload if_alc.. from messages: Aug 13 09:06:12 laptop kernel: alc0: port 0x3000-0x307f mem 0x96100000-0x9613ffff ir q 16 at Ethernet> device 0.0 on pci2 Aug 13 09:06:12 laptop kernel: alc0: 15872 Tx FIFO, 15360 Rx FIFO Aug 13 09:06:12 laptop kernel: miibus0: on alc0 Aug 13 09:06:12 laptop kernel: atphy0: PHY 0 on miibus0 Aug 13 09:06:12 laptop kernel: atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Aug 13 09:06:12 laptop kernel: alc0: Ethernet address: 00:1f:16:2e:fa:49 Aug 13 09:06:12 laptop kernel: alc0: [FILTER] Aug 13 09:06:12 laptop kernel: alc0: link state changed to DOWN Aug 13 09:06:15 laptop kernel: alc0: link state changed to UP Aug 13 09:06:15 laptop kernel: alc0: DMA write error! -- resetting Aug 13 09:06:15 laptop kernel: alc0: link state changed to DOWN Aug 13 09:06:16 laptop kernel: alc0: promiscuous mode enabled Aug 13 09:06:17 laptop kernel: alc0: link state changed to UP Aug 13 09:06:18 laptop kernel: alc0: DMA write error! -- resetting Aug 13 09:06:18 laptop kernel: alc0: link state changed to DOWN Aug 13 09:06:20 laptop kernel: alc0: link state changed to UP Aug 13 09:06:21 laptop kernel: alc0: DMA write error! -- resetting how to repeat: 1) boot with unplugged cable (if_alc_load="YES" on loader.conf) 2) plug-in cable 3) dhclient alc0 4) tcpdump -ni alc0 -vvv -> http://tiger.ipfw.ru/files/tcpdump.txt 5) reboot with plugged cable.. 6) dhclient alc0 .... [tiger@laptop]~%ifconfig alc0 alc0: flags=8843 metric 0 mtu 1500 options=c3198 ether 00:1f:16:2e:fa:49 inet 192.168.9.150 netmask 0xffffff00 broadcast 192.168.9.255 media: Ethernet autoselect (100baseTX ) status: active now I can unplug cable, unload if_alc, load it again, plug cable -- all works fine.. Thanks in advance.... -- wbr, tiger