LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-26-2018, 07:48 PM   #1
drbrains
LQ Newbie
 
Registered: Feb 2018
Posts: 11

Rep: Reputation: Disabled
Crypto engine start new request(dequeue) on input ready??


In order to have the maximum throughput for the hardware crypto driver, I would like the next request waiting in the queue to be send to the driver as soon as I have a input-queue (low/zero) interrupt. That way the hardware can process a continuous flow. At the moment it seems to me that the next request is only started After I flag the result as processed and the engine is “momentarily” idle.

Can I use the generic crypto-engine framework for this (and how to trigger) or do I have to write my own queue handling??
 
Old 03-06-2018, 03:45 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I need way more info!
 
Old 03-07-2018, 07:24 AM   #3
drbrains
LQ Newbie
 
Registered: Feb 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
I thought input a lot of info already. Anyway reading the crypto engine code it seems it’s hard coded to wait until an idle state. So I either have to patch the code or write my own queue handler. The last seems the best to do at the moment. For now Im debugging my code to have it woeling with the crypto engine. Replacing the calls for my own should not be to much throuble. I’m not sure if I can actually measure the improvement compared to wait until my hardware writes the result before processing the next request. I just feel that there is room for performance improvement.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rewriting old blkcipher aes hw driver to kernel v4.x using crypto-engine "how-to" drbrains Linux - Kernel 2 03-06-2018 02:34 PM
[SOLVED] unable to handle kernel paging request with scatterlist crypto API abirt Programming 4 04-28-2014 06:29 PM
LXer: X Input 2.2 Is Ready To Be Touched LXer Syndicated Linux News 0 03-02-2012 09:51 PM
IPsec transform-set, crypto-invalid input prozac Linux - Networking 3 05-25-2006 02:14 AM
Bash, input validation: request for comments unSpawn Programming 3 07-25-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration