Hauke Mehrtens | 29 Jan 2012 23:12
Picon

BCM5354 SoC with LP Phy Wifi

I got a device with a BCM5354 SoC and a LP-Phy Wifi core on it. With
current b43 it still fails with Out of memory when using a recent
firmware 666.2 and works with an old firmware 410.2160. I tried DMA and
PIO mode and had the same results. I added some printk's into the code
and implemented some parts b43 does not have but the Braodcom sdk and
brcmsmac has in the dma code, but I haven't resolved the issue.

I found out the error occurs when send some packages doing "ifconfig
wlan0 up" does not result in any problems, but when I try to scan with
"iw wlan0 scan" it oopes very soon. The problem seams to be related to
TX as there are many packages received, but the oops occurs after 4
calls to b43_dma_tx()

Larry, you wrote some more LP spec based on a newer driver is there a
list with updated docs or should I manually look into all packages if I
want to implement it like it is in the new wl driver.
As I see there are also many parts not implemented, but described in the
spec so looking over the hole code is probably needed.
My device has a sprom of revision 3 and not the expected version 8, does
this cause any trouble?

Hauke.
Hauke Mehrtens | 30 Jan 2012 00:33
Picon

Re: BCM5354 SoC with LP Phy Wifi

On 01/29/2012 11:12 PM, Hauke Mehrtens wrote:
> I got a device with a BCM5354 SoC and a LP-Phy Wifi core on it. With
> current b43 it still fails with Out of memory when using a recent
> firmware 666.2 and works with an old firmware 410.2160. I tried DMA and
> PIO mode and had the same results. I added some printk's into the code
> and implemented some parts b43 does not have but the Braodcom sdk and
> brcmsmac has in the dma code, but I haven't resolved the issue.
> 
> I found out the error occurs when send some packages doing "ifconfig
> wlan0 up" does not result in any problems, but when I try to scan with
> "iw wlan0 scan" it oopes very soon. The problem seams to be related to
> TX as there are many packages received, but the oops occurs after 4
> calls to b43_dma_tx()
> 
> Larry, you wrote some more LP spec based on a newer driver is there a
> list with updated docs or should I manually look into all packages if I
> want to implement it like it is in the new wl driver.
> As I see there are also many parts not implemented, but described in the
> spec so looking over the hole code is probably needed.
> My device has a sprom of revision 3 and not the expected version 8, does
> this cause any trouble?
> 
> Hauke.
My device is the following:

ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
ssb: Core 2 found: MIPS 3302 (cc 0x816, rev 0x08, vendor 0x4243)
ssb: Core 3 found: USB 2.0 Host (cc 0x819, rev 0x02, vendor 0x4243)
ssb: Core 4 found: MEMC SDRAM (cc 0x80F, rev 0x04, vendor 0x4243)
(Continue reading)

Rafał Miłecki | 30 Jan 2012 07:29
Picon

Re: BCM5354 SoC with LP Phy Wifi

2012/1/30 Hauke Mehrtens <hauke <at> hauke-m.de>:
> On 01/29/2012 11:12 PM, Hauke Mehrtens wrote:
>> I got a device with a BCM5354 SoC and a LP-Phy Wifi core on it. With
>> current b43 it still fails with Out of memory when using a recent
>> firmware 666.2 and works with an old firmware 410.2160. I tried DMA and
>> PIO mode and had the same results. I added some printk's into the code
>> and implemented some parts b43 does not have but the Braodcom sdk and
>> brcmsmac has in the dma code, but I haven't resolved the issue.
>>
>> I found out the error occurs when send some packages doing "ifconfig
>> wlan0 up" does not result in any problems, but when I try to scan with
>> "iw wlan0 scan" it oopes very soon. The problem seams to be related to
>> TX as there are many packages received, but the oops occurs after 4
>> calls to b43_dma_tx()
>>
>> Larry, you wrote some more LP spec based on a newer driver is there a
>> list with updated docs or should I manually look into all packages if I
>> want to implement it like it is in the new wl driver.
>> As I see there are also many parts not implemented, but described in the
>> spec so looking over the hole code is probably needed.
>> My device has a sprom of revision 3 and not the expected version 8, does
>> this cause any trouble?
>>
>> Hauke.
> My device is the following:
>
> ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
> ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
> ssb: Core 2 found: MIPS 3302 (cc 0x816, rev 0x08, vendor 0x4243)
> ssb: Core 3 found: USB 2.0 Host (cc 0x819, rev 0x02, vendor 0x4243)
(Continue reading)

Hauke Mehrtens | 30 Jan 2012 20:45
Picon

Re: BCM5354 SoC with LP Phy Wifi

On 01/30/2012 07:29 AM, Rafał Miłecki wrote:
> 2012/1/30 Hauke Mehrtens <hauke <at> hauke-m.de>:
>> On 01/29/2012 11:12 PM, Hauke Mehrtens wrote:
>>> I got a device with a BCM5354 SoC and a LP-Phy Wifi core on it. With
>>> current b43 it still fails with Out of memory when using a recent
>>> firmware 666.2 and works with an old firmware 410.2160. I tried DMA and
>>> PIO mode and had the same results. I added some printk's into the code
>>> and implemented some parts b43 does not have but the Braodcom sdk and
>>> brcmsmac has in the dma code, but I haven't resolved the issue.
>>>
>>> I found out the error occurs when send some packages doing "ifconfig
>>> wlan0 up" does not result in any problems, but when I try to scan with
>>> "iw wlan0 scan" it oopes very soon. The problem seams to be related to
>>> TX as there are many packages received, but the oops occurs after 4
>>> calls to b43_dma_tx()
>>>
>>> Larry, you wrote some more LP spec based on a newer driver is there a
>>> list with updated docs or should I manually look into all packages if I
>>> want to implement it like it is in the new wl driver.
>>> As I see there are also many parts not implemented, but described in the
>>> spec so looking over the hole code is probably needed.
>>> My device has a sprom of revision 3 and not the expected version 8, does
>>> this cause any trouble?
>>>
>>> Hauke.
>> My device is the following:
>>
>> ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
>> ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
>> ssb: Core 2 found: MIPS 3302 (cc 0x816, rev 0x08, vendor 0x4243)
(Continue reading)

Rafał Miłecki | 30 Jan 2012 21:37
Picon

Re: BCM5354 SoC with LP Phy Wifi

W dniu 30 stycznia 2012 20:45 użytkownik Hauke Mehrtens
<hauke <at> hauke-m.de> napisał:
> On 01/30/2012 07:29 AM, Rafał Miłecki wrote:
>> While I'll try to implement/update LP-PHY code, I think it still would
>> be nice to investigate this problem. Do we have some leak in b43? We
>> should fix it if so.
> I haven't found a leak in b43 yet, just one in an OpenWrt switch driver,
> while searching in b43. ;-)
> It's nice to hear that you will work on the LP-PHY part, to me it looks
> like ~30% of the spec is not implemented. have you started implementing
> the GMAC Ethernet driver?

I've started fighting with my router. I've tested it's working (on
original firmware), I'm trying now to get root access to get
partitions layout. I've already opened it (this required small Torx
screwdriver) and built 3,3V console. I'm working on creating console
pins (unfortunately they were removed from production==non-beta
boards).

>> Could you check what exactly happens in b43_dma_tx please?
> Yes I will look deeper into this.
> Do you have a working LP-PHY device, so that I could give you some
> patches and then compare the output?

My LP-PHY had some performance problems, probably some important
calibration is missing.

--

-- 
Rafał

(Continue reading)

Hauke Mehrtens | 30 Jan 2012 21:48
Picon

Re: BCM5354 SoC with LP Phy Wifi

On 01/30/2012 09:37 PM, Rafał Miłecki wrote:
> W dniu 30 stycznia 2012 20:45 użytkownik Hauke Mehrtens
> <hauke <at> hauke-m.de> napisał:
>> On 01/30/2012 07:29 AM, Rafał Miłecki wrote:
>>> While I'll try to implement/update LP-PHY code, I think it still would
>>> be nice to investigate this problem. Do we have some leak in b43? We
>>> should fix it if so.
>> I haven't found a leak in b43 yet, just one in an OpenWrt switch driver,
>> while searching in b43. ;-)
>> It's nice to hear that you will work on the LP-PHY part, to me it looks
>> like ~30% of the spec is not implemented. have you started implementing
>> the GMAC Ethernet driver?
> 
> I've started fighting with my router. I've tested it's working (on
> original firmware), I'm trying now to get root access to get
> partitions layout. I've already opened it (this required small Torx
> screwdriver) and built 3,3V console. I'm working on creating console
> pins (unfortunately they were removed from production==non-beta
> boards).
I had the same problem with my Netgear device on the pictures made by
the FCC there are nice pins on the board and ASUS just leaves them there
for the production devices, but my Netgear devices did not had them.
The pin layout is probably the same as for the WNR3500L here:
http://wiki.openwrt.org/toh/netgear/wnr3500l

>>> Could you check what exactly happens in b43_dma_tx please?
>> Yes I will look deeper into this.
>> Do you have a working LP-PHY device, so that I could give you some
>> patches and then compare the output?
> 
(Continue reading)

Hauke Mehrtens | 4 Feb 2012 13:53
Picon

Re: BCM5354 SoC with LP Phy Wifi

On 01/30/2012 07:29 AM, Rafał Miłecki wrote:
> 2012/1/30 Hauke Mehrtens <hauke <at> hauke-m.de>:
>> On 01/29/2012 11:12 PM, Hauke Mehrtens wrote:
>>> I got a device with a BCM5354 SoC and a LP-Phy Wifi core on it. With
>>> current b43 it still fails with Out of memory when using a recent
>>> firmware 666.2 and works with an old firmware 410.2160. I tried DMA and
>>> PIO mode and had the same results. I added some printk's into the code
>>> and implemented some parts b43 does not have but the Braodcom sdk and
>>> brcmsmac has in the dma code, but I haven't resolved the issue.
>>>
>>> I found out the error occurs when send some packages doing "ifconfig
>>> wlan0 up" does not result in any problems, but when I try to scan with
>>> "iw wlan0 scan" it oopes very soon. The problem seams to be related to
>>> TX as there are many packages received, but the oops occurs after 4
>>> calls to b43_dma_tx()
>>>
>>> Larry, you wrote some more LP spec based on a newer driver is there a
>>> list with updated docs or should I manually look into all packages if I
>>> want to implement it like it is in the new wl driver.
>>> As I see there are also many parts not implemented, but described in the
>>> spec so looking over the hole code is probably needed.
>>> My device has a sprom of revision 3 and not the expected version 8, does
>>> this cause any trouble?
>>>
>>> Hauke.
>> My device is the following:
>>
>> ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
>> ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
>> ssb: Core 2 found: MIPS 3302 (cc 0x816, rev 0x08, vendor 0x4243)
(Continue reading)

Hauke Mehrtens | 4 Feb 2012 17:40
Picon

Re: BCM5354 SoC with LP Phy Wifi

On 02/04/2012 01:53 PM, Hauke Mehrtens wrote:
> On 01/30/2012 07:29 AM, Rafał Miłecki wrote:
>> 2012/1/30 Hauke Mehrtens <hauke <at> hauke-m.de>:
>>> On 01/29/2012 11:12 PM, Hauke Mehrtens wrote:
>>>> I got a device with a BCM5354 SoC and a LP-Phy Wifi core on it. With
>>>> current b43 it still fails with Out of memory when using a recent
>>>> firmware 666.2 and works with an old firmware 410.2160. I tried DMA and
>>>> PIO mode and had the same results. I added some printk's into the code
>>>> and implemented some parts b43 does not have but the Braodcom sdk and
>>>> brcmsmac has in the dma code, but I haven't resolved the issue.
>>>>
>>>> I found out the error occurs when send some packages doing "ifconfig
>>>> wlan0 up" does not result in any problems, but when I try to scan with
>>>> "iw wlan0 scan" it oopes very soon. The problem seams to be related to
>>>> TX as there are many packages received, but the oops occurs after 4
>>>> calls to b43_dma_tx()
>>>>
>>>> Larry, you wrote some more LP spec based on a newer driver is there a
>>>> list with updated docs or should I manually look into all packages if I
>>>> want to implement it like it is in the new wl driver.
>>>> As I see there are also many parts not implemented, but described in the
>>>> spec so looking over the hole code is probably needed.
>>>> My device has a sprom of revision 3 and not the expected version 8, does
>>>> this cause any trouble?
>>>>
>>>> Hauke.
>>> My device is the following:
>>>
>>> ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
>>> ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
(Continue reading)


Gmane