Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2008 00:42:42 +1030
From:      Benjamin Close <Benjamin.Close@clearchain.com>
To:        Yousif Hassan <yousif@alumni.jmu.edu>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: if_wpi will not work for me
Message-ID:  <47EBAB5A.8070203@clearchain.com>
In-Reply-To: <FAD152AEC8964784A7DA72415A6B9690@alderaan>
References:  <200803181157.m2IBvBLb000594@tausa.cc.uit.no><200803261002.m2QA2VNZ036148@tausa.cc.uit.no>	<20080326184712.50100aac.torfinn.ingolfsen@broadpark.no> <FAD152AEC8964784A7DA72415A6B9690@alderaan>

next in thread | previous in thread | raw e-mail | index | archive | help
Yousif Hassan wrote:
> Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> wrote:
>> Johan Johansen <Johan.Johansen@cc.uit.no> wrote:
>>
>>> Returning from my vacation, I notice that my problem is somewhat
>>> different from what some of you other guys describe. I cant get a
>>> wpi-device to work with at all.
>>>
>>> Booting without acpi makes no differens.
>>> Applying patch wpi_releng7.diff makes no differens.
>>>
>>> Before I load if_wpi, pciconf says
>>> none0@pci0:8:0:0:       class=0x028000 card=0x135c103c
>>> chip=0x42228086 rev=0x02 hdr=0x00
>>>     vendor     = 'Intel Corporation'
>>>     device     = '10418086 Intel 3945ABG Wireless LAN controller'
>>>     class      = network
>>> and after
>>> wpi0@pci0:8:0:0:        class=0x028000 card=0x135c103c
>>> chip=0x42228086 rev=0x02 hdr=0x00
>>>     vendor     = 'Intel Corporation'
>>>     device     = '10418086 Intel 3945ABG Wireless LAN controller'
>>>     class      = network
>>> but still no wpi0 present.
>>>
>>> So, would it help to buy more memory, and if I do, where should I put
>>> it?
>>
>> Just curious: why do you think that buying more memory will help?
>> Because of the "cabn't allocate memory resource" message?
>> AFAIU, that message indicates that there is something wrong with the
>> way your acpi / bios tells FreeBSD what memory / how much memory it
>> needs, not that the machine itself has too little memory.
>
> To wit, my experience has been that this message is innocuous.  This 
> has been confirmed by Ben, who wrote the driver.  I used to get these 
> messages but the wpi0 device would attach fine (it tends to get buried 
> during bootup messages after all that scroll - check dmesg).  In 
> addition, Andrew's latest patches to -current and -stable resolve this 
> message - it no longer appears for me.  So Johan, do not buy more 
> memory simply to solve this issue!
>
> Did you try those latest patches, and do you still see a problem?
>
> If your pciconf is reporting a "wpi0@...." in the device list, it 
> seems improbable that the device didn't attach - in that case you'd 
> have seen "noneX@..."  This may be stating the obvious, but there are 
> specific steps you need to do to enable this device, including 
> accepting a license via /boot/loader.conf; did you follow them?  Do 
> you have a dmesg confirming that the device did not attach?  Do you 
> have the output of ifconfig for us to look at?
I believe there is two issues here. The innocent message is:

//        wpi0: bus_dmamem_alloc failed to align memory properly.

//This is handled by the driver and the driver version now in 
-Current/RELENG_7 has a proper fix preventing this from occurring.

However, //

//        wpi0: could not allocate memory resource
        device_attach: wpi0 attach returned 6

Is caused by pci memory not being available. This seems to be occurring 
on pci-pci bridges on some laptops and will render you without a wpi 
device showing up.
At present the cause is unknown but I'm working to try and fix it. It's 
not actually driver related but pci bus related.

Also, adding more memory won't help fix the problem.

Cheers,
Benjamin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47EBAB5A.8070203>