From owner-freebsd-ppc@freebsd.org Thu Jul 12 17:42:00 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2263102BA23 for ; Thu, 12 Jul 2018 17:42:00 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (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 32E2275375 for ; Thu, 12 Jul 2018 17:42:00 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-it0-x243.google.com with SMTP id p4-v6so7980023itf.2 for ; Thu, 12 Jul 2018 10:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=tjTl18QH9fdnCZL1H3CLzWmzgCzKnq4IlwR6QS7xXiI=; b=N8mAZtl8jsoep0g3kdmOizCFBHFLc4/LfEUEVcuEKt2gq3Otie1pOOeXG28IGPDW0y toD6V5gSDcs0sLg6S0cqSsv6kjyYs3xNrtD7yXC1WeYLmrLNcjasec8eW0H6eGJMywnJ c8TCzq2TL3AY4vxDqkBhdZu8Hc6vJR9pQmdfNbtCZj0yqwoerkOYwoFiZPqNAOLCCCw3 F/fcUqH7sHIA/QKK+TQByWK22y9sqOaWd2uox+sCDSyyJ6yy/4fVwHDkjGtkImeGm8fI gj43ldpMkKMpsty9OdlhIAa8/RPjVkf6gQWyxEG+OjyUZDIcPTZjIJhXGrnYeDOxLG0x z6rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=tjTl18QH9fdnCZL1H3CLzWmzgCzKnq4IlwR6QS7xXiI=; b=EwMQEl7xqRsSDlY32OgYOHbeDx3/GIyuoantNnmxyN5RQV9R95zDCA0Vkvx2q5kvRX z06RYj/evlSwY4K3vsWlbQatyGZPAEZue87fxmXZmYDlcXgsvEM9ITISYEO+BHEO16oE r+o7/TpDRczRsjCZaldjmjWlwniMimWKnZxgZfGeFl6923nSz/2CzQEBgjyhB6xY8/tH XaDL6fn8c2nE2VLzRIvQTO4CKxmGqnOiXwrdBP1bY/yzCzxyCVCgrpaexwGeW3acn5e1 d1HqHTYFGv/gBVLERwvlQ024FIDDBp1ecjO9fbRtVZBlV0AD2koVj9o/V+EgRjGrpZgn qDjg== X-Gm-Message-State: AOUpUlFl+nELZAymqajosTqfuj0d8f5i1MvkVb0BR9DctTgxA++pfhZZ E0513do7d7giQZbve3ghfIS/LL0z X-Google-Smtp-Source: AAOMgpeWzzPtIA413WvMCkZa6/k2JC9DK+c4tGuSv49MkZi0t6vByMLY8r+SW9Tku9gViE18Jhlfsg== X-Received: by 2002:a24:eec4:: with SMTP id b187-v6mr2123067iti.4.1531417319575; Thu, 12 Jul 2018 10:41:59 -0700 (PDT) Received: from outpaddling.cs.uwm.edu (outpaddling.cs.uwm.edu. [129.89.38.212]) by smtp.gmail.com with ESMTPSA id p130-v6sm2820925itc.38.2018.07.12.10.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 10:41:58 -0700 (PDT) Subject: Re: QEMU From: Jason Bacon To: freebsd-ppc@freebsd.org Cc: Muhammad Moinur Rahman References: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> Message-ID: <8dda85f6-df80-74c7-c0c6-3b8c2222783a@gmail.com> Date: Thu, 12 Jul 2018 12:41:57 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 17:42:00 -0000 And one more grain of evidence... On a boot that makes it as far as the FreeBSD installer, if I hold down a key, qemu CPU usage seems to go up from about 2% to about 3%.  It appears that at least qemu is not frozen and is processing keyboard input.  I suspect this might provide a clue for someone who knows the internals. I also attached a picture of where the 11.1 install gets stuck. On 07/12/18 10:09, Jason Bacon wrote: > > FYI, I get the exact same behavior under qemu 2.8.1 on Debian. > > So now we have similar symptoms in qemu 2.8.1, 2.9, and 2.12.50 on > FreeBSD and Linux hosts. > > Seems to point toward an issue between the FreeBSD guest and qemu > keyboard interface. > > I'd love to see this fixed so port maintainers like me have an easy > way to fix ppc-specific issues. > Straight emulation like this is probably too sluggish for many uses, > but it's more than > adequate for testing port builds on decent host hardware. > > Cheers, > >     JB > > On 07/11/18 13:14, Jason Bacon wrote: >> >> I just heard back from the qemu maintainer.  He's going to upgrade >> qemu to the latest release and try booting >> FreeBSD-ppc. >> >> On 07/11/18 10:01, Chuck Tuffli wrote: >>> I'm seeing similar failures trying to run the ppc64 images under qemu. >>> For me, the boot seemingly hangs here (full log [1]): >>> Booting [/boot/kernel/kernel]... >>> Kernel entry at 0x1024e0 ... >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Copyright (c) 1992-2018 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 12.0-CURRENT #0 r336134: Mon Jul  9 18:14:23 UTC 2018 >>> root@releng3.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc64/sys/GENERIC64 >>> >>> powerpc >>> gcc version 4.2.1 20070831 patched [FreeBSD] >>> WARNING: WITNESS option enabled, expect reduced performance. >>> WARNING: Running on a broken hypervisor that does not support >>> mandatory H_CLEAR_MOD and H_CLEAR_REF hypercalls. Performance will be >>> suboptimal. >>> VT: init without driver. >>> cpu0: IBM POWER8 revision 2.0, 1000.00 MHz >>> cpu0: Features >>> dc007182 >>> cpu0: Features2 ef000000 >>> real memory  = 6396997632 (6100 MB) >>> avail memory = 6158659584 (5873 MB) >>> ... >>> cpu0: on cpulist0 >>> rtas0: on ofwbus0 >>> rtas0: registered as a time-of-day clock, resolution 0.002000s >>> Timecounter "timebase" frequency 512000000 Hz quality 0 >>> Event timer "decrementer" frequency 512000000 Hz quality 1000 >>> Timecounters tick every 1.000 msec >>> >>> >>> This is running qemu 2.12.50 from git with the following command  line: >>> >>> ppc64-softmmu/qemu-system-ppc64 -m 6G \ >>>      -drive >>> file=/usr/home/ctuffli/vms/bsdppc/freebsd-12.qcow2,format=qcow2 \ >>>      -drive >>> id=swap,file=/usr/home/ctuffli/vms/bsd/swap.raw,format=raw \ >>>      -drive >>> media=cdrom,file=/usr/home/ctuffli/vms/bsdppc/FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-bootonly.iso,readonly >>> \ >>>      -drive >>> id=n0,if=none,file=/usr/home/ctuffli/vms/ogt/ns0.img,format=raw \ >>>      -device nvme,drive=n0,serial=bada55 \ >>>      -netdev >>> tap,id=tap1,br=bridge0,script=/usr/home/ctuffli/dev/qemu.git/qemu-ifup,downscript=/usr/home/ctuffli/dev/qemu.git/qemu-ifdown >>> \ >>>      -device e1000,netdev=tap1 \ >>>      -nographic -vga none -mem-prealloc -boot d >>> >>> Any thoughts? TIA >>> >>> --chuck >>> >>> [1] https://pastebin.com/iscPCSCi >>> _______________________________________________ >>> freebsd-ppc@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> >> > > -- Earth is a beta site.