public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* FP in kernelspace
@ 2006-07-30 11:28 Jiri Slaby
  2006-07-30 11:31 ` Jiri Slaby
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Jiri Slaby @ 2006-07-30 11:28 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello,

I have a driver written for 2.4 + RT patches with FP support. I want it to work 
in 2.6. How to implement FP? Has anybody developped some "protocol" between KS 
and US yet? If not, could somebody point me, how to do it the best -- with low 
latency.
The device doesn't generate irqs *), I need to quickly respond to timer call, 
because interval between two posts of data to the device has to be equal as much 
as possible (BTW is there any way how to gain up to 5000Hz).
I've one idea: have a thread with RT priority and wake the app in US waiting in 
read of character device when timer ticks, post a struct with 2 floats and 
operation and wait in write for the result. App computes, writes the result, we 
are woken and can post it to the device. But I'm afraid it would be tooo slow.

*) I don't know how to persuade it (standard PLX chip with unknown piece of 
logic behind) to generate, because official driver is closed and _very_ 
expensive. Old (2.4) driver was implemented with RT thread and timer, where FP 
is implemented within RT and computed directly in KS.

So 2 questions are:
1) howto FP in kernel
2) howto precise timer (may mingo RT patches help?)
3) any way to have faster ticks (up to 5000Hz)?

Any suggestions, please?

thanks,
-- 
<a href="http://www.fi.muni.cz/~xslaby/">Jiri Slaby</a>
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8  22A0 32CC 55C3 39D4 7A7E

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

end of thread, other threads:[~2006-07-31  0:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-30 11:28 FP in kernelspace Jiri Slaby
2006-07-30 11:31 ` Jiri Slaby
2006-07-30 14:32 ` Arjan van de Ven
2006-07-30 14:40 ` Avi Kivity
2006-07-30 14:54   ` Arjan van de Ven
2006-07-30 15:09     ` Jiri Slaby
2006-07-30 15:20       ` Arjan van de Ven
2006-07-30 15:23       ` Avi Kivity
2006-07-30 15:21     ` Avi Kivity
2006-07-30 17:34       ` Andi Kleen
2006-07-30 18:11         ` Avi Kivity
2006-07-30 18:15           ` Andi Kleen
2006-07-30 18:30             ` Avi Kivity
2006-07-30 18:17           ` Jan Engelhardt
2006-07-30 17:33     ` Andi Kleen
2006-07-30 18:18   ` Jan Engelhardt
2006-07-30 18:28     ` Avi Kivity
2006-07-30 23:11       ` Jan Engelhardt
2006-07-30 17:32 ` Andi Kleen
2006-07-31  0:33 ` Steven Rostedt

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