Re: [Ocf-linux-users] ocf-bench generates "Error in OCF processing: 5" using talitos SEC driver
Brought to you by:
david-m
From: David M. <dav...@mc...> - 2011-04-14 06:27:23
|
Jivin 张绪峰 lays it down ... > Hi experts, > > I met some difficulties to run ocf-bench.ko on talitos SEC driver. > It always generate errors "Error in OCF processing: 5" when run "insmod ocf-bench.ko" on 8548e board. > > How to reproduce: > 1. configure "CONFIG_CRYPTO_DEV_TALITOS=n" "CONFIG_OCF_TALITOS=m" > "CONFIG_OCF_OCF=y" "CONFIG_OCF_CRYPTODEV=y" "CONFIG_OCF_BENCH=m" > 2. build the kernel and boot the 8548e board. > 3. insmod talitos.ko > 4. insmod ocf-bench.ko > Then I got such errors "Error in OCF processing: 5". > I know it is due to SEC h/w receive error interrupts during request processing, > and the error bits in Channel_1 CCPSR register is 50 and 55. But I don't know how to do with it. > > I also run some openssl speed test such as "openssl speed -evp des -elapsed" on ocf talitos driver, > it seems work fine, no error interrupt happens. > > So I want to know why this problem could happen? > Any advice would be appreciated, thanks in advance! So it sounds like it's working but ocf-bench is causing the driver headaches. Which version of ocf are you using ? Check through the ocf-bench code for something like this: if (request_batch) crp->crp_flags |= CRYPTO_F_BATCH; if (request_cbimm) crp->crp_flags |= CRYPTO_F_CBIMM; If you have it then good, otherwise you need to find where crp->crp_flags is set and try setting it to one of the following: crp->crp_flags = (CRYPTO_F_BATCH|CRYPTO_F_CBIMM); crp->crp_flags = CRYPTO_F_CBIMM; crp->crp_flags = CRYPTO_F_BATCH; crp->crp_flags = 0; That may fix it. Also, the latest ocf-bench does an SHA1/AES test, just in case that is confusing you with des working above. So not only does it use AES but it also hashes at the same time. Could be something to look into. Cheers, Davidm -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |