Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 08 Apr 2014 01:05:09 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:55521 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6816686AbaDGXFGkHQGO (ORCPT ); Tue, 8 Apr 2014 01:05:06 +0200 Date: Tue, 8 Apr 2014 00:05:06 +0100 (BST) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: Ralf Baechle , linux-mips@linux-mips.org Subject: Re: [PATCH] DEC/SNI: O32 wrapper stack switching fixes In-Reply-To: <20140407221920.GA9418@alpha.franken.de> Message-ID: References: <20140407221920.GA9418@alpha.franken.de> User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 39692 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: macro@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Tue, 8 Apr 2014, Thomas Bogendoerfer wrote: > works on a RM200 system (after removing stupid EARLY_CRAP_8250 select). Great! Thanks for verifying. > Only strange thing I see is > > WARNING: CPU: 0 PID: 0 at /home/tsbogend/mips/work/linux/arch/mips/mm/uasm.c:97 build_insn+0x4c4/0x570() > Micro-assembler field overflow > > Happens twice one for build_clear_cache() and build_copy_cache(). > CPU is is R4600PC 2.0. That is rather dangerous, if you do not dare debugging this yourself, can you build arch/mips/mm/page.c with -DDEBUG somehow so that it dumps the machine code generated by these two helpers and we can see what's going on here and maybe where the overflow is? Maciej