With the following patches, we can resolve the error message "hisi_sec2 0000:75:00.0: fail to alloc uacce (-22)" with segers 5.13 hwe tree[1]:
055c66e6fcba crypto: hisilicon/qm - modify the uacce mode check ac7fd87d4869 crypto: hisilicon/qm - fix the uacce mmap failed 0ecad886c74e PCI: Set dma-can-stall for HiSilicon chips 49a6a1a89ad0 PCI: Allow PASID on fake PCIe devices without TLP prefixes
Next step: Having a look of these patches to pick up the ones that really fix the issue.
[1] ubuntu@segers:~$ cat collect.sh uname -a lsb_release -a echo dmesg | grep -i fail echo
echo echo ================== dmesg | grep "fail to alloc uacce" echo ==================
ubuntu@segers:~$ cat 5.13.0-22-d20211217t025549~055c66e6fcba-RESOLVED.log Linux segers 5.13.0-22-generic #22~20.04.1~d20211217t025549~055c66e6fcba SMP Fri Dec 17 02:56:4 aarch64 aarch64 aarch64 GNU/Linux Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal
[ 3.424477] cma: cma_alloc: reserved: alloc failed, req-size: 4096 pages, ret: -12 [ 11.595409] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.609990] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.624567] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.653068] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.667647] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.682225] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.710601] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.725173] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.739743] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 11.768137] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12 [ 13.942749] dw_spi_mmio HISI0173:00: DMA init failed [ 19.489486] sas: Enter sas_scsi_recover_host busy: 0 failed: 0 [ 19.863784] sas: --- Exit sas_scsi_recover_host: busy: 0 failed: 0 tries: 1 [ 19.895829] sas: Enter sas_scsi_recover_host busy: 0 failed: 0 [ 20.259751] sas: --- Exit sas_scsi_recover_host: busy: 0 failed: 0 tries: 1 [ 22.877577] cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12 [ 22.885394] cma: cma_alloc: reserved: alloc failed, req-size: 16 pages, ret: -12 [ 22.902554] cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12 [ 22.910275] cma: cma_alloc: reserved: alloc failed, req-size: 16 pages, ret: -12
With the following patches, we can resolve the error message "hisi_sec2 0000:75:00.0: fail to alloc uacce (-22)" with segers 5.13 hwe tree[1]:
055c66e6fcba crypto: hisilicon/qm - modify the uacce mode check
ac7fd87d4869 crypto: hisilicon/qm - fix the uacce mmap failed
0ecad886c74e PCI: Set dma-can-stall for HiSilicon chips
49a6a1a89ad0 PCI: Allow PASID on fake PCIe devices without TLP prefixes
Next step:
Having a look of these patches to pick up the ones that really fix the issue.
[1]
ubuntu@segers:~$ cat collect.sh
uname -a
lsb_release -a
echo
dmesg | grep -i fail
echo
echo
echo ==================
dmesg | grep "fail to alloc uacce"
echo ==================
ubuntu@segers:~$ cat 5.13.0- 22-d20211217t02 5549~055c66e6fc ba-RESOLVED. log 04.1~d20211217t 025549~ 055c66e6fcba SMP Fri Dec 17 02:56:4 aarch64 aarch64 aarch64 GNU/Linux
Linux segers 5.13.0-22-generic #22~20.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
[ 3.424477] cma: cma_alloc: reserved: alloc failed, req-size: 4096 pages, ret: -12 recover_ host busy: 0 failed: 0 recover_ host: busy: 0 failed: 0 tries: 1 recover_ host busy: 0 failed: 0 recover_ host: busy: 0 failed: 0 tries: 1
[ 11.595409] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.609990] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.624567] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.653068] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.667647] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.682225] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.710601] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.725173] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.739743] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 11.768137] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 13.942749] dw_spi_mmio HISI0173:00: DMA init failed
[ 19.489486] sas: Enter sas_scsi_
[ 19.863784] sas: --- Exit sas_scsi_
[ 19.895829] sas: Enter sas_scsi_
[ 20.259751] sas: --- Exit sas_scsi_
[ 22.877577] cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12
[ 22.885394] cma: cma_alloc: reserved: alloc failed, req-size: 16 pages, ret: -12
[ 22.902554] cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12
[ 22.910275] cma: cma_alloc: reserved: alloc failed, req-size: 16 pages, ret: -12