Skip to contentSkip to conversation

Lacking xsave support in Xenomai

Xenomai Jan Kiszka 2 participants 4 messages Jan 25, 2013

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi all,

yesterday I pushed a fix to my for-upstream queue that properly disables all xsave-dependent CPU features (AVX/AVX2 namely). However, this is no real solution for us as it blocks a lot of acceleration potential on current Intel CPUs.

Did anyone already look into this in more details? Is it just a matter of implementing the necessary context switching bits? Are there known pitfalls?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 11 lines · Jan Kiszka

Hi all,

yesterday I pushed a fix to my for-upstream queue that properly disables all xsave-dependent CPU features (AVX/AVX2 namely). However, this is no real solution for us as it blocks a lot of acceleration potential on current Intel CPUs.

Did anyone already look into this in more details? Is it just a matter of implementing the necessary context switching bits? Are there known

pitfalls?

The known pitfalls of FPU support is that we never get it right the first time. And debugging why it fails is hard.

Signature · 1 line
                                                                Gilles.
author
#2 lore raw
Quoted 9 lines · Gilles Chanteperdrix
Quoted 7 lines · Jan Kiszka

Hi all,

yesterday I pushed a fix to my for-upstream queue that properly disables all xsave-dependent CPU features (AVX/AVX2 namely). However, this is no real solution for us as it blocks a lot of acceleration potential on current Intel CPUs.

Quoted 7 lines
Quoted 4 lines

Did anyone already look into this in more details? Is it just a matter of implementing the necessary context switching bits? Are there known

pitfalls?

The known pitfalls of FPU support is that we never get it right the first time. And debugging why it fails is hard.

OK, so no conceptual issues. And it will remain controllable via "noxsave".

Still need to discuss details here, but I bet we will look into this soon.

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 13 lines · Jan Kiszka
Quoted 12 lines · Gilles Chanteperdrix
Quoted 9 lines · Jan Kiszka

Hi all,

yesterday I pushed a fix to my for-upstream queue that properly disables all xsave-dependent CPU features (AVX/AVX2 namely). However, this is no real solution for us as it blocks a lot of acceleration potential on current Intel CPUs.

Did anyone already look into this in more details? Is it just a matter of implementing the necessary context switching bits? Are there known

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

pitfalls?

The known pitfalls of FPU support is that we never get it right the first time. And debugging why it fails is hard.

OK, so no conceptual issues. And it will remain controllable via "noxsave".

Still need to discuss details here, but I bet we will look into this soon.

You may want to use the "fpu tracer" patches:
http://git.xenomai.org/?p=ipipe-gch.git;a=shortlog;h=refs/heads/core-3.4-fpu_trace
http://git.xenomai.org/?p=xenomai-gch.git;a=shortlog;h=refs/heads/2.6-fpu_trace

Signature · 1 line
                                                                Gilles.