-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of intel 9560 wireless card #1
base: master
Are you sure you want to change the base?
Conversation
The failure log:
|
appling this patch https://lists.freebsd.org/pipermail/svn-src-all/2019-January/175680.html, it shows:
|
linux's iwl log with debug flag |
freebsd's iwm's init log with debug flags (Intel 9260) |
Hi there, Thanks |
Still WIP. |
@wjguo The patch in your screenshot is different than the one I submitted and was merged: it is missing the (crucial) |
Also, IWM_NVM_EXT was added in 4545fe8, which should help resolve one of your TODOs. |
I did a quick test to merge this and head at https://github.com/lwhsu/freebsd/tree/iwm-9000 , it still gets:
|
@@ -2602,6 +2599,7 @@ iwm_pcie_load_given_ucode_8000(struct iwm_softc *sc, | |||
IWM_DPRINTF(sc, IWM_DEBUG_RESET, "working with %s CPU\n", | |||
image->is_dual_cpus ? "Dual" : "Single"); | |||
|
|||
iwm_write_prph(sc, IWM_WFPM_GP2, 0x01010101); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's @wjguo just try to port from iwlwifi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It could be the cause. I will correct it. |
Yes, at least @lwhsu's log is much further than yours; it actually hits a ucode section it does not know about. So it looks like there is still more to try. |
9260fw-33-err.log @lwhsu these logs are captured by loading driver with different 9260 firmware. They have different init error code. It indicates that firmware may cause different issues. So, for driver + .43 firmware, I cannot tell the failure is caused by ported driver or firmware. |
I am also start playing around with my intel 9560 come with my X1 extreme, I realise that the device id is different and is not listed. Here's a patch to include the device id I found on my device. michael-yuji@1e4d0ad |
update: the biggest problem is that after iwm loads the firmware, the firmware cannot be successfully started. Although there is an error code, we still don't know how to move forward. So, if we can have the datasheet, that will be very helpful. |
Is there a more up-to-date version of the patch that we could test, or did you get the firmware to load with what's in the PR? |
Any Progress recently? |
I note that on Haiku, the iwm driver fails to load on many EFI setups (while working on those same machines while booted off BIOS) with a similar error: https://dev.haiku-os.org/ticket/14298 Perhaps this is somehow related, and the 9560 just exposes the bug more reliably? |
This work was rolled into a patch set that adds support for 9K devices. The patches were committed to FreeBSD HEAD as of r354517 and will be merged to stable/12 soon. |
build and test steps (my laptop uses intel 9260)
cd ~/
git clone https://github.com/wjguo/freebsd.git
cd freebsd && git checkout user/wjguo/iwm-9560
make -C sys/modules/iwm
kldload /usr/obj/usr/home/YOUR_ID/freebsd/amd64.amd64/sys/modules/iwmfw/iwm9260fw/iwm9260fw.ko
kldload /usr/obj/usr/home/YOUR_ID/freebsd/amd64.amd64/sys/modules/iwm/if_iwm.ko