From owner-freebsd-sparc64@FreeBSD.ORG Sun Jun 14 21:56:39 2015 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E3F8DD1; Sun, 14 Jun 2015 21:56:39 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) Received: from s16892447.onlinehome-server.info (s16892447.onlinehome-server.info [82.165.15.123]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 187419DD; Sun, 14 Jun 2015 21:56:38 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) Received: from 5ec26862.skybroadband.com ([94.194.104.98] helo=[192.168.1.87]) by s16892447.onlinehome-server.info with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1Z4FtK-0001N7-HN; Sun, 14 Jun 2015 22:56:35 +0100 Message-ID: <557DF887.20508@ilande.co.uk> Date: Sun, 14 Jun 2015 22:56:23 +0100 From: Mark Cave-Ayland User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: John Baldwin CC: "freebsd-sparc64@freebsd.org" References: <53F73E6F.9080805@ilande.co.uk> <2084808.1lxSgnvf69@ralph.baldwin.cx> <557ADCAB.9020409@FreeBSD.org> <557B6116.70900@ilande.co.uk> <557C1162.3000106@FreeBSD.org> <557D82F8.50908@ilande.co.uk> <557DA6D5.4070800@FreeBSD.org> <557DCF54.7020606@ilande.co.uk> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 94.194.104.98 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on s16892447.onlinehome-server.info X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham version=3.3.2 Subject: Re: PCI range checking under qemu-system-sparc64 X-SA-Exim-Version: 4.2.1 (built Sun, 08 Jan 2012 02:45:44 +0000) X-SA-Exim-Scanned: Yes (on s16892447.onlinehome-server.info) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2015 21:56:39 -0000 On 14/06/15 21:56, John Baldwin wrote: >> On Jun 14, 2015, at 15:00, Mark Cave-Ayland wrote: >> >> On 14/06/15 17:07, John Baldwin wrote: >> >>>> Does the latest HEAD contain a fix for this error or have I >>>> misconfigured something? >>> >>> Did you do 'make TARGET=sparc64 kernel-toolchain' first? >> >> Ah no - I just tried your instructions as printed as I'm not overly >> familiar with FreeBSD. With the above statement run first, I'm now able >> to complete the kernel build but still can't seem to create the >> resulting ISO: > > kldload geom_vtoc8 > > (Or whatever GEOM module has vtoc8 in its name) Got it. The module name was geom_part_vtoc8 and that was enough to enable me to generate a valid ISO, apply your patch and verify that the build works. Thank you for your help so far! A quick test with QEMU debugging enabled shows the following on the console just before the freeze: IN: 0x00000000c0590188: st %g1, [ %l3 + 0x8c ] 0x00000000c059018c: membar #MemIssue 0x00000000c0590190: sll %l0, 2, %g2 0x00000000c0590194: ld [ %i3 + 0x88 ], %g1 0x00000000c0590198: cmp %g2, %g1 0x00000000c059019c: clr %o0 0x00000000c05901a0: movg %icc, 1, %o0 0x00000000c05901a4: call 0xc08aaee0 (hangs) Examining the kernel symbols show that 0xc08aaee0 is the address of the cpu_idle() function which is being called from sched_idletd(). My next job will be to step through cpu_idle() and see if we're getting stuck in a loop or disappearing somewhere else. ATB, Mark.