Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757331AbbEVTGQ (ORCPT ); Fri, 22 May 2015 15:06:16 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:24610 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757042AbbEVTGO (ORCPT ); Fri, 22 May 2015 15:06:14 -0400 Message-ID: <555F7E20.3040903@imgtec.com> Date: Fri, 22 May 2015 12:06:08 -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> <555F776E.3070904@imgtec.com> In-Reply-To: <555F776E.3070904@imgtec.com> 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: 671 Lines: 18 Ralf, If there was TIF_USEDMSA in "prev" task then it means that all MSA HW is in use. And switch_to() checks this and transfers it to resume() to indicate that MSA processing should be done. Macro call "msa_save_all a0" right before disabling MSA in Config5 does a save of MSA registers. If it doesn't cause an exception then it means that Config5 does exist and Config5.MIPS_CONF5_MSAEN does exist too. - 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/