From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 01 Jun 2015 07:08:34 +0200 (CEST) Received: from resqmta-ch2-04v.sys.comcast.net ([69.252.207.36]:45093 "EHLO resqmta-ch2-04v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27006776AbbFAFIbUS7h4 (ORCPT ); Mon, 1 Jun 2015 07:08:31 +0200 Received: from resomta-ch2-15v.sys.comcast.net ([69.252.207.111]) by resqmta-ch2-04v.sys.comcast.net with comcast id at8L1q0042Qkjl901t8LzA; Mon, 01 Jun 2015 05:08:20 +0000 Received: from [192.168.1.13] ([69.251.155.187]) by resomta-ch2-15v.sys.comcast.net with comcast id at8K1q00542s2jH01t8Kdq; Mon, 01 Jun 2015 05:08:20 +0000 Message-ID: <556BE8C2.8050404@gentoo.org> Date: Mon, 01 Jun 2015 01:08:18 -0400 From: Joshua Kinard User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: linux-mips@linux-mips.org CC: Ralf Baechle Subject: Re: IP30: SMP, Almost there? References: <55597B21.4010704@gentoo.org> <556142C5.7090206@gentoo.org> In-Reply-To: <556142C5.7090206@gentoo.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1433135300; bh=0BXuEIvVTzPw/vm9Wn6aCybgBkGwUnTcC45yhXVf8lw=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=bpclRp/gDrRvajzD6zUViWtZrfKco0eVEd6tiPYyfLaYRhWagwpBPbA1SbZhrI3A5 Em6rHStsBuYLgsEAf+kX3ZwzYgHK2zu1JN7pgfC49ayc4LGE7pNLFrwM7fpouLSh6v eaR3Zw9D1BpOSFWqP+SMLUrrG/KWwT+Lvb0yKbo9HH3ZomyCUV4v3KReCphzySbq2U xqSkP4Cn2Rmj/8v4MYDN8kqf3HVX47SN5bRqwl4xYatK3PobypbIM69007BQDZqKGe f4iCndqyslzA2RY3YZSMWHeTXxLdaNoSygMu6FLdhZ+OOBsQ1CpLXCtVZijW9hAWoV wTFwWiR4DdCyg== 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: 47756 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: kumba@gentoo.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 05/23/2015 23:17, Joshua Kinard wrote: > On 05/18/2015 01:39, Joshua Kinard wrote: >> So I've gotten the second CPU in Octane to "tick" again...somehow. I am >> certain someone's cat went missing in the process... > > So, yeah, the problem appears to be specific to the R14000 CPU module. I > swapped in an R12K dual CPU module, and after a little bit of tinkering to > revert a few hacks and clean up the code, it boots into SMP, mounts the > userland, and has successfully sync'ed a Gentoo Portage tree w/o annihilating > the XFS filesystem or the MD RAID5 array. Even compiled a few C files. > [snip] > > I even got the IRQs to be fanned out across both CPUs. Well, primarily the > qla1280 drivers. They randomly hop between both CPUs, but no ill effects so far. > > But if I boot that *same* working kernel on an R14000 dual module, I get handed > an IBE as soon as the userland mounts. The only documented differences that I > can find on the R14000 is that it supports DDR memory, being able to do memory > operations on the rising edge and falling edge of each clock. Not sure if that > matters to the kernel at all, but I know of nothing else that describes the > R14K's internals, such as if there's some new bit in CP0 config, > branch-diagnostic, status, etc, that might explain why these IBE's are happening. > > Guess I need to hunt down my old dual R10K module next and verify that works > fine... > > Also, is there a way to hardcode the cca=5 setting for IP30? Maybe it needs to > be a hidden Kconfig item?. I tried setting cpu->writecombine in cpu-probe.c, > but no dice there. If I boot an SMP kernel on dual R12K's w/o cca=5, I'll get > one or two pretty-specific oopses. The one I did grab complains about bad > spinlock magic in the core tty driver somewhere. I can transcribe that oops > later on if interested. So far, the problem looks to have been blindly assigning all 64 HEART IRQs to 'handle_level_irq', including the SMP IPI IRQs. I fixed that by assigning the four IPI IRQs and four unused debug IRQs to 'handle_percpu_irq'. So far, no bus errors, even on R14000. Also successfully tested 16KB PAGE_SIZE and no bus errors. Next, 64KB PAGE_SIZE w/ CONFIG_TRANSPARENT_HUGEPAGE, which was pretty good at triggering bus errors. --J