Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757132AbbEVShm (ORCPT ); Fri, 22 May 2015 14:37:42 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:12715 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756645AbbEVShj (ORCPT ); Fri, 22 May 2015 14:37:39 -0400 Message-ID: <555F776E.3070904@imgtec.com> Date: Fri, 22 May 2015 11:37:34 -0700 From: Leonid Yegoshin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Ralf Baechle CC: , , , , , , , , , , , , Subject: Re: [PATCH 1/2] MIPS: MSA: bugfix - disable MSA during thread switch correctly References: <20150519211222.35859.52798.stgit@ubuntu-yegoshin> <20150519211351.35859.80332.stgit@ubuntu-yegoshin> <20150522093812.GH6941@linux-mips.org> In-Reply-To: <20150522093812.GH6941@linux-mips.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.20.3.79] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 24 On 05/22/2015 02:38 AM, Ralf Baechle wrote: > Just move the call to finish_arch_switch(). It might be a problem later, then a correct MSA partiton starts working. It should be tight to saving MSA registers in that case. > Your rewrite also dropped the if (cpu_has_msa) condition from > disable_msa() probably causing havoc on lots of CPUs which will likely > not decode the set bits of the MFC0/MTC0 instructions thus end up > accessing Config0. Ralf Right before this chunk of code there is a saving MSA registers. Does it causing a havoc or else? May I ask you to look into switch_to macro to figure out how "if (cpu_has_msa)" check works in this case? - Leonid. -- 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/