[uacc-0623] hisi_sec2 fail to alloc uacce

Bug #1933302 reported by Fred Kimmy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Invalid
Undecided
Unassigned
Ubuntu-20.04-hwe
Invalid
Undecided
Unassigned

Bug Description

[Bug Description]

ubuntu 20.04.2 boot system and fail to alloc uacce (-22)

[Steps to Reproduce]
1) boot ubuntu 20.04.2 system
2) dmesg | grep fail

[Actual Results]
[ 27.000086] cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
[ 27.006515] hisi_sec2 0000:b6:00.0: Failed to enable PASID
[ 27.012043] hisi_sec2 0000:b6:00.0: Adding to iommu group 45
[ 27.015484] hisi_sec2 0000:b6:00.0: fail to alloc uacce (-22)

[Expected Results]
no fail
[Reproducibility]
100%

[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required):

[Resolution]
this following patch will solve this bug.

commit f8408d2b79b834f79b6c578817e84f74a85d2190
Author: Kai Ye <email address hidden>
Date: Tue Jan 5 14:16:42 2021 +0800

    crypto: hisilicon - add ZIP device using mode parameter

    Add 'uacce_mode' parameter for ZIP, which can be set as 0(default) or 1.
    '0' means ZIP is only registered to kernel crypto, and '1' means it's
    registered to both kernel crypto and UACCE.

    Signed-off-by: Kai Ye <email address hidden>
    Reviewed-by: Zhou Wang <email address hidden>
    Reviewed-by: Zaibo Xu <email address hidden>
    Signed-off-by: Herbert Xu <email address hidden>
commit bedd04e4aa1434d2f0f038e15bb6c48ac36876e1
Author: Kai Ye <email address hidden>
Date: Tue Jan 5 14:16:43 2021 +0800

    crypto: hisilicon/hpre - register HPRE device to uacce
commit 34932a6033be3c0088935c334e4dc5ad43dcb0cc
Author: Kai Ye <email address hidden>
Date: Tue Jan 5 14:16:44 2021 +0800

    crypto: hisilicon/sec - register SEC device to uacce

Changed in kunpeng920:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.