Thanks. Ubuntu-5.4.0-43.47 works for me.

ubuntu@scobee:~$ lsmod | grep hisi_sec2 # make sure hisi_sec2 loaded
hisi_sec2              53248  0
authenc                16384  1 hisi_sec2
hisi_qm                40960  3 hisi_sec2,hisi_zip,hisi_hpre
ubuntu@scobee:~$ sudo stress-ng --aggressive --verify --timeout 330 
--metrics-brief --tz --times --af-alg 0;echo $?
stress-ng: info:  [3622] dispatching hogs: 128 af-alg
stress-ng: info:  [3623] stress-ng-af-alg: 23 cryptographic algorithms found in 
/proc/crypto
stress-ng: info:  [3623] stress-ng-af-alg: 107 cryptographic algorithms max 
(with defconfigs)
stress-ng: info:  [3622] successful run completed in 332.10s (5 mins, 32.10 
secs)
stress-ng: info:  [3622] stressor       bogo ops real time  usr time  sys time  
 bogo ops/s   bogo ops/s
stress-ng: info:  [3622]                           (secs)    (secs)    (secs)   
(real time) (usr+sys time)
stress-ng: info:  [3622] af-alg          7751254    330.36     48.72   2165.67  
   23463.14      3500.40
stress-ng: info:  [3622] thermal zone temperatures not available
stress-ng: info:  [3622] for a 332.10s run time:
stress-ng: info:  [3622]   42508.62s available CPU time
stress-ng: info:  [3622]      49.38s user time   (  0.12%)
stress-ng: info:  [3622]    2166.35s system time (  5.10%)
stress-ng: info:  [3622]    2215.73s total time  (  5.21%)
stress-ng: info:  [3622] load average: 132.89 89.21 39.90
0
ubuntu@scobee:~$ uname -a
Linux scobee 5.4.0-43-generic #47-Ubuntu SMP Sat Aug 8 06:32:25 UTC 2020 
aarch64 aarch64 aarch64 GNU/Linux


** Tags removed: ikeradar verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1890222

Title:
  Enlarge hisi_sec2 capability

Status in kunpeng920:
  Fix Committed
Status in kunpeng920 ubuntu-18.04-hwe series:
  Fix Committed
Status in kunpeng920 ubuntu-20.04 series:
  Fix Committed
Status in kunpeng920 upstream-kernel series:
  Fix Released
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Focal:
  Fix Committed
Status in linux source package in Groovy:
  In Progress

Bug description:
  [Impact]
  Current hisi_sec2 driver only allows 2 threads for accelerator but cpu stress 
test requires more then 50 threads. We have disabled hisi_sec2 temporarily for 
20.04.1. Hisilicon proposes a simple patch on upstream mailing list to enlarge 
the capability.

  [Fix]
  commit 57b1aac1b426b7255afa195298ed691ffea204c6
  Author: Longfang Liu <liulongf...@huawei.com>
  Date: Mon Jun 8 22:01:11 2020 +0800
  Subject: crypto: hisilicon - update SEC driver module parameter

  [Test]
  $ lsmod | grep hisi_sec2 # make sure hisi_sec2 loaded
  $ sudo stress-ng --aggressive --verify --timeout 330 --metrics-brief --tz 
--times --af-alg 0
  $ echo $?

  [Regression Potential]
  This driver is only loaded on Hisilicon Hi1620 machines. Low risk for other 
platform.

To manage notifications about this bug go to:
https://bugs.launchpad.net/kunpeng920/+bug/1890222/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to