Succeeding comment#29 and comment#36, and enlarging cma size larger e.g. 1G, could remove more error messages[1].
[1] append cma=1G in the kernel cmdline ubuntu@segers:~$ dmesg | grep -i cma [ 0.000000] cma: Failed to reserve 1024 MiB [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.11.0-43-generic root=UUID=e70c736e-0fc9-4459-9e23-d18d2fafb1bb ro sysrq_always_enabled cma=1G [ 0.000000] Memory: 131355008K/134213440K available (15744K kernel code, 3572K rwdata, 13344K rodata, 7744K init, 1147K bss, 2858432K reserved, 0K cma-reserved) ubuntu@segers:~$ dmesg | grep -i fail [ 0.000000] cma: Failed to reserve 1024 MiB [ 14.105493] dw_spi_mmio HISI0173:00: DMA init failed [ 19.733645] sas: Enter sas_scsi_recover_host busy: 0 failed: 0 [ 20.998866] sas: --- Exit sas_scsi_recover_host: busy: 0 failed: 0 tries: 1 [ 21.050609] sas: Enter sas_scsi_recover_host busy: 0 failed: 0 [ 21.411963] sas: --- Exit sas_scsi_recover_host: busy: 0 failed: 0 tries: 1 [ 23.600179] hisi_sec2 0000:75:00.0: Failed to enable PASID [ 23.606891] hisi_sec2 0000:75:00.0: fail to alloc uacce (-22) [ 23.620062] hisi_sec2 0000:b5:00.0: Failed to enable PASID [ 23.628695] hisi_sec2 0000:b5:00.0: fail to alloc uacce (-22) ubuntu@segers:~$ uname -a Linux segers 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:10:13 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux ubuntu@segers:~$
Succeeding comment#29 and comment#36, and enlarging cma size larger e.g. 1G, could remove more error messages[1].
[1] append cma=1G in the kernel cmdline /boot/vmlinuz- 5.11.0- 43-generic root=UUID= e70c736e- 0fc9-4459- 9e23-d18d2fafb1 bb ro sysrq_always_ enabled cma=1G 134213440K available (15744K kernel code, 3572K rwdata, 13344K rodata, 7744K init, 1147K bss, 2858432K reserved, 0K cma-reserved) 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
ubuntu@segers:~$ dmesg | grep -i cma
[ 0.000000] cma: Failed to reserve 1024 MiB
[ 0.000000] Kernel command line: BOOT_IMAGE=
[ 0.000000] Memory: 131355008K/
ubuntu@segers:~$ dmesg | grep -i fail
[ 0.000000] cma: Failed to reserve 1024 MiB
[ 14.105493] dw_spi_mmio HISI0173:00: DMA init failed
[ 19.733645] sas: Enter sas_scsi_
[ 20.998866] sas: --- Exit sas_scsi_
[ 21.050609] sas: Enter sas_scsi_
[ 21.411963] sas: --- Exit sas_scsi_
[ 23.600179] hisi_sec2 0000:75:00.0: Failed to enable PASID
[ 23.606891] hisi_sec2 0000:75:00.0: fail to alloc uacce (-22)
[ 23.620062] hisi_sec2 0000:b5:00.0: Failed to enable PASID
[ 23.628695] hisi_sec2 0000:b5:00.0: fail to alloc uacce (-22)
ubuntu@segers:~$ uname -a
Linux segers 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:10:13 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@segers:~$