From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tX4j75T5jzDvkb for ; Mon, 5 Dec 2016 11:03:23 +1100 (AEDT) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by ozlabs.org (Postfix) with ESMTP id 3tX4j7424dz9t1F for ; Mon, 5 Dec 2016 11:03:23 +1100 (AEDT) From: Alistair Popple To: Michael Ellerman Cc: Balbir Singh , linuxppc-dev Subject: Re: [PATCH v2] powerpc/powernv: Initialise nest mmu Date: Mon, 05 Dec 2016 11:02:35 +1100 Message-ID: <1500348.HuelYn9x60@new-mexico> In-Reply-To: <87mvgdxmt1.fsf@concordia.ellerman.id.au> References: <1480656588-25504-1-git-send-email-alistair@popple.id.au> <87twalxovd.fsf@concordia.ellerman.id.au> <87mvgdxmt1.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, On Sat, 3 Dec 2016 10:40:58 PM Michael Ellerman wrote: > Michael Ellerman writes: > > > Balbir Singh writes: > > > >> > >> > >>> static void __init radix_init_partition_table(void) > >>> { > >>> - unsigned long rts_field; > >>> + unsigned long rts_field, ptcr; > >> > >> I think these functions have changed, check for conflicts against > >> http://git.kernel.org/cgit/linux/kernel/git/paulus/powerpc.git/commit/?h=kvm-ppc-next&id=9d66195807ac6cb8a14231fd055ff755977c5fca > > > > They did, I ended up with: > > > > https://github.com/linuxppc/linux/commit/fb7314c5d6b00dbaaac14c28a52a87dee7e726df > > It's not happy on mambo: > > WARNING: 20856759: (20856757): Invalid address 0x0000000028096258 in XSCOM range, SCOM=0x00280962b > WARNING: 20856759: (20856757): Attempt to store non-existent address 0x00001A0028096258 > 20856759: (20856757): 0x000000003002DA08 : stdcix r26,r0,r3 > FATAL ERROR: 20856759: (20856757): Check Stop for 0:0: Machine Check with ME bit of MSR off > > Which looks to be one of the xscom_write()'s from opal_nmmu_set_ptcr(). Weird. Do you happen to know which one? It should only be touching the NMMU PTCR register which is defined as 0x5012c4b. > Do I need a newer mambo? I'm not sure to be honest. I do all of my testing under Simics which uses Mambo internally but provides some additional models. Perhaps Mambo is missing a required model? Will see if I can recreate it under Simics with that branch. - Alistair > cheers