From owner-freebsd-ppc@freebsd.org Sun Feb 24 17:20:13 2019 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 49C0D15047B1 for ; Sun, 24 Feb 2019 17:20:12 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D71477548F for ; Sun, 24 Feb 2019 17:20:10 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-ot1-x333.google.com with SMTP id 32so5888888ota.12 for ; Sun, 24 Feb 2019 09:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:cc:references:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=ZvX2FIOCz/Y3mZ7dIngCkPZB4t329Yv+PDSPBH27no8=; b=NH+11/pt7NCAH5wVL12Gn2Vk0+qlAk7ouKcoL88hfJXlBG+EauSjbVYlsmn8xMuozg oaMKkplWUqd9tKpjy3Cvy3drKFl8XpDMKklkYDHPD9KNwc4MCv/vyqO5qQY1056gX7kv coABQQWFDdz2g4aREMkBLcWKzOcWKjsHvAFQhs/N+adey1TzNMPyI1pBMj2vkhE2dd2q qnqZCjqSCE/xnLFFbuSu3h/P+3EWnodD5MpoaFVlrXqUhsRlxn3xoAXmKH8c6qogg8Zj pAYyjPhfS9/mYNFlDohgfS8j5W+dFZ2goaTdnwVUPoBjzYs4+TFt8FeQqee94UT/HtbD 7b7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=ZvX2FIOCz/Y3mZ7dIngCkPZB4t329Yv+PDSPBH27no8=; b=VpM0MmDorm9LFPnKK7ylvAXN98uMcWXIj6b7z4YeC4Qi3h77hokR33XIorrZPxSqsY 3R4Rkf5a5vBfiaQbMbHZcg+r7MpU6dqMfr2jEAN3hgh/49pvbe1BBzh+fMT1y9QIsM23 fyk8kis5E1NG2st4SJavXgF3DYnFbdEiVEoySujyQhT3ZHxtQQ4SL+TSGx+yzXlwCSLJ zslieOFLm0pbYHmVoTn7sXyU8dO3pWZ2T9kIWQQDrDP9YB001JiMttOFQaf9ZAcXpnv9 HRykjDCspAcfkQiMQRnHOjM6LwVpRJlO0QeOWhYn70JsTVbIpJRPFxuARnPdklZzy+X1 TMBA== X-Gm-Message-State: AHQUAuYxF34/8xsuI+ZEqtSHufc+682R8NL8GeIT9hp6q0kVmRiycEV6 wfzq1MqAwj/34d3vuK5arpJ9boNf X-Google-Smtp-Source: AHgI3IZhRPQW3rnj7zwYnmlz2oJCBwsYivWt+Ubn5jj4FgaKP5/0yQdEPAsrSQXQVFkRjOL8ZoI9OQ== X-Received: by 2002:a9d:67cb:: with SMTP id c11mr9700471otn.103.1551028809325; Sun, 24 Feb 2019 09:20:09 -0800 (PST) Received: from cray.acadix.biz (cpe-174-102-163-140.wi.res.rr.com. [174.102.163.140]) by smtp.gmail.com with ESMTPSA id h30sm3368688oth.19.2019.02.24.09.20.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 09:20:07 -0800 (PST) Subject: Re: QEMU From: Jason Bacon Cc: freebsd-ppc@freebsd.org References: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> <8213518b-14a5-aac2-bcbb-529e49c4f044@gmail.com> <9f96d3ac-ada3-8f41-6c2c-e6fab80e49e9@gmail.com> Message-ID: <6ebb36d4-8f6e-e4a1-3d96-094c1f883a6f@gmail.com> Date: Sun, 24 Feb 2019 11:20:06 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <9f96d3ac-ada3-8f41-6c2c-e6fab80e49e9@gmail.com> Content-Language: en-US X-Rspamd-Queue-Id: D71477548F X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=NH+11/pt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bacon4000@gmail.com designates 2607:f8b0:4864:20::333 as permitted sender) smtp.mailfrom=bacon4000@gmail.com X-Spamd-Result: default: False [-4.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; SUBJ_ALL_CAPS(0.30)[4]; MISSING_TO(2.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; IP_SCORE(-2.68)[ip: (-8.71), ipnet: 2607:f8b0::/32(-2.65), asn: 15169(-2.00), country: US(-0.07)]; RCVD_IN_DNSWL_NONE(0.00)[3.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 17:20:13 -0000 On 2/23/19 7:49 AM, Jason Bacon wrote: > On 7/21/18 1:06 PM, Jason Bacon wrote: >> On 7/19/18 4:32 PM, Jason Bacon wrote: >>> On 07/19/18 14:09, Chuck Tuffli wrote: >>>> On Thu, Jul 12, 2018 at 8:09 AM, 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. >>>> FWIW, on an Ubuntu 14.04 system with qemu-system-ppc64 version 2.0.0, >>>> the ppc64 snapshot ISO of 12.0, the OS appears to install correctly >>>> and subsequently boots correctly. >>>> >>>> --chuck >>> That's worth a lot, actually. >>> >>> The 12.0 snapshot also works on my FreeBSD 11.1 host with the stock >>> qemu package.  Both keyboard and mouse input are processed. >>> >>> Interestingly, though, while 12.0 works, it seems to be a lot slower >>> than 11.1 under qemu.  Below are times to get to the install >>> screen.  ( I just close the qemu window as soon as it reaches that >>> point, where 11.1 won't accept keyboard input. ) >>> >>> FreeBSD cray.acadix  bacon ~ 999: time qemu-ppc install >>> freebsd-ppc.img >>> FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso >>> + [ ! -e freebsd-ppc.img ] >>> + qemu-system-ppc64 -cdrom >>> FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso >>> -drive 'file=freebsd-ppc.img,format=raw' -boot d >>> 217.327u 3.455s 4:21.41 84.4%    9628+6292k 94+2io 476pf+0w >>> >>> >>> FreeBSD cray.acadix  bacon ~ 1000: time qemu-ppc install >>> freebsd-ppc.img Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso >>> + [ ! -e freebsd-ppc.img ] >>> + qemu-system-ppc64 -cdrom >>> Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso -drive >>> 'file=freebsd-ppc.img,format=raw' -boot d >>> 123.001u 1.748s 2:47.05 74.6%    9643+6302k 556+3io 0pf+0w >>> >>> Maybe these data will provide some clues to the ppc base developers... >>> >> I'm getting "lock order reversal" errors followed by stack traces >> when running portsnap.  Bleeding-edge 12.0 issue? >> > > Poked around at this a bit more and found a workaround.  It seems > FreeBSD doesn't support the latest default PPC machine in qemu. > Available options are listed below.  After switching from the default > pseries-2.6 to pseries-2.5, FreeBSD 12.0 works flawlessly. > > I attached a script I'm using to install and then boot the VM. > > So now there's an easy way to test/fix ports for PPC64.  Runs about as > fast as a 486, but that's fine since we can install dependencies via > "pkg install" to reduce build time. > > > FreeBSD cray.acadix  bacon ~ 1010: qemu-system-ppc -machine help > Supported machines are: > bamboo               bamboo > g3beige              Heathrow based PowerMAC (default) > mac99                Mac99 based PowerMAC > mpc8544ds            mpc8544ds > none                 empty machine > ppce500              generic paravirt e500 platform > prep                 PowerPC PREP platform > ref405ep             ref405ep > taihu                taihu > virtex-ml507         Xilinx Virtex ML507 reference design > FreeBSD cray.acadix  bacon ~ 1011: qemu-system-ppc64 -machine help > Supported machines are: > bamboo               bamboo > g3beige              Heathrow based PowerMAC > mac99                Mac99 based PowerMAC > mpc8544ds            mpc8544ds > none                 empty machine > ppce500              generic paravirt e500 platform > prep                 PowerPC PREP platform > pseries-2.1          pSeries Logical Partition (PAPR compliant) > pseries-2.2          pSeries Logical Partition (PAPR compliant) > pseries-2.3          pSeries Logical Partition (PAPR compliant) > pseries-2.4          pSeries Logical Partition (PAPR compliant) > pseries-2.5          pSeries Logical Partition (PAPR compliant) > pseries              pSeries Logical Partition (PAPR compliant) (alias > of pseries-2.6) > pseries-2.6          pSeries Logical Partition (PAPR compliant) (default) > ref405ep             ref405ep > taihu                taihu > virtex-ml507         Xilinx Virtex ML507 reference design > > Just to see how far I could push qemu, I tried running sysutils/desktop-installer.  It actually worked well after a few minor fixes and answering "no" to using the LATEST packages instead of quarterly.  Took a few hours whereas it generally finishes a lightweight desktop in about 20 minutes on bare metal with a fast Internet connection. Lumina is apparently broken on powerpc64, but LXDE worked fine.  It fails to start from XDM, but this may not be powerpc-specific.  I've seen issues like this before due to changes in the desktop env's startup scripts.  It starts up fine using startx. The working version is in my work-in-progress collection:     https://github.com/outpaddling/freebsd-ports-wip If I had a Mac G5 I'd do more testing, but it will probably work with a supported video card. Cheers,     JB -- Earth is a beta site.