From owner-freebsd-sparc64@freebsd.org Wed Sep 9 20:19:17 2015 Return-Path: Delivered-To: freebsd-sparc64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77128A00BF3 for ; Wed, 9 Sep 2015 20:19:17 +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 35095185E; Wed, 9 Sep 2015 20:19:15 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) Received: from [90.202.114.174] (helo=[192.168.1.86]) by s16892447.onlinehome-server.info with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ZZlpf-0001PC-B2; Wed, 09 Sep 2015 21:19:06 +0100 Message-ID: <55F09431.4080807@ilande.co.uk> Date: Wed, 09 Sep 2015 21:18:57 +0100 From: Mark Cave-Ayland User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Alexey Dokuchaev CC: John Baldwin , "freebsd-sparc64@freebsd.org" References: <557DA6D5.4070800@FreeBSD.org> <557DCF54.7020606@ilande.co.uk> <557DF887.20508@ilande.co.uk> <20150906110308.GA68829@FreeBSD.org> <55EC2E8D.4020803@ilande.co.uk> <20150906124859.GA14919@FreeBSD.org> <55EC3949.1020508@ilande.co.uk> <20150906134245.GA21410@FreeBSD.org> <55EC4C43.9050700@ilande.co.uk> <20150907092310.GA67083@FreeBSD.org> In-Reply-To: <20150907092310.GA67083@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 90.202.114.174 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk 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: No (on s16892447.onlinehome-server.info); Unknown failure 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: Wed, 09 Sep 2015 20:19:17 -0000 On 07/09/15 10:23, Alexey Dokuchaev wrote: > On Sun, Sep 06, 2015 at 03:22:59PM +0100, Mark Cave-Ayland wrote: >> On 06/09/15 14:42, Alexey Dokuchaev wrote: >>> Hmm, I'm running GENERIC, so it looks like everything should be already >>> there, no? At least by looking at ./conf/files.sparc64 I don't see what >>> else ("device ???") should I add to it to get su/kb_ps2 support... >> >> I'm afraid I'm not really a BSD person, but a quick browse at the source >> on github suggests you need these drivers: >> >> https://github.com/freebsd/freebsd/blob/master/sys/dev/uart/uart_bus_ebus.c >> https://github.com/freebsd/freebsd/blob/master/sys/dev/atkbdc/atkbdc_ebus.c > > Right, both of them are compiled-in by default. > >> It also looks like you'd need to hack atkbdc_ebus.c to allow "kb_ps2" as >> a device name rather than just trying to match on "8042", although this >> could potentially be fixed by renaming the device in OpenBIOS moving >> forwards as long as it doesn't cause any regressions. > > I've patched it to allow "kb_ps2", and removed some stuff like INVARIANTS, > WITNESS, IPSEC, etc. in faint hope to eliminate problematic code path, but > it did not help: it still hangs, apparently in the same place. > > I'll try to trim kernel config a bit more, and of course would welcome any > other ideas/patches to try, thanks! I should add that if you can sprinkle some debug statements or similar around to find out exactly where the attach is failing and post the results here, that would be extremely helpful until I can get my FreeBSD environment back up and running again. ATB, Mark.