From owner-freebsd-mobile@FreeBSD.ORG Tue Jan 8 13:43:59 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FA4416A468 for ; Tue, 8 Jan 2008 13:43:59 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) Received: from ipmail05.adl2.internode.on.net (ipmail05.adl2.internode.on.net [203.16.214.145]) by mx1.freebsd.org (Postfix) with ESMTP id A2AE213C455 for ; Tue, 8 Jan 2008 13:43:58 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq4HADsMg0d5LaAS/2dsb2JhbACBV6dX X-IronPort-AV: E=Sophos;i="4.24,257,1196602200"; d="scan'208";a="31379177" Received: from ppp121-45-160-18.lns11.adl2.internode.on.net (HELO mail.clearchain.com) ([121.45.160.18]) by ipmail05.adl2.internode.on.net with ESMTP; 09 Jan 2008 00:13:56 +1030 Received: from [192.168.155.249] (draco.internal.clearchain.com [192.168.155.249]) (authenticated bits=0) by mail.clearchain.com (8.13.8/8.13.8) with ESMTP id m08DhriU072918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Jan 2008 00:13:54 +1030 (CST) (envelope-from Benjamin.Close@clearchain.com) Message-ID: <47837E16.4030308@clearchain.com> Date: Wed, 09 Jan 2008 00:13:50 +1030 From: Benjamin Close User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: vittorio References: <200801061852.29274.vdemart1@tin.it> <200801071435.34302.vdemart1@tin.it> <47823E96.6040206@wallnet.com> <200801080755.29509.vdemart1@tin.it> In-Reply-To: <200801080755.29509.vdemart1@tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.92, clamav-milter version 0.92 on pegasus.clearchain.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.clearchain.com [192.168.154.1]); Wed, 09 Jan 2008 00:13:54 +1030 (CST) Cc: freebsd-mobile@freebsd.org Subject: Re: wpi error: bus_dmamem_alloc failed to align memory properly X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2008 13:43:59 -0000 vittorio wrote: > Il Monday 07 January 2008 16:00:38 Tim Kellers ha scritto: > >> vittorio wrote: >> >>> Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto: >>> >>>> vittorio wrote: >>>> >>>>> Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4 >>>>> When loading if_wpi I get the following line saying that >>>>> "bus_dmamem_alloc failed to align memory properly" >>>>> >>>>> wpi0: mem 0xd8000000-0xd8000fff irq 16 >>>>> at device 0.0 on pci2 >>>>> bus_dmamem_alloc failed to align memory properly. >>>>> last message repeated 30 times >>>>> wpi0: Ethernet address: 00:19:d2:99:e3:cb >>>>> wpi0: [ITHREAD] >>>>> wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps >>>>> wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps >>>>> wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps >>>>> 24Mbps 36Mbps 48Mbps 54 >>>>> >>>>> >>>>> Therefore I'm unable to make wpi0 work at all. >>>>> >>>>> Could you please tell me what should I do? >>>>> >>>>> Ciao, Vittorio >>>>> >>>> The bus_dmamem_alloc message is harmless in your case. Due to >>>> limitations in the freebsd allocator, sometimes requesting a 16k aligned >>>> block of dma memory fails. As a temporary work around the wpi driver >>>> reattempts the allocation. If it truely does fail you'll not get a wpi0 >>>> device showing up, which clearly you did :). >>>> >>>> These warning messages will go away when I sync the next lot of updates >>>> to the driver which aren't quite ready yet. >>>> >>>> Can you describe a little more what you mean by wpi doesn't work? >>>> >>>> Cheers, >>>> Benjamin >>>> wpi driver maintainer >>>> >>> Ben, >>> here you are a longer explanation >>> >>> Context: >>> Router ZyXEL ADSL+2 with dhcp up and running >>> >>> Laptop HP Pavillion Entertainment DV6000 intel centrino duo 2GB of memory >>> hpbsd# uname -a >>> FreeBSD hpbsd.vic 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Thu Dec 27 22:18:53 CET >>> 2007 root@hpbsd.vic:/usr/obj/usr/src/sys/HP03 i386 >>> hpbsd# >>> all wpi's necessary devices are compiled in the kernel >>> device wpi >>> device pci >>> device wlan >>> device wlan_amrr >>> device firmware >>> >>> /var/log/messages >>> kernel: wpi0: mem 0xd8000000-0xd8000fff >>> irq 16 at device 0.0 on pci2 >>> kernel: wpi0: Ethernet address: 00:19:d2:99:e3:cb >>> kernel: wpi0: [ITHREAD] >>> kernel: wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps >>> 54Mbps kernel: wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps >>> kernel: wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps >>> 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps >>> >>> the line >>> >>> legal.intel_wpi.license_ack=1 >>> >>> is in /boot/loader.conf >>> >>> BUT >>> 1) >>> it seems that sysctl is unable to find it and I have to set it via >>> kenv legal.intel_wpi.license_ack=1 in a shell. >>> >>> Shouldn't this variable be set by either sysctl or by loader.conf (that >>> is is a system variable) OR is it supposed to be set via kenv only? >>> >>> 2) >>> dhclient is unable to get an IP address (BTW trying to set wpi0 up with a >>> fixed IP makes wpi0 not associated to any AP) >>> >>> Here it is a session log >>> >>> >>> hpbsd# sysctl -a|grep legal >>> hpbsd# >>> hpbsd# kenv legal.intel_wpi.license_ack=1 >>> legal.intel_wpi.license_ack="1" >>> hpbsd# kenv legal.intel_wpi.license_ack >>> 1 >>> >>> hpbsd# ifconfig wpi0 ssid "my_wireless" weptxkey 1 wepmode on wepkey >>> 0x1f7b0a5a0d >>> >>> hpbsd# dhclient wpi0 >>> DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 5 >>> DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 12 >>> DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 9 >>> DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 18 >>> DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 12 >>> DHCPDISCOVER on wpi0 to 255.255.255.255 port 67 interval 5 >>> No DHCPOFFERS received. >>> No working leases in persistent database - sleeping. >>> >>> hpbsd# ifconfig wpi0 >>> wpi0: flags=8843 metric 0 mtu >>> 1500 ether 00:19:d2:99:e3:cb >>> inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 >>> media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps) >>> status: associated >>> ssid my_wireless channel 6 (2437 Mhz 11g) bssid 00:02:cf:61:81:fd >>> authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit txpower 50 >>> bmiss 7 scanvalid 60 protmode CTS >>> >>> >>> >>> Even giving an ip fixed address to wpi0 doesn't seem to work, - that is - >>> I cannot ping anything and for netstat -rn wpi0 doesn't seem to exist. >>> >>> Please help >>> Ciao from Rome >>> >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >> Vittorio, >> >> Do you have a line just like the below in your /etc/rc.conf? I've found >> DHCP a little tricky to set up on wireless laptops, and after a Lot of >> testing, I got mine to work. (This is getting a dhcp address from a >> Linksys router) >> >> ifconfig_wpi0="ssid [your network name] nwkey [your network key] DHCP" >> >> Tim >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > I added the line but the dhcp operation fails exactly in the same way as I > described in my original message. > > No DHCPOFFERS received. > No working leases in persistent database - sleeping. > > Instead, a new error pops up in /var/log/messages > > wpi0: wpi_cmd: cmd 72 not sent, busy > wpi0: wpi_cmd: cmd 72 not sent, busy > > What's going on? > Can you send me the logs generated trying the same dhcp request with: sysctl debug.wpi=-2 and: wlandebug -i wpi0 0xffffffff As for sysctl not working with the license. It's a tunable so can only be set in loader.conf or via kenv - which you found out. Cheers, Benjamin