On Tue, 26 Mar 2024 at 19:45, Marc Gonzalez <mgonzalez@xxxxxxxxxx> wrote: > > [ It has been pointed out to me that the previous message was unclear. ] > [ Below is my 2nd attempt at a clearer message. ] > > Problem: firmware-5.bin has not been parsed yet when we have to handle > the ATH10K_QMI_EVENT_SERVER_ARRIVE case, so we can't rely on feature bits > to work around the lack of MSA_READY indicator. Then, I'd say, we have to resort to the DT property, unless Kalle or Jeff have other proposals. > > > On 26/03/2024 16:04, Marc Gonzalez wrote: > > > QMI stuff happens much EARLIER than firmware-5.bin handling. > > (ar->running_fw is still NULL) > > > > > > [ 14.547563] ath10k_snoc 18800000.wifi: qmi wifi fw qmi service connected > > [ 14.555054] ath10k_snoc 18800000.wifi: qmi indication register request completed > > [ 14.561406] ath10k_snoc 18800000.wifi: qmi host capability request completed > > [ 14.568365] ath10k_snoc 18800000.wifi: qmi msa mem region 0 addr 0x0x0000000094400000 size 0x4000 flag 0x00000001 > > [ 14.573775] ath10k_snoc 18800000.wifi: qmi msa mem region 1 addr 0x0x0000000094404000 size 0xfc000 flag 0x00000000 > > [ 14.583896] ath10k_snoc 18800000.wifi: qmi msa mem info request completed > > [ 14.630179] ath10k_snoc 18800000.wifi: qmi msa mem ready request completed > > [ 14.681647] ath10k_snoc 18800000.wifi: qmi chip_id 0x30214 chip_family 0x4001 board_id 0xff soc_id 0x40010002 > > [ 14.681726] ath10k_snoc 18800000.wifi: qmi fw_version 0x100204b2 fw_build_timestamp 2019-09-04 03:01 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HL.1.0-01202-QCAHLSWMTPLZ-1.221523.2 > > *** ATH10K_QMI_EVENT_SERVER_ARRIVE is handled at this point > > [ 14.690657] ath10k_snoc 18800000.wifi: DT bdf variant name not set. > > [ 14.706423] ath10k_snoc 18800000.wifi: boot using board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 14.712587] ath10k_snoc 18800000.wifi: boot using board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 14.722309] ath10k_snoc 18800000.wifi: boot using board name 'bus=snoc,qmi-board-id=ff' > > [ 14.745634] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/WCN3990/hw1.0/board-2.bin': 0 > > ... snip boards dump > > [ 15.560607] ath10k_snoc 18800000.wifi: boot found match for name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 15.570590] ath10k_snoc 18800000.wifi: boot found board data for 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 15.580393] ath10k_snoc 18800000.wifi: using board api 2 > > [ 15.591465] ath10k_snoc 18800000.wifi: qmi bdf download request completed > > [ 15.595786] ath10k_snoc 18800000.wifi: qmi cal report request completed > > [ 18.667441] ath10k_snoc 18800000.wifi: wifi fw ready event received > > [ 18.667519] ath10k_snoc 18800000.wifi: ath10k_snoc_hif_power_up:WCN3990 driver state = 0 > > [ 18.672579] ath10k_snoc 18800000.wifi: soc power on > > [ 18.684550] ath10k_snoc 18800000.wifi: qmi mode 0 config 00000000313ae0ca > > [ 18.692591] ath10k_snoc 18800000.wifi: qmi config request completed > > [ 18.748262] ath10k_snoc 18800000.wifi: qmi wlan mode req completed: 0 > > [ 18.748370] ath10k_snoc 18800000.wifi: boot init ce src ring id 0 entries 16 base_addr 00000000b9feff9c > > [ 18.753792] ath10k_snoc 18800000.wifi: boot ce dest ring id 1 entries 512 base_addr 000000005f850e88 > > [ 18.762971] ath10k_snoc 18800000.wifi: boot ce dest ring id 2 entries 64 base_addr 000000002467084e > > [ 18.772375] ath10k_snoc 18800000.wifi: boot init ce src ring id 3 entries 32 base_addr 00000000ded78c3f > > [ 18.781122] ath10k_snoc 18800000.wifi: boot init ce src ring id 4 entries 2048 base_addr 00000000c9e8883a > > [ 18.790482] ath10k_snoc 18800000.wifi: boot ce dest ring id 5 entries 512 base_addr 00000000309e9375 > > [ 18.800220] ath10k_snoc 18800000.wifi: boot init ce src ring id 7 entries 2 base_addr 00000000e5e3fb73 > > [ 18.809395] ath10k_snoc 18800000.wifi: boot ce dest ring id 7 entries 2 base_addr 00000000c08890b2 > > [ 18.818507] ath10k_snoc 18800000.wifi: boot ce dest ring id 8 entries 128 base_addr 000000006af0777e > > [ 18.827466] ath10k_snoc 18800000.wifi: boot ce dest ring id 9 entries 512 base_addr 00000000f2c0ce43 > > [ 18.836770] ath10k_snoc 18800000.wifi: boot ce dest ring id 10 entries 512 base_addr 00000000269a2564 > > [ 18.845863] ath10k_snoc 18800000.wifi: boot ce dest ring id 11 entries 512 base_addr 00000000f4a8c90e > > [ 18.855002] ath10k_snoc 18800000.wifi: Hardware name wcn3990 hw1.0 version 0x8 > > [ 18.865605] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/pre-cal-snoc-18800000.wifi.bin': -2 > > [ 18.871747] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/cal-snoc-18800000.wifi.bin': -2 > > [ 18.880307] ath10k_snoc 18800000.wifi: trying fw api 6 > > [ 18.889520] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/WCN3990/hw1.0/firmware-6.bin': -2 > > [ 18.894020] ath10k_snoc 18800000.wifi: trying fw api 5 > > *** firmware-5.bin is handled at this point > > [ 18.904176] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/WCN3990/hw1.0/firmware-5.bin': 0 > > [ 18.907802] ath10k_snoc 18800000.wifi: found fw timestamp 1539237028 > > [ 18.916460] ath10k_snoc 18800000.wifi: found firmware features ie (3 B) > > [ 18.923027] ath10k_snoc 18800000.wifi: Enabling feature bit: 6 > > [ 18.929373] ath10k_snoc 18800000.wifi: Enabling feature bit: 18 > > [ 18.935279] ath10k_snoc 18800000.wifi: Enabling feature bit: 19 > > [ 18.941085] ath10k_snoc 18800000.wifi: features > > [ 18.946975] ath10k_snoc 18800000.wifi: 00000000: 40 00 0c 00 00 00 00 00 @....... > > [ 18.951534] ath10k_snoc 18800000.wifi: found fw ie wmi op version 4 > > [ 18.961235] ath10k_snoc 18800000.wifi: found fw ie htt op version 3 > > [ 18.967390] ath10k_snoc 18800000.wifi: using fw api 5 > > > > > > > > I don't know how to solve this problem. > > (If we just skip waiting for MSA_READY, there is no problem) > > > > Kalle, Jeff, do you see a way out of this conundrum? > > Regards. > -- With best wishes Dmitry