From owner-freebsd-ppc@freebsd.org Thu Jul 12 15:09:37 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 73E061042F9C for ; Thu, 12 Jul 2018 15:09:37 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (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 02C1E964E3 for ; Thu, 12 Jul 2018 15:09:37 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-io0-x244.google.com with SMTP id k3-v6so28526373iog.3 for ; Thu, 12 Jul 2018 08:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=fbugYV9ixxA1Sd9TvdVv0reJ5YUPD218cGE1RyUWa0A=; b=FeR/2AyQbv4Cw7YMw7lDizEXJqpGou+ZPgxeptR7a3cbUiEe5fNLYPVqbxI5gvTfQ0 FC87O2LkLoUTT7XyeG7IqYkRPLFyp4XsxCUGv9lObdsJR8wWSShxHDcaoroh6hVVf77O j9JmE1dVHM7YDt224+cTLr4FFQ+R/zI3eWpaNbsqjhuKjrJOwpsh5RHVBd07EPpmg9u+ 8rc9hWNIgV/a/DJTyUGeimgPyKI23vOubMD9sHtv5s4g07qjRvByFOSAk00cjRl33PGN pNEDDVomUwSQMxBml75Odtc/MHOrZ/+y4yKJoecKJjsaphjDUgyMEHylHCtyUTOGKjdD UuFA== 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:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=fbugYV9ixxA1Sd9TvdVv0reJ5YUPD218cGE1RyUWa0A=; b=VIGK6yLEITPKnSA9hl6fBwp8nOFtLouhkgJ1AjTc75Z3g0RxcJqZhVnJeQZuqsVgiE b/x272W5bsI+1UIN0mZwlOF0cqFdyb3jTSYuJ29Cr/n7iuyyNL1E5cW91s3b50OFvEkm yHjUYDsun3abRHki9iIwPkTyw176ay2H/MmXeza7u/wSEsuFGswvu0E9wTgFrxt7MOHd qgfJY+GUdC3ieEklnHA3ZToUKHHtUFjsVISN2Qc/cziCeXmEnkkQBv8J3BBxJg3V9002 7jfigY0rA8s78CaAs6XXCPmvJWkteEMVcahhw+qCndmoI1DrkFUiQvqn8M657wmQ7Yhx lEww== X-Gm-Message-State: AOUpUlHiStjWXiXvNGiUG97xzB7TSQueazbTDtI2wbRXoLWKFLshf5v2 aFbhiL2Ccr+yNZl2IKeFIMQ= X-Google-Smtp-Source: AAOMgpfbyJIk4Rz4bpt9+jiQk3W3rKS4vt0HhOw6FrW0NsKxYOO+jqF6n85JYkjundkoe79DvBwq0g== X-Received: by 2002:a6b:1c07:: with SMTP id c7-v6mr29593169ioc.298.1531408176293; Thu, 12 Jul 2018 08:09:36 -0700 (PDT) Received: from imacbsd.acadix.biz ([2605:a000:bc45:5f00:216:cbff:feb9:145]) by smtp.gmail.com with ESMTPSA id r20-v6sm6481895iog.85.2018.07.12.08.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 08:09:35 -0700 (PDT) Subject: Re: QEMU From: Jason Bacon To: freebsd-ppc@freebsd.org References: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> Cc: Muhammad Moinur Rahman Message-ID: <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> Date: Thu, 12 Jul 2018 10:09:34 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 15:09:37 -0000 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.