Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1495040

Re: [PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still loaded

From Rik van Riel <riel@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still loaded
Date 2016-10-03 23:10 +0200
Message-ID <soiEO-1DF-25@gated-at.bofh.it> (permalink)
References <snzy1-5k2-3@gated-at.bofh.it> <snzy1-5k2-5@gated-at.bofh.it> <sohIK-123-29@gated-at.bofh.it> <soi25-1b8-1@gated-at.bofh.it> <soivd-1li-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, 2016-10-03 at 13:49 -0700, Dave Hansen wrote:
> On 10/03/2016 01:22 PM, Rik van Riel wrote:
> > 
> > > 
> > > > 
> > > > What are the preempt rules with this thing?  This needs to be
> > > > called
> > > > in preempt-disabled contexts, right?
> > Indeed, all the FPU context switching code needs 
> > to be called in preempt-disabled contexts.
> > 
> > You do not want to get preempted halfway through
> > saving or restoring floating point registers.
> OK, cool, that's what I expected.  Could you just add a comment about
> it
> to make it clear that it's also the case for this new
> fpu_lazy_skip_restore() helper?

Turns out the code already has an old
fpu_want_lazy_restore(), which is what
I will use instead :)

I will add documentation about preemption
in places where it is necessary.

-- 
All rights reversed

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still loaded riel@redhat.com - 2016-10-01 23:00 +0200
  Re: [PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still  loaded Dave Hansen <dave.hansen@linux.intel.com> - 2016-10-03 22:10 +0200
    Re: [PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still  loaded Rik van Riel <riel@redhat.com> - 2016-10-03 22:30 +0200
      Re: [PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still  loaded Dave Hansen <dave.hansen@linux.intel.com> - 2016-10-03 23:00 +0200
        Re: [PATCH RFC 4/5] x86,fpu: lazily skip FPU restore when still  loaded Rik van Riel <riel@redhat.com> - 2016-10-03 23:10 +0200

csiph-web