All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] x86/ipipe: force lazy FPU management
@ 2017-06-14  9:30 Jan Kiszka
  2017-06-14  9:47 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2017-06-14  9:30 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai

Hi Philippe,

this commits looks fishy: the original code already disabled eager mode
reliably because of

if (cpu_has_xsaveopt && eagerfpu != DISABLE)
                        ^^^^^^^^^^^^^^^^^^^

right after the original disabling under I-pipe. Instead, the new code
now keeps xfeatures_mask untouched as it performs the disabling too
late. Could you clarify this?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux


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

* Re: [Xenomai] x86/ipipe: force lazy FPU management
  2017-06-14  9:30 [Xenomai] x86/ipipe: force lazy FPU management Jan Kiszka
@ 2017-06-14  9:47 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2017-06-14  9:47 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

On 06/14/2017 11:30 AM, Jan Kiszka wrote:
> Hi Philippe,
> 
> this commits looks fishy: the original code already disabled eager mode
> reliably because of
> 
> if (cpu_has_xsaveopt && eagerfpu != DISABLE)
>                         ^^^^^^^^^^^^^^^^^^^
> 
> right after the original disabling under I-pipe. Instead, the new code
> now keeps xfeatures_mask untouched as it performs the disabling too
> late. Could you clarify this?
> 

Messed up, aka -ENOBRAIN triggered. This was a spurious backport of the
fix I did for 4.9, as the former location of the eagerfpu fixup
introduced a weird bug. The fpu switch init code there postpones the
update of the eager FPU capability until the very end of the routine.

Commit reverted, I'll be issuing a patch within minutes.

Thanks for the heads up.

-- 
Philippe.


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

end of thread, other threads:[~2017-06-14  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-14  9:30 [Xenomai] x86/ipipe: force lazy FPU management Jan Kiszka
2017-06-14  9:47 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.