Re: [Ocf-linux-users] SafeXcel 1141
Brought to you by:
david-m
From: David M. <Dav...@se...> - 2007-09-26 11:40:43
|
Jivin Nawang Chhetan lays it down ... > Hi David, > I'll really appreciate if you please tell me whether I am > committing an elementry mistake here ? If so I'll re-investigate my > findings. So for being a bit slow, I've been a little snowed under for the last 3 weeks. > On 9/11/07, Nawang Chhetan <naw...@gm...> wrote: > > Hi David, > > Thanks for a prompt reply. I ran the cryptotest program > > and attached are the results. My observations is that when I run: > > > > ./cryptotest i.e small number of packets everything is fine. See > > cryptotest-1.txt > > > > while with > > > > ./cryptotest -z i.e. large number of packets.There is a kernal paging error. > > > > and Yes error 22 is EINVAL( I forgot to mention). > > Running openssl ( as suggested in benchmark page ) didn't do any ocf > > acceleration. I am using openssl version 0.9.8e (I applied the patch > > provided by you with the distribution) > > We need to mention "-engine cryptodev" , but how do we specify the > > device i.e safe,hifn,cryptosoft etc. I do that by only loading the driver I wish to test and unloading the others ;-) > > I am using kernel version 2.6.16.1 with kernel pre-emption on. I think I have mentioned this before, but I have not done any testing with preemption enabled. Try with it off just to eliminate that option. >From the crash it seems like a corruption or timing/alloc/free bug, so the preemption is a candidate. Try it and see :-) Cheers, Davidm > > On 9/11/07, David McCullough <Dav...@se...> wrote: > > > > > > Jivin Nawang Chhetan lays it down ... > > > > Hi David, > > > > I just tried the simple ocf-bench test program with > > > > SafeXcel 1141 card. But all the operations fail. > > > > I am attaching a tar ball which contains following three files: > > > > 1. lsmod.txt > > > > 2. lspci.txt > > > > 3. ocfbench-dmesg.txt > > > > with respective details. > > > > > > > > Please have a look at them. > > > > > > It is possible that ocf-bench is not calling into OCF with parameters > > > that will work with the safenet. Pretty sure the error 22 will be an > > > EINVAL. Check your errno.h > > > > > > Try running cryptotest from user space or "openssl speed" as they are > > > safe. If that works I'll look at what could be wrong with ocf-bench. > > > Examples of running the apps are on: > > > > > > http://ocf-linux.sourceforge.net/benchmarks.html > > > > > > Cheers, > > > Davidm > > > > > > > On 9/5/07, David McCullough <Dav...@se...> wrote: > > > > > > > > > > Jivin Nawang Chhetan lays it down ... > > > > > > Hi David, > > > > > > I am trying to run "bench-ocf" with safe.ko . I dont > > > > > > see any debug messages( I insert the modules with debug messages > > > > > > enabled). Seems even though open-ssl does all the stuff mentioned in > > > > > > the script "bench-ocf", 1141 card is not used. Can you give me some > > > > > > directions here ? > > > > > > > > > > Send me the output of: > > > > > > > > > > lsmod > > > > > > > > > > If you want to be sure only the safenet driver is used, make sure that > > > > > you do not load cryptosoft or any other crypto driver. Just load: > > > > > > > > > > ocf > > > > > safe > > > > > cryptodev > > > > > > > > > > Cheers, > > > > > Davidm > > > > > > > > > > > On 9/5/07, David McCullough <Dav...@se...> wrote: > > > > > > > > > > > > > > Jivin Nawang Chhetan lays it down ... > > > > > > > > Hi David, > > > > > > > > I was testing OCF with SafeXcel 1141 card. Just wanted > > > > > > > > to know which version of the 1141 card you tested OCF with i.e. REV1 > > > > > > > > or REV1.1. > > > > > > > > > > > > > > I think I have used both as I had to work around a bug in version1 IIRC. > > > > > > > I have also used the 1741. > > > > > > > > > > > > > > Note that none of these were cards, but PCI chips on an embedded board, > > > > > > > but they look like cards ;-) > > > > > > > > > > > > > > Cheers, > > > > > > > Davidm > > > > > > > > > > > > > > -- > > > > > > > David McCullough, dav...@se..., Ph:+61 734352815 > > > > > > > Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Nawang Chhetan > > > > > > Software Engineer > > > > > > SafeNet India. > > > > > > > > > > > > > > > > -- > > > > > David McCullough, dav...@se..., Ph:+61 734352815 > > > > > Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com > > > > > > > > > > > > > > > > > -- > > > David McCullough, dav...@se..., Ph:+61 734352815 > > > Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com > > > > > > > > -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |