lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <p733bcj3sn1.fsf@verdi.suse.de>
Date:	30 Jul 2006 19:32:50 +0200
From:	Andi Kleen <ak@...e.de>
To:	Jiri Slaby <jirislaby@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: FP in kernelspace

Jiri Slaby <jirislaby@...il.com> writes:

> 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 

Doesn't sound like something that should be supported for mainline
then.

> So 2 questions are:
> 1) howto FP in kernel

You can use kernel_fpu_begin()/_end() around the FP code in the
kernel, but the real time people will probably hate you for it because
it disables preemption.

> 3) any way to have faster ticks (up to 5000Hz)?

There are plenty of interval timers in various hardware in a typical
system that can be used.  e.g. RTC is a common choice. Drawback is
that you might conflict with other users, especially in user space.
 
But please don't try to submit such a hack.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ