The issue could be reproduced with the current hwe kernel, and the current focal hwe kernel tree could cherry-pick the commits in comment#17 cleanly.
Next: build and verify the cherry-picked kernel on kreiken
[1]
ubuntu@kreiken:~$ uname -a; lsb_release -a; lsmod | grep -e uacce -e zip -e hpre -e sec; sudo dmesg | grep fail | grep hisi Linux kreiken 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:46 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal hisi_zip 32768 0 hisi_sec2 53248 0 hisi_hpre 32768 0 hisi_qm 69632 3 hisi_sec2,hisi_zip,hisi_hpre uacce 20480 2 hisi_qm,hisi_zip authenc 16384 1 hisi_sec2 [ 34.922091] hisi_sec2 0000:76:00.0: fail to alloc uacce (-22) [ 34.936231] hisi_hpre 0000:79:00.0: fail to alloc uacce (-22) [ 34.966511] hisi_hpre 0000:b9:00.0: fail to alloc uacce (-22) [ 34.970904] hisi_sec2 0000:b6:00.0: fail to alloc uacce (-22) [ 34.984718] hisi_zip 0000:75:00.0: fail to alloc uacce (-22) [ 35.012844] hisi_zip 0000:b5:00.0: fail to alloc uacce (-22)
The issue could be reproduced with the current hwe kernel, and the current focal hwe kernel tree could cherry-pick the commits in comment#17 cleanly.
Next: build and verify the cherry-picked kernel on kreiken
[1]
ubuntu@kreiken:~$ uname -a; lsb_release -a; lsmod | grep -e uacce -e zip -e hpre -e sec; sudo dmesg | grep fail | grep hisi hisi_zip, hisi_hpre
Linux kreiken 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:46 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
hisi_zip 32768 0
hisi_sec2 53248 0
hisi_hpre 32768 0
hisi_qm 69632 3 hisi_sec2,
uacce 20480 2 hisi_qm,hisi_zip
authenc 16384 1 hisi_sec2
[ 34.922091] hisi_sec2 0000:76:00.0: fail to alloc uacce (-22)
[ 34.936231] hisi_hpre 0000:79:00.0: fail to alloc uacce (-22)
[ 34.966511] hisi_hpre 0000:b9:00.0: fail to alloc uacce (-22)
[ 34.970904] hisi_sec2 0000:b6:00.0: fail to alloc uacce (-22)
[ 34.984718] hisi_zip 0000:75:00.0: fail to alloc uacce (-22)
[ 35.012844] hisi_zip 0000:b5:00.0: fail to alloc uacce (-22)