Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752440AbbEDILi (ORCPT ); Mon, 4 May 2015 04:11:38 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34474 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750975AbbEDILd (ORCPT ); Mon, 4 May 2015 04:11:33 -0400 Date: Mon, 4 May 2015 10:11:20 +0200 From: Borislav Petkov To: Bobby Powers Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Oleg Nesterov , Andi Kleen , Ingo Molnar , Andy Lutomirski , Dave Hansen , Fenghua Yu , Linus Torvalds , Pekka Riikonen , Quentin Casasnovas , Rik van Riel , Suresh Siddha Subject: Re: [PATCH v2] x86/fpu: always restore_xinit_state() when use_eager_cpu() Message-ID: <20150504081120.GA4096@pd.tnic> References: <20150427144931.GA25690@redhat.com> <1430147441-9820-1-git-send-email-bobbypowers@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1430147441-9820-1-git-send-email-bobbypowers@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1892 Lines: 46 On Mon, Apr 27, 2015 at 08:10:41AM -0700, Bobby Powers wrote: > v2: switch used_math() -> tsk_used_math(tsk) to consistently use the > grabbed tsk instead of current, like in the rest of flush_thread(). > > Oleg's commit f893959b ("x86/fpu: Don't abuse drop_init_fpu() in > flush_thread()") removed drop_init_fpu() usage from flush_thread. > This seems to break things for me - the Go 1.4 test suite fails all > over the place with floating point comparision errors (offending > commit found through bisection). > > The functional change was that flush_thread after f893959b only calls > restore_init_xstate when both use_eager_fpu() and !used_math() are > true. drop_init_fpu (now fpu_reset_state) calls restore_init_xstate() > regardless of whether current used_math() - apply the same logic here. > > Fixes: f893959b ("x86/fpu: Don't abuse drop_init_fpu() in flush_thread()") > Signed-off-by: Bobby Powers > Acked-by: Oleg Nesterov > Cc: Andi Kleen > Cc: Borislav Petkov > Cc: Ingo Molnar > Cc: Andy Lutomirski > Cc: Dave Hansen > Cc: Fenghua Yu > Cc: Linus Torvalds > Cc: Pekka Riikonen > Cc: Quentin Casasnovas > Cc: Rik van Riel > Cc: Suresh Siddha > --- > arch/x86/kernel/process.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) Applied, thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/