From owner-freebsd-sparc64@freebsd.org Tue Nov 17 16:44:14 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 4D03DA31C3A for ; Tue, 17 Nov 2015 16:44:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 158891D55; Tue, 17 Nov 2015 16:44:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igcph11 with SMTP id ph11so82836470igc.1; Tue, 17 Nov 2015 08:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8kIe+rUZ7UL7GCesg2u3MMNIxdNI+6Jsh6D+xkJdtGw=; b=NcPFKHgVvfLyRfm+ZT8sgrOK88F8oX2tM/9uMrJ5aDB8RUlQpDwdIiUTOVY6+4l0bG p5310hbzmDeL+7Kt0kOf4pthjsKzaH0GuYA7fE6G4UgA66Vc4klfvvjhy6pgzRLx2kFC JJQgrTArny1x5VuJSKKCpGesSUlvw0Q5LOaiWr1MdhpTaxFQsXIXJaEYCU3E0n+LnvGZ +xu8cHRugPt1JHf6EiwRWZZ38U2IjHm4G0jin8+vdJ7KF8t3ajBSXOEoLehnTeYxvejj hdJ2a9JSNKYBo/yYBBxEGzrKLY6RTMYy8x7aIhUWehAm/h4Cgu0WHZHI6VLZ1xKw/p2J BEvA== MIME-Version: 1.0 X-Received: by 10.50.6.36 with SMTP id x4mr2718885igx.61.1447778653503; Tue, 17 Nov 2015 08:44:13 -0800 (PST) Received: by 10.36.217.196 with HTTP; Tue, 17 Nov 2015 08:44:13 -0800 (PST) In-Reply-To: <56462A41.4030707@ilande.co.uk> References: <20150913180126.GC7862@alchemy.franken.de> <55F89861.1030107@ilande.co.uk> <20150916031030.GA6711@FreeBSD.org> <55F9C2B8.7030605@ilande.co.uk> <20150916211914.GD18789@alchemy.franken.de> <20150917082817.GA71811@FreeBSD.org> <55FBB662.4080708@ilande.co.uk> <20150919211420.GK18789@alchemy.franken.de> <55FDEA3C.1010804@ilande.co.uk> <20150920043630.GA36162@FreeBSD.org> <20150922221404.GA81100@alchemy.franken.de> <563F8722.9050503@ilande.co.uk> <56462A41.4030707@ilande.co.uk> Date: Tue, 17 Nov 2015 08:44:13 -0800 Message-ID: Subject: Re: PCI range checking under qemu-system-sparc64 From: Adrian Chadd To: Mark Cave-Ayland Cc: Marius Strobl , Alexey Dokuchaev , "freebsd-sparc64@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 17 Nov 2015 16:44:14 -0000 Hi so at this point it's just hanging, right? You can break into the debugger, but that's it? What do I do to get freebsd-head sparc64 to this point myself? :) thanks, -adrian On 13 November 2015 at 10:21, Mark Cave-Ayland wrote: > On 08/11/15 17:32, Mark Cave-Ayland wrote: > >> I now have a small patchset for QEMU git master that fixes the timer >> issues (as well as implementing the NPT bit properly) and it gets to the >> same point as you did above, so that's progress :) >> >> QEMU is currently in freeze in preparation for the next release, so >> while the timer work won't be there for 2.5 in the meantime I shall tidy >> them up and push to github. I should add that the ebus enumeration >> patches related to the device tree properties (minus the addition of the >> keyboard device that crashes Linux) are already upstream and will appear >> in 2.5. > > FYI I've just posted my patches for upstream review at > https://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg03359.html > for the adventurous/foolhardy ;) > > With the patches applied to QEMU git master I now see the same > corruption that you did: > > > $ ./qemu-system-sparc64 -cdrom sparc64.iso -boot d -nographic > OpenBIOS for Sparc64 > Configuration device id QEMU version 1 machine id 0 > kernel cmdline > CPUs: 1 x SUNW,UltraSPARC-IIi > UUID: 00000000-0000-0000-0000-000000000000 > Welcome to OpenBIOS v1.1 built on Oct 27 2015 23:43 > Type 'help' for detailed information > Trying cdrom:f... > Not a bootable ELF image > Loading a.out image... > Loaded 7680 bytes > entry point is 0x4000 > > Jumping to entry point 0000000000004000 for type 0000000000000005... > switching to new context: entry point 0x4000 stack 0x00000000ffe8aa09 > >>> FreeBSD/sparc64 boot block > Boot path: /pci@1fe,0/pci-ata@5/ide1@8200/cdrom@0:f > Boot loader: /boot/loader > Consoles: Open Firmware console > > FreeBSD/sparc64 bootstrap loader, Revision 1.0 > (mca@freebsd, Thu Sep 24 00:27:19 BST 2015) > bootpath="/pci@1fe,0/pci-ata@5/ide1@8200/cdrom@0:a" > Loading /boot/defaults/loader.conf > /boot/kernel/kernel data=0xd893c0+0x20ffd8 syms=[0x8+0xdc578+0x8+0xcb349] > \ > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > jumping to kernel entry at 0xc00b0000. > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2015 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #0 1eb7424(master): Thu Sep 24 06:41:18 BST 2015 > > mca@freebsd:/usr/home/mca/obj/sparc64.sparc64/usr/home/mca/src/sys/GENERIC > sparc64 > gcc version 4.2.1 20070831 patched [FreeBSD] > WARNING: WITNESS option enabled, expect reduced performance. > VT: init without driver. > real memory = 134217728 (128 MB) > avail memory = 98312192 (93 MB) > cpu0: Sun Microsystems UltraSparc-IIi Processor (100.00 MHz CPU) > random: entropy device external interface > kbd0 at kbdmux0 > nexus0: > nexus0: : incomplete > pcib0: mem 0x1fe00000000-0x1fe01ffffff irq > 2032,2030,2031,2021 on nexus0 > pcib0: Sabre, impl 0, version 0, IGN 0x1f, bus A, 33MHz > pcib0: DVMA map: 0xc0000000 to 0xc3ffffff 8192 entries > pcib0: [GIANT-LOCKED] > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pcib2: at device 1.1 on pci0 > pci2: on pcib2 > ebus0: port 0x4000-0x7fff mem 0x3000000-0x3ffffff at > device 3.0 on pci0 > vgapci0: mem > 0x1000000-0x1ffffff,0x2000000-0x2000fff at device 2.0 on pci0 > vgapci0: Boot video device > eeprom0: addr 0x1400002000-0x1400003fff on ebus0 > eeprom0: model mk48t59 > ebus0: addr 0 (no driver attached) > uart0: <16550 or compatible> addr 0x14000003f8-0x14000003ff irq 43 on ebus0 > uart0: console (9600,n,8,1) > ebus0: addr 0x1400000060-0x1400000067 (no driver attached) > pci0: at device 4.0 (no driver attached) > atapci0: port > 0x8100-0x8107,0x8180-0x8183,0x8200-0x8207,0x8280-0x8283,0x8300-0x830f at > device 5.0 on pci0 > ata2: at channel 0 on atapci0 > ata3: at channel 1 on atapci0 > cryptosoft0: on nexus0 > nexus0: type unknown (no driver attached) > Timecounter "tick" frequency 100000000 Hz quality 1000 > Event timer "tick" frequency 100000000 Hz quality 1000 > Timecounters tick every 1.000 msec > IPsec: Initialized Security Association Processing. > cd0 at ata3 bus 0 scbus1 target 0 lun 0 > cd0: Removable CD-ROM SCSI device > cd0: Serial Number QM00003 > cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) > cd0: cd present [250560 x 2048 byte records] > WARNING: WITNESS option enabled, expect reduced performance. > Trying to mount root from cd9660:/dev/iso9660/TEST [ro]... > [ thread pid 17 tid 100035 ] > Stopped at tl1_trap+0x24: stx %o0, [%sp + 0x997] > db> > > > > > ATB, > > Mark. > > _______________________________________________ > freebsd-sparc64@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe@freebsd.org"