Received: by 10.223.185.116 with SMTP id b49csp6361869wrg; Wed, 28 Feb 2018 08:10:37 -0800 (PST) X-Google-Smtp-Source: AH8x226HpseBO+Q4JxP1ABWSRND3VXnbHcf7wXN+UsSTB7/he8q3dEwx2pd6S6M44bCH/Oui6Itw X-Received: by 10.98.98.194 with SMTP id w185mr18317193pfb.9.1519834237436; Wed, 28 Feb 2018 08:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519834237; cv=none; d=google.com; s=arc-20160816; b=DogdyVgKAo+/hv7huseNZa8/zx51+2Sx9yUARSKUzbRdcZLRhMhecatAV68WkZl4Vr 0ZjgkcIsDwicyPJpswreM81bTh4tPuHl7Nwpwb1E6zcnz/sIC7e+DOcU6uJ3/julu0I3 rJSQtoO37/rTQTPu3XLfW5UAgGsi4ZA66gvu6BWVyG9jeBCF8wE2m7pBR9sJhzM7xABD wbchj/XIQdv8aS7nCEHXJft70i6P4e9rR7GGnMXk9QSgxhCsbuhHDIrKcj0CtSFByio9 f7gknI660PEXFvxALYEvtBTpVNgykV4yFqIBYSUNDWEgjHsKDDozhVvhxjl7OPXTeUgv TSxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=s4U7vzZni2/B2hluVT3O7WAWBkZVPzY3W61lI2cLzic=; b=x5HfA5MaZTUq/q+gjDJKMgAmHQE2ho4SGUMWsFZbR+gcLZuUxiPtdq42j2QxzZL65u FdUQsZUnPHsfPBmg5A8PrbjQTHSh43WmVWCI3YFrwQFkuFCxU8W4bMuxohLDn/xvwCLS R1Wvxzb0A9ro5itxcauI6eIu7IRsUKWLEyB392dE1QK6Xwsf8JUdYjWBimXBTe52zAsE jYt4kvObVQuU5w3k9C+5wUTkrhPCdoxybopy0yhwwdU4fc04q4Vg4S1XZ2lzX+tPxFLO jsXu7oaTXtL6v+FZmu3WRnP6vWGIKdeA0W6eaBbbKMQi8YD8rILfACBSfZH5C/l6BAJi rFqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e68si1402186pfa.94.2018.02.28.08.10.22; Wed, 28 Feb 2018 08:10:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934646AbeB1QJF (ORCPT + 99 others); Wed, 28 Feb 2018 11:09:05 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:34983 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932875AbeB1QJB (ORCPT ); Wed, 28 Feb 2018 11:09:01 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1er3Ys-0006Xb-Ok; Wed, 28 Feb 2018 15:22:30 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yg-00005D-E8; Wed, 28 Feb 2018 15:22:18 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Ralf Baechle" Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 104/254] MIPS: MSA: bugfix - disable MSA correctly for new threads/processes. In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.55-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Ralf Baechle commit 9cc719ab3f4f639d629ac8ff09e9b998bc006f68 upstream. Due to the slightly odd way that new threads and processes start execution when scheduled for the very first time they were bypassing the required disable_msa call. Signed-off-by: Ralf Baechle Signed-off-by: Ben Hutchings --- arch/mips/include/asm/switch_to.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/mips/include/asm/switch_to.h +++ b/arch/mips/include/asm/switch_to.h @@ -101,7 +101,6 @@ do { \ if (test_and_clear_tsk_thread_flag(prev, TIF_USEDMSA)) \ __fpsave = FP_SAVE_VECTOR; \ (last) = resume(prev, next, task_thread_info(next), __fpsave); \ - disable_msa(); \ } while (0) #define finish_arch_switch(prev) \ @@ -119,6 +118,7 @@ do { \ if (cpu_has_userlocal) \ write_c0_userlocal(current_thread_info()->tp_value); \ __restore_watch(); \ + disable_msa(); \ } while (0) #endif /* _ASM_SWITCH_TO_H */