~vicamo/+git/ubuntu-kernel:bug-1948375/iwlwifi-increase-microcodes-loading-timeout/oem-5.14

Last commit made on 2022-01-12
Get this branch:
git clone -b bug-1948375/iwlwifi-increase-microcodes-loading-timeout/oem-5.14 https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1948375/iwlwifi-increase-microcodes-loading-timeout/oem-5.14
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

4b4cf76... by You-Sheng Yang

Bug 1948375: iwlwifi: Increase microcodes loading timeout

4d8888e... by Kai-Heng Feng

UBUNTU: SAUCE: iwlwifi: Increase microcodes loading timeout

BugLink: https://bugs.launchpad.net/somerville/+bug/1948375

Intel AX201/AX211 device may not work at boot:
[ 8.875307] iwlwifi 0000:00:14.3: SecBoot CPU1 Status: 0x7267, CPU2 Status: 0xb03
[ 8.875418] iwlwifi 0000:00:14.3: UMAC PC: 0x80481126
[ 8.875426] iwlwifi 0000:00:14.3: LMAC PC: 0x1541c
[ 8.875430] iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 13 fired (delay=0ms).
[ 8.877906] iwlwifi 0000:00:14.3: Loaded firmware version: 64.97bbee0a.0 so-a0-gf-a0-64.ucode
...
[ 8.878997] iwlwifi 0000:00:14.3: Failed to start RT ucode: -110
[ 8.878999] iwlwifi 0000:00:14.3: Failed to start RT ucode: -110

Increase MVM_UCODE_ALIVE_TIMEOUT to 2 seconds can solve the issue.

The PNVM loading can also fail:
[ 5.159949] iwlwifi 0000:00:14.3: loaded PNVM version 4b50f925
[ 5.414211] iwlwifi 0000:00:14.3: Timeout waiting for PNVM load!
[ 5.414219] iwlwifi 0000:00:14.3: Failed to start RT ucode: -110
[ 5.414224] iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 13 fired (delay=0ms).
[ 5.416618] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[ 5.416619] iwlwifi 0000:00:14.3: Transport status: 0x00000042, valid: 6
[ 5.416620] iwlwifi 0000:00:14.3: Loaded firmware version: 64.97bbee0a.0 so-a0-gf-a0-64.ucode
...
[ 5.914276] iwlwifi 0000:00:14.3: Failed to run INIT ucode: -110

Trial and error shows that the MVM_UCODE_PNVM_TIMEOUT also needs to be
bumped to 2 seconds to fully eliminate the issue.

The timeout values are verified by rebooting over 10k times.

Signed-off-by: Kai-Heng Feng <email address hidden>
(cherry picked from commit 31d1ad5b55648d35ffc449d2c47009fb48cb91e1)
Signed-off-by: Kai-Heng Feng <email address hidden>

deed18d... by Thadeu Lima de Souza Cascardo

UBUNTU: Ubuntu-oem-5.14-5.14.0-1018.19

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

df5e62e... by Thadeu Lima de Souza Cascardo

UBUNTU: [Config]: Updated config after updated build dependencies

Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

197f3c2... by Thadeu Lima de Souza Cascardo

UBUNTU: SAUCE: bpf: prevent helper argument PTR_TO_ALLOC_MEM to have offset other than 0

BugLink: https://bugs.launchpad.net/bugs/1956585 (OOB write on BPF_RINGBUF (LP: #1956585))

bpf_ringbuf_reserve is currently the only helper that returns a
PTR_TO_ALLOC_MEM, and bpf_ringbuf_submit and bpf_ringbuf_discard expect
only such pointers.

If some arithmetic is done on those pointers, those functions may corrupt
arbritary memory.

Prevent such argument types from having an offset other than 0.

Also, other valid PTR_TO_MEM should not be accepted as parameters to
bpf_ringbuf_submit and bpf_ringbuf_discard. A different type mechanism
should be used instead, in order to guarantee that only values returned by
bpf_ringbuf_reserve can be used.

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Kamal Mostafa <email address hidden>
Acked-by: Marcelo Henrique Cerri <email address hidden>
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

05e4862... by Thadeu Lima de Souza Cascardo

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

3d8ac12... by Timo Aaltonen

UBUNTU: Ubuntu-oem-5.14-5.14.0-1015.15

Signed-off-by: Timo Aaltonen <email address hidden>

63fb594... by Timo Aaltonen

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1956424
Properties: no-test-build
Signed-off-by: Timo Aaltonen <email address hidden>

07f8950... by Timo Aaltonen

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Timo Aaltonen <email address hidden>

0920d58... by Ye Xiang <email address hidden>

UBUNTU: SAUCE: ljca: disable autosuspend by default

BugLink: https://bugs.launchpad.net/bugs/1955383

Because it will cost more than 100ms in PM before calling LJCA
resume when enabling autosuspend, which will make first LJCA transfer
after resume use more than 100ms, we disable autosuspend temporarily.

Signed-off-by: Ye Xiang <email address hidden>
(cherry picked from
https://github.com/intel/ivsc-driver/commit/3cc092e1e2ccee536c5da23a105431bfdd8952d6)
Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>