Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Device initialization race condition #60

Open
XCreative opened this issue Apr 23, 2020 · 3 comments
Open

Device initialization race condition #60

XCreative opened this issue Apr 23, 2020 · 3 comments
Labels
bug Something isn't working P0 Ground-breaking issue, several dependencies

Comments

@XCreative
Copy link

Describe the bug
Driver failed to start

How to reproduce
Download the release version from https://intelwifi.0xcc.pw or you can build from source.

Step 1

❯ sudo kextload $KEXTNAME

Step 2

❯ ./logs.sh

Result

ERR: SecBoot CPU1 Status: 0x3, CPU2 Status: 0x13ce3d
ERR: timeout. iwl_fw_dbg_error_collect
ERR: Failed to start INIT ucode: -60
ERR: init mvm ucode fail
ERR: Failed to run INIT ucode: -60
CRIT: Driver failed to start

Expected behavior
Driver start without errors

Wireless card name
Intel(R) Wireless-AC 9260

Additional context

Type Item
CPU AMD Ryzen 5 3600
Motherboard MSI B450 GAMING PRO CARBON AC

Logs link

@XCreative XCreative added the bug Something isn't working label Apr 23, 2020
@ellie-idb ellie-idb changed the title Driver failed to start on macOS 10.15.4 Device initialization race condition Apr 24, 2020
@ellie-idb
Copy link
Member

This is a race condition that occurs at

ret = trans_ops->startFW(fw, run_in_rfkill);
IWL_INFO(mvm, "startFW result: %d\n", ret);
if (ret) {
m_pDevice->cur_fw_img = old_type;
iwl_remove_notification(&m_pDevice->notif_wait, &alive_wait);
return ret;
}
// IOLockLock(trans->ucode_write_waitq);
// AbsoluteTime deadline;
// clock_interval_to_deadline(MVM_UCODE_ALIVE_TIMEOUT, kSecondScale, (UInt64 *) &deadline);
// ret = IOLockSleepDeadline(trans->ucode_write_waitq, &alive_wait,
// deadline, THREAD_INTERRUPTIBLE);
// IOLockUnlock(trans->ucode_write_waitq);
//
// return 0;
/*
* Some things may run in the background now, but we
* just wait for the ALIVE notification here.
*/
IWL_INFO(0, "Waiting for alive signal");

The actual notification is being fired, but it's somehow happening.... before we even wait for the notification to be posted??

@ellie-idb ellie-idb added the P0 Ground-breaking issue, several dependencies label Apr 24, 2020
@XCreative
Copy link
Author

@hatf0 you need more logs or something i can help?

@loop0
Copy link

loop0 commented May 12, 2020

I'm having the same issue with the same card

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P0 Ground-breaking issue, several dependencies
Projects
None yet
Development

No branches or pull requests

3 participants