On Fri, Sep 25, 2015 at 10:14:14AM -0700, Dmitriy Cherkasov wrote:
> Hi Gilles,
> 
> Thank you for the feedback.
> 
> Yes, I saw that the armv7 design had trapped FPU usage and switched 
> context then. While this is good for performance of threads that never 
> use the FPU, it may introduce a one-time delay for threads that do, 
> which may not be desirable in a real-time system.
> 
> I haven't had a chance to measure the specific delay, so I am not sure 
> what the real impact is.

You can avoid that and only switch FPU for threads which have XNFPU,
that is what we did in xenomai 2.x). The cost of your solution is an
FPU switch for every context switch, whereas some threads, and
especially kernel-space threads, will never use the FPU.

> 
> Also, since Linux does not currently support lazy switching, we would 
> have to make sure the FPU is enabled (meaning FPU access traps are 
> disabled) every time we switch back to the kernel. As far as I can tell, 
> the FPU in Linux is always on for arm64. This is in contrast to armv7, 
> where it was okay to return to the kernel with FPU traps enabled.

That does not look like a problem.

-- 
                                            Gilles.
https://click-hack.org

_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

Reply via email to