mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Kernel driver vs libusb performance
@ 2013-01-11  9:53 Ozan Çağlayan
  2013-01-11 13:41 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Ozan Çağlayan @ 2013-01-11  9:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman

Hi,

I have a device which I'm currently accessing using libusb. It's
basically a HID compliant USB device. It reports 32bytes of data with
a time resolution of 128Hz, e.g. I have to read and store 32bytes each
1/128 second. One performance drawback is that those 32bytes chunks
are encrypted with AES so once I receive them through the USB endpoint
I first decrypt them.

So 128Hz is quite a low polling frequency and can be handled in a
single-thread using a modern CPU, but I'm planning to run this loop on
a Raspberry Pi or namely low-end, cheap embedded processors. I'm also
using Python which is significantly slow on Raspberry Pi.

So I wonder whether writing a kernel driver which decrypts the packets
using in-kernel crypto API and then exposing them through a character
device node would bring a performance gain at all. At least on the
userspace side I may get rid of all the bus searching, crypto key
generation, fetching and decrypting boilerplate, am I in the wrong
way?

Thanks,

-- 
Ozan Çağlayan
Research Assistant
Galatasaray University - Computer Engineering Dept.
http://www.ozancaglayan.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-11 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11  9:53 Kernel driver vs libusb performance Ozan Çağlayan
2013-01-11 13:41 ` Greg KH
2013-01-11 14:10   ` Ozan Çağlayan
2013-01-11 14:23     ` Greg KH
2013-01-11 14:40       ` Ozan Çağlayan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®