2015-01-29 02:06:42

by Sebastien Bourdeauducq

[permalink] [raw]
Subject: "brcmfmac: brcmf_sdio_htclk: HT Avail timeout" on Thinkpad Tablet 10

Hi,

The Lenovo Thinkpad Tablet 10 is a complete disaster under Linux, and
among many problems the SDIO brcmfmac wifi does not work.

I get the following messages in the kernel log:
brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done
for chip 4324 rev 6 pmurev 17
brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[repeated]

and the network interface is never created.

I'm running kernel 3.18.4, my brcmfmac43241b4-sdio.bin is identical to
the one in the linux-firmware repository, and I have attached the
brcmfmac43241b4-sdio.txt that I have extracted from the EFI variables.

Any help would be appreciated.

Sébastien


Attachments:
brcmfmac43241b4-sdio.txt (2.49 kB)

2015-01-30 03:24:01

by Sebastien Bourdeauducq

[permalink] [raw]
Subject: Re: "brcmfmac: brcmf_sdio_htclk: HT Avail timeout" on Thinkpad Tablet 10

Hi,

On Friday, January 30, 2015 03:45 AM, Arend van Spriel wrote:
> If you can send a log with
> brcmfmac loaded with parameter 'debug=0x1416' that may give me some more
> clues.

Here it is:
[ 2360.049440] brcmfmac: brcmf_sdiod_sgtable_alloc nents=35
[ 2360.049464] brcmfmac: brcmf_sdio_probe Enter
[ 2360.054792] brcmfmac: F1 signature read @0x18000000=0x16864324
[ 2360.056741] brcmfmac: brcmf_bus_change_state 0 -> 2
[ 2360.062095] brcmfmac: brcmf_chip_recognition found AXI chip: BCM4324,
rev=6
[ 2360.174030] brcmfmac: brcmf_chip_cores_check [1 ] core 0x800:42 base
0x18000000 wrap 0x18100000
[ 2360.174054] brcmfmac: brcmf_chip_cores_check [2 ] core 0x812:36 base
0x18001000 wrap 0x18101000
[ 2360.174060] brcmfmac: brcmf_chip_cores_check [3 ] core 0x829:18 base
0x18002000 wrap 0x18102000
[ 2360.174065] brcmfmac: brcmf_chip_cores_check [4 ] core 0x82a:7 base
0x18003000 wrap 0x18103000
[ 2360.174070] brcmfmac: brcmf_chip_cores_check [5 ] core 0x80e:20 base
0x18004000 wrap 0x18104000
[ 2360.174075] brcmfmac: brcmf_chip_cores_check [6 ] core 0x81a:16 base
0x18005000 wrap 0x18105000
[ 2360.174080] brcmfmac: brcmf_chip_cores_check [7 ] core 0x135:0 base
0x1810a000 wrap 0x18107000
[ 2360.179471] brcmfmac: brcmf_chip_setup ccrev=42, pmurev=17,
pmucaps=0x298c5f11
[ 2360.185890] brcmfmac: brcmf_sdio_kso_init Enter
[ 2360.186677] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive
strength init done for chip 4324 rev 6 pmurev 17
[ 2360.194797] brcmfmac: brcmf_attach Enter
[ 2360.194839] brcmfmac: brcmf_proto_attach Enter
[ 2360.198000] brcmfmac: brcmf_sdio_probe completed!!
[ 2360.198010] brcmfmac: brcmf_fw_get_firmwares enter: dev=mmc1:0001:1
[ 2360.198132] usbcore: registered new interface driver brcmfmac
[ 2360.198544] brcmfmac: brcmf_fw_request_code_done enter: dev=mmc1:0001:1
[ 2360.198617] brcmfmac: brcmf_fw_request_nvram_done enter: dev=mmc1:0001:1
[ 2360.198680] brcmfmac: brcmf_sdio_firmware_callback Enter: dev=mmc1:0001:1
[ 2360.199953] brcmfmac: brcmf_chip_enter_download Enter
[ 2360.216692] brcmfmac: brcmf_sdio_download_code_file Enter
[ 2362.872129] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at
0x00000000; size=403855
[ 2366.982029] brcmfmac: brcmf_sdio_download_nvram Enter
[ 2367.003592] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at
0x0008f85c; size=1956
[ 2367.025285] brcmfmac: brcmf_chip_exit_download Enter
[ 2367.043627] brcmfmac: brcmf_bus_change_state 2 -> 3
[ 2368.055540] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000):
clkctl 0x50
[ 2368.055552] brcmfmac: brcmf_sdio_firmware_callback failed:
dev=mmc1:0001:1, err=0
[ 2368.055571] brcmfmac: brcmf_sdio_remove Enter
[ 2368.058820] brcmfmac: brcmf_detach Enter
[ 2368.058830] brcmfmac: brcmf_bus_change_state 3 -> 2
[ 2368.058834] brcmfmac: brcmf_bus_detach Enter
[ 2368.058838] brcmfmac: brcmf_sdio_bus_stop Enter
[ 2369.066333] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000):
clkctl 0x50
[ 2369.076908] brcmfmac: brcmf_proto_detach Enter
[ 2370.091185] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000):
clkctl 0x50
[ 2370.112802] brcmfmac: brcmf_chip_enter_download Enter
[ 2370.141772] brcmfmac: brcmf_sdio_remove Disconnected

Thanks,
Sebastien

2015-01-30 16:28:14

by Sebastien Bourdeauducq

[permalink] [raw]
Subject: Re: "brcmfmac: brcmf_sdio_htclk: HT Avail timeout" on Thinkpad Tablet 10

On Friday, January 30, 2015 10:40 PM, Arend van Spriel wrote:
>> I'm running kernel 3.18.4, my brcmfmac43241b4-sdio.bin is identical to
>> the one in the linux-firmware repository, and I have attached the
>> brcmfmac43241b4-sdio.txt that I have extracted from the EFI variables.
>
> When you say your firmware is identical what does that mean.

It is exactly this file (diff reports same content):

https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/plain/brcm/brcmfmac43241b4-sdio.bin

Sebastien

2015-01-30 14:40:16

by Arend van Spriel

[permalink] [raw]
Subject: Re: "brcmfmac: brcmf_sdio_htclk: HT Avail timeout" on Thinkpad Tablet 10

On 01/28/15 08:15, Sébastien Bourdeauducq wrote:
> Hi,
>
> The Lenovo Thinkpad Tablet 10 is a complete disaster under Linux, and
> among many problems the SDIO brcmfmac wifi does not work.
>
> I get the following messages in the kernel log:
> brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done
> for chip 4324 rev 6 pmurev 17
> brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
> [repeated]
>
> and the network interface is never created.
>
> I'm running kernel 3.18.4, my brcmfmac43241b4-sdio.bin is identical to
> the one in the linux-firmware repository, and I have attached the
> brcmfmac43241b4-sdio.txt that I have extracted from the EFI variables.

When you say your firmware is identical what does that mean. Did you do
a diff? Can you do 'hexdump -C brcmfmac43241b4-sdio.bin | tail -30'? I
will be getting a laptop with 43241 integrated soonish (monday?).
Hopefully it has same chip revision.

Regards,
Arend
> Any help would be appreciated.
>
> Sébastien


2015-01-29 19:45:59

by Arend van Spriel

[permalink] [raw]
Subject: Re: "brcmfmac: brcmf_sdio_htclk: HT Avail timeout" on Thinkpad Tablet 10

On 01/28/15 08:15, Sébastien Bourdeauducq wrote:
> Hi,
>
> The Lenovo Thinkpad Tablet 10 is a complete disaster under Linux, and
> among many problems the SDIO brcmfmac wifi does not work.
>
> I get the following messages in the kernel log:
> brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done
> for chip 4324 rev 6 pmurev 17
> brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
> [repeated]

This usually means the firmware did not start properly.

> and the network interface is never created.
>
> I'm running kernel 3.18.4, my brcmfmac43241b4-sdio.bin is identical to
> the one in the linux-firmware repository, and I have attached the
> brcmfmac43241b4-sdio.txt that I have extracted from the EFI variables.

At first glance that looks fine to me. However, it is already late here
so I will have a closer look tomorrow. If you can send a log with
brcmfmac loaded with parameter 'debug=0x1416' that may give me some more
clues.

Regards,
Arend

> Any help would be appreciated.
>
> Sébastien


2015-02-20 08:55:06

by Jocky Wilson

[permalink] [raw]
Subject: Re: "brcmfmac: brcmf_sdio_htclk: HT Avail timeout" on Thinkpad Tablet 10

U8OpYmFzdGllbiBCb3VyZGVhdWR1Y3EgPHNiQC4uLj4gd3JpdGVzOgoKPiAKPiBIaSwKPiAKPiBUaGUgTGVub3ZvIFRoaW5rcGFkIFRhYmxldCAxMCBpcyBhIGNvbXBsZXRlIGRpc2FzdGVyIHVuZGVyIExpbnV4LCBhbmQKPiBhbW9uZyBtYW55IHByb2JsZW1zIHRoZSBTRElPIGJyY21mbWFj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