Increase in power consumption for CYW43012 with 5.10.9 backports version

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
rupesh_theatro
Level 3
Level 3
25 sign-ins 10 replies posted 5 replies posted

Hi All,

We are using CYW43012 chipset and recently moved from:
Firmware version:
1.21 RC0.0
wl0: Sep 1 2021 22:33:32 version 13.10.271.273 (9278a67 CY) FWID 01-e6c8687a
Driver Version:
Backported Linux Version v4.14.77-kong-RTM-rc8-0-ged6fa18


to

Firmware version:
1.21 RC0.0
wl0: Feb 21 2022 07:19:28 version 13.10.271.283 (211da63 CY) FWID 01-18f4ac2
Driver Version:
Backported Linux Version v5.10.9-2022_0321-0-ga0971bc0b123

We are seeing increase in power consumption by 20mA approximately after we upgrade the release.

We have observed that only by changing the driver the power consumption increases but not with the firmware upgrade.

We couldn't figure out what exactly caused increase in the power cosumption.

Can someone help us figure out the reason for the same as our product is an battery powered embedded device which makes it very critical for us.

Please let me know if you need any information.

@raks_99 @GauravS_31 @Vinayak 

Regards,

Rupesh

0 Likes
1 Solution

Hi,

Found that Cypress team identified the bug as well and provided a patch 0117-brcmfmac-remove-default-2s-power-save-max-timeout.patch in cypress-fmac-v5.10.9-2022_0331 release.

 

Regards,

Rupesh

View solution in original post

0 Likes
3 Replies
raks_99
Moderator
Moderator
Moderator
First question asked 250 replies posted 250 sign-ins

hi @rupesh_theatro ,

After loading the old driver can you check the "wl PM" and "wl mpc" values?

And then compare them after loading the new drivers. Is it different?

0 Likes

hi,

wl PM ==> 2 and wl mpc ==> 1 

The values are same for both the release..

After analyzing the sniffer capture, we observed that the device wakes up for 2 seconds after every Tx packet before it goes back to sleep where as with the old release it was 200msec.

Looking at the code, identified that brcmf_cfg80211_set_power_mgmt is setting the "pm2_sleep_ret"  to min(timeout, BRCMF_PS_MAX_TIMEOUT_MS) and as timeout is being received as -1 , it is setting to BRCMF_PS_MAX_TIMEOUT_MS i.e. 2000ms . Manually configuring pm2_sleep_ret to 200msec as in old release is fixing the issue.

Any idea why that value is not initialized by any proper value? As per code, that value should have been configured through IOCTL or may be driver should fill that value neither of which is happening.

Regards,

Rupesh 

0 Likes

Hi,

Found that Cypress team identified the bug as well and provided a patch 0117-brcmfmac-remove-default-2s-power-save-max-timeout.patch in cypress-fmac-v5.10.9-2022_0331 release.

 

Regards,

Rupesh

0 Likes