From owner-freebsd-ppc@freebsd.org Mon Aug 29 20:31:53 2016 Return-Path: Delivered-To: freebsd-ppc@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 17F15BC8E19 for ; Mon, 29 Aug 2016 20:31:53 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 055043EE for ; Mon, 29 Aug 2016 20:31:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from zeppelin.tachypleus.net (airbears2-136-152-142-124.airbears2.berkeley.edu [136.152.142.124]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u7TKVo1s002593 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 29 Aug 2016 13:31:50 -0700 Subject: Re: PPC64 on IBM KVM saga: 11 CURRENT BETA 4 To: freebsd-ppc@freebsd.org References: <3rkxKP1cQczRRqR@baobab.bilink.it> <3s4y5N27LPz1cXL0@baobab.bilink.it> <3s5Tq62T6ZzRRrN@baobab.bilink.it> <70d56fc0-87f2-873d-5742-0bf6f0962890@freebsd.org> <3s6j6v5Sxnz1cXL0@baobab.bilink.it> <3s7CtJ43tXzRRr4@baobab.bilink.it> From: Nathan Whitehorn Message-ID: Date: Mon, 29 Aug 2016 13:31:50 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <3s7CtJ43tXzRRr4@baobab.bilink.it> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVZcpJB+yRk+LbjxWn5xUbJItUZox2Or6/2GM3gteVtaNB2YrU5E0t2RyBbr5QRsQ+5frrB6Hqz5yFkIDdySVBEXlr/aPQzmcX8= X-Sonic-ID: C;xvNwnSdu5hGKkqDx2xNB0g== M;duWrnSdu5hGKkqDx2xNB0g== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 20:31:53 -0000 On 08/08/16 03:13, Luciano Mannucci wrote: > On Sun, 7 Aug 2016 16:07:42 +0200 > Luciano Mannucci wrote: > >> Ok, I added the URLs to the PR. > I tried with the BETA 4. > Not surprisingly, I've got the very same results. > > Shoul I update the PR? > > Thanks again && again, > > Luciano. Thanks for pushing on this. I am able to reproduce the issue now with certain versions of QEMU and will try to get a fix in. -Nathan From owner-freebsd-ppc@freebsd.org Tue Aug 30 00:32:51 2016 Return-Path: Delivered-To: freebsd-ppc@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 F298BBC8681 for ; Tue, 30 Aug 2016 00:32:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DB038B3C for ; Tue, 30 Aug 2016 00:32:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7U0WoGY051763 for ; Tue, 30 Aug 2016 00:32:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 211599] Once installed, 11.0-Beta3 won't boot on PPC64 Power8 under IBM KVM Date: Tue, 30 Aug 2016 00:32:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nwhitehorn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 00:32:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211599 --- Comment #10 from Nathan Whitehorn --- (In reply to Luciano Mannucci from comment #9) Could you please try running the following command from the SLOF prompt? boot disk:0 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Tue Aug 30 00:48:17 2016 Return-Path: Delivered-To: freebsd-ppc@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 347C3BC88EE for ; Tue, 30 Aug 2016 00:48:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 240F061 for ; Tue, 30 Aug 2016 00:48:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7U0mGQj077508 for ; Tue, 30 Aug 2016 00:48:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 211599] Once installed, 11.0-Beta3 won't boot on PPC64 Power8 under IBM KVM Date: Tue, 30 Aug 2016 00:48:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 00:48:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211599 --- Comment #11 from commit-hook@freebsd.org --- A commit references this bug: Author: nwhitehorn Date: Tue Aug 30 00:47:21 UTC 2016 New revision: 305036 URL: https://svnweb.freebsd.org/changeset/base/305036 Log: Some versions of SLOF do not append the partition number to the boot device argument to the stage-1 bootloader. In such cases, boot1 would only try to read the entire device rather than checking for partitions. Instead of panic'ing, fall back to reading the partitions as normal in such situations. This was preventing boot of installed systems on some versions of PowerKVM. PR: kern/211599 MFC after: 2 days Changes: head/sys/boot/powerpc/boot1.chrp/boot1.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Tue Aug 30 06:47:01 2016 Return-Path: Delivered-To: freebsd-ppc@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 E5743BC8453 for ; Tue, 30 Aug 2016 06:47:01 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-26.reflexion.net [208.70.210.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 87C6218A for ; Tue, 30 Aug 2016 06:47:00 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 8593 invoked from network); 30 Aug 2016 06:47:45 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 30 Aug 2016 06:47:45 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 02:47:02 -0400 (EDT) Received: (qmail 7322 invoked from network); 30 Aug 2016 06:47:02 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 30 Aug 2016 06:47:02 -0000 X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 6B4E81C408D for ; Mon, 29 Aug 2016 23:46:51 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at least for TARGET_ARCH=powerpc and powerpc64 (gcc/g++ mismatch) Date: Mon, 29 Aug 2016 23:46:57 -0700 References: To: FreeBSD PowerPC ML Message-Id: <956E5C77-9B86-46D3-8935-7B4BF3203236@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 06:47:02 -0000 It looks like Hal Finkel looked at llvm bug 26761 enough to reclassify = it from llvm Codegen for clang 3.8 to "Common Code Generator Code" for = libraries on trunk. (Not a claim of a fix, just a reclassification.) = This is one of the bugs listed in "[Bug 25780] [META] Using Clang as the = FreeBSD/ppc system compiler" as known to be blocking the use of clang = for powerpc. With the recent addition of -mlongcall [llvm bug 19098 is now listed as = fixed on trunk], this may hint that some clang related work is = overlapping with what FreeBSD happens to need for powerpc64 and/or = powerpc. As no comments were added I'm not sure if it was looked at enough for my = original analysis of the code generated to have any independent = verification yet. Some of my original submittals got a cross check when = I submitted them and the comments reflect the process in such cases. = This one did not get such activity at the time or since. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) Date: August 29, 2016 at 7:50:28 PM PDT To: Hal Finkel changed bug 26761=20 What Removed Added CC hfinkel at anl.gov Component LLVM Codegen Common Code Generator Code =20 Version 3.8 trunk Assignee unassignedclangbugs@nondot.org = unassignedbugs@nondot.org Product clang libraries You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-ppc@freebsd.org Tue Aug 30 06:55:02 2016 Return-Path: Delivered-To: freebsd-ppc@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 D63F4BC85EC for ; Tue, 30 Aug 2016 06:55:02 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-21.reflexion.net [208.70.210.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C15D64A for ; Tue, 30 Aug 2016 06:55:01 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 22598 invoked from network); 30 Aug 2016 06:29:04 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 30 Aug 2016 06:29:04 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 02:28:23 -0400 (EDT) Received: (qmail 26383 invoked from network); 30 Aug 2016 06:28:23 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 30 Aug 2016 06:28:23 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id DE3681C408D; Mon, 29 Aug 2016 23:28:12 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 25780] [META] Using Clang as the FreeBSD/ppc system compiler [one item fixed on trunk] Date: Mon, 29 Aug 2016 23:28:18 -0700 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 06:55:02 -0000 llvm bug 19098 "clang and llvm should support -mminimal-toc and = -mlongcall for PowerPC" has been listed as fixed on llvm's trunk. That leaves about 5 pending bugs in the list that the META bug 25780 = currently has. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 25780] [META] Using Clang as the FreeBSD/ppc system = compiler Date: August 29, 2016 at 6:08:22 PM PDT To: Bug 25780 depends on bug 19098, which changed state.=20 What Removed Added Status NEW RESOLVED Resolution --- FIXED You are receiving this mail because: =E2=80=A2 You are on the CC list for the bug. From owner-freebsd-ppc@freebsd.org Tue Aug 30 10:13:01 2016 Return-Path: Delivered-To: freebsd-ppc@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 DDAE9B7885F for ; Tue, 30 Aug 2016 10:13:01 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD28BA9 for ; Tue, 30 Aug 2016 10:13:01 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3sNkdL4yBRzRRqV for ; Tue, 30 Aug 2016 12:04:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id cW5LLeoP6yNg for ; Tue, 30 Aug 2016 12:04:22 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3sNkdL4GXmzRRqR for ; Tue, 30 Aug 2016 12:04:22 +0200 (CEST) Received: from mordeus (unknown [192.168.45.6]) by hermes.mcs.it (Postfix) with ESMTP id 41E3E1B7580 for ; Tue, 30 Aug 2016 12:04:14 +0200 (CEST) Date: Tue, 30 Aug 2016 12:04:14 +0200 From: Luciano Mannucci To: freebsd-ppc@freebsd.org Subject: Re: [Bug 211599] Once installed, 11.0-Beta3 won't boot on PPC64 Power8 under IBM KVM In-Reply-To: References: X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <3sNkdL4GXmzRRqR@baobab.bilink.it> X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 10:13:02 -0000 On Tue, 30 Aug 2016 00:32:51 +0000 bugzilla-noreply@freebsd.org wrote: > Could you please try running the following command from the SLOF prompt? > > boot disk:0 Yes! I does boot! Many thanks! Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/ From owner-freebsd-ppc@freebsd.org Tue Aug 30 14:08:46 2016 Return-Path: Delivered-To: freebsd-ppc@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 75B08BC7D58 for ; Tue, 30 Aug 2016 14:08:46 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3C3D279 for ; Tue, 30 Aug 2016 14:08:45 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3sNr3S6mCKz1cXL1 for ; Tue, 30 Aug 2016 16:08:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id 5sDSNGmcQLVp for ; Tue, 30 Aug 2016 16:08:52 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3sNr3S632tz1cXKx for ; Tue, 30 Aug 2016 16:08:52 +0200 (CEST) Received: from mordeus (unknown [192.168.45.6]) by hermes.mcs.it (Postfix) with ESMTP id 726BE1B7515 for ; Tue, 30 Aug 2016 16:08:44 +0200 (CEST) Date: Tue, 30 Aug 2016 16:08:44 +0200 From: Luciano Mannucci To: freebsd-ppc@freebsd.org Subject: Re: PPC64 on IBM KVM saga: 11.0 RC2 In-Reply-To: References: <3rkxKP1cQczRRqR@baobab.bilink.it> <3s4y5N27LPz1cXL0@baobab.bilink.it> <3s5Tq62T6ZzRRrN@baobab.bilink.it> <70d56fc0-87f2-873d-5742-0bf6f0962890@freebsd.org> <3s6j6v5Sxnz1cXL0@baobab.bilink.it> <3s7CtJ43tXzRRr4@baobab.bilink.it> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <3sNr3S632tz1cXKx@baobab.bilink.it> X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 14:08:46 -0000 On Mon, 29 Aug 2016 13:31:50 -0700 Nathan Whitehorn wrote: > Thanks for pushing on this. I am able to reproduce the issue now with > certain versions of QEMU and will try to get a fix in. Many thanks! I had a go with 11.0-RC2, and I noticed that the "Sparse CPU" problem seems to be still (or again) there... Thanks again, Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/ From owner-freebsd-ppc@freebsd.org Tue Aug 30 14:18:53 2016 Return-Path: Delivered-To: freebsd-ppc@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 BE588BC804D for ; Tue, 30 Aug 2016 14:18:53 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D3DC826 for ; Tue, 30 Aug 2016 14:18:53 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from zeppelin.tachypleus.net (75-101-50-44.static.sonic.net [75.101.50.44]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u7UEIjj6020017 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 30 Aug 2016 07:18:46 -0700 Subject: Re: PPC64 on IBM KVM saga: 11.0 RC2 To: freebsd-ppc@freebsd.org References: <3rkxKP1cQczRRqR@baobab.bilink.it> <3s4y5N27LPz1cXL0@baobab.bilink.it> <3s5Tq62T6ZzRRrN@baobab.bilink.it> <70d56fc0-87f2-873d-5742-0bf6f0962890@freebsd.org> <3s6j6v5Sxnz1cXL0@baobab.bilink.it> <3s7CtJ43tXzRRr4@baobab.bilink.it> <3sNr3S632tz1cXKx@baobab.bilink.it> From: Nathan Whitehorn Message-ID: <6a5c265b-a2ca-5fd3-d53f-b7e6d83ef308@freebsd.org> Date: Tue, 30 Aug 2016 07:18:45 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <3sNr3S632tz1cXKx@baobab.bilink.it> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVahhG94uup964GXsRs51CQMH8tFjqgUWJulM5oddcKc/FwwRPm+gwcXElXSfnWorSpULcGdSZ8ZmkJTvqAnLLd2khsdIQvayRk= X-Sonic-ID: C;umCMqbxu5hG+lq/hcgQksw== M;2Pbcqbxu5hG+lq/hcgQksw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 14:18:53 -0000 On 08/30/16 07:08, Luciano Mannucci wrote: > On Mon, 29 Aug 2016 13:31:50 -0700 > Nathan Whitehorn wrote: > >> Thanks for pushing on this. I am able to reproduce the issue now with >> certain versions of QEMU and will try to get a fix in. > Many thanks! > > I had a go with 11.0-RC2, and I noticed that the "Sparse CPU" problem > seems to be still (or again) there... > > Thanks again, > > Luciano. That's disappointing. What is the error you get with RC2? -Nathan From owner-freebsd-ppc@freebsd.org Tue Aug 30 14:39:29 2016 Return-Path: Delivered-To: freebsd-ppc@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 10053BC86D4 for ; Tue, 30 Aug 2016 14:39:29 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id B685B67A for ; Tue, 30 Aug 2016 14:39:27 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3sNrkv15LHzRRqV for ; Tue, 30 Aug 2016 16:39:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id 84jPLbufILPZ for ; Tue, 30 Aug 2016 16:39:35 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3sNrkv0GXCzRRqS for ; Tue, 30 Aug 2016 16:39:35 +0200 (CEST) Received: from mordeus (unknown [192.168.45.6]) by hermes.mcs.it (Postfix) with ESMTP id 865591B7515 for ; Tue, 30 Aug 2016 16:39:26 +0200 (CEST) Date: Tue, 30 Aug 2016 16:39:26 +0200 From: Luciano Mannucci To: freebsd-ppc@freebsd.org Subject: Re: PPC64 on IBM KVM saga: 11.0 RC2 In-Reply-To: <6a5c265b-a2ca-5fd3-d53f-b7e6d83ef308@freebsd.org> References: <3rkxKP1cQczRRqR@baobab.bilink.it> <3s4y5N27LPz1cXL0@baobab.bilink.it> <3s5Tq62T6ZzRRrN@baobab.bilink.it> <70d56fc0-87f2-873d-5742-0bf6f0962890@freebsd.org> <3s6j6v5Sxnz1cXL0@baobab.bilink.it> <3s7CtJ43tXzRRr4@baobab.bilink.it> <3sNr3S632tz1cXKx@baobab.bilink.it> <6a5c265b-a2ca-5fd3-d53f-b7e6d83ef308@freebsd.org> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <3sNrkv0GXCzRRqS@baobab.bilink.it> X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 14:39:29 -0000 On Tue, 30 Aug 2016 07:18:45 -0700 Nathan Whitehorn wrote: > That's disappointing. What is the error you get with RC2? > -Nathan It seems pretty similar to the previous one. BTW, here it is: Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0xfe0c70+0x3fded0 syms=[0x8+0x13d310+0x8+0x13c5de] /boot/entropy size=0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 6 seconds... Type '?' for a list of commands, 'help' for more detailed help. OK boot -v Booting... Kernel entry at 0x1023c0 ... Copyright (c) 1992-2016 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-RC2 #0 r304729: Wed Aug 24 11:51:45 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/powerpc.powerpc64/usr/src/sys/GENERIC64 powerpc gcc version 4.2.1 20070831 patched [FreeBSD] VT: init without driver. Preloaded elf kernel "/boot/kernel/kernel" at 0x175b000. Preloaded /boot/entropy "/boot/entropy" at 0x175bd18. cpu0: IBM POWER8E revision 2.1, 3425.00 MHz cpu0: Features dc005180 cpu0: Features2 c2000000 real memory = 2110382080 (2012 MB) available KVA = 7650267135 (7295 MB) Physical memory chunk(s): 0x0000000000025000 - 0x00000000000fffff, 897024 bytes (219 pages) 0x0000000001811000 - 0x0000000001bfffff, 4124672 bytes (1007 pages) 0x0000000001c40000 - 0x0000000001c3ffff, 0 bytes (0 pages) 0x0000000003a49000 - 0x000000007ae6efff, 2000838656 bytes (488486 pages) 0x000000007ffa0000 - 0x000000007ffaffff, 65536 bytes (16 pages) 0x000000007ffb5000 - 0x000000007ffeffff, 241664 bytes (59 pages) 0x000000007fff1000 - 0x000000007fffffff, 61440 bytes (15 pages) 0x000000000175d000 - 0x00000000017fffff, 667648 bytes (163 pages) avail memory = 1992290304 (1899 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0: dev=7e5e0090 (BSP) cpu8: dev=7e5e08b0 cpu16: dev=7e5e10d0 cpu24: dev=7e5e18f0 random: read 4096 bytes from preloaded cache random: unblocking device. ULE: setup cpu 0 ULE: setup cpu 8 ULE: setup cpu 16 ULE: setup cpu 24 random: entropy device external interface snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 firmware: 'isp_1040' version 1: 22944 bytes loaded at 0xdd5d8c firmware: 'isp_1080' version 1: 31350 bytes loaded at 0xddb72c firmware: 'isp_12160' version 1: 28050 bytes loaded at 0xde31a2 firmware: 'isp_2100' version 1: 76770 bytes loaded at 0xde9f34 firmware: 'isp_2200' version 1: 84566 bytes loaded at 0xdfcb16 firmware: 'isp_2300' version 1: 125252 bytes loaded at 0xe1156c firmware: 'isp_2322' version 1: 120814 bytes loaded at 0xe2feb0 firmware: 'isp_2400' version 1: 204384 bytes loaded at 0xe51218 firmware: 'isp_2500' version 1: 223908 bytes loaded at 0xe90c48 nfslock: pseudo-device kbd0 at kbdmux0 mem: null: openfirm: random: harvesting attach, 8 bytes (4 bits) from nexus0 ofwbus0: on nexus0 random: harvesting attach, 8 bytes (4 bits) from ofwbus0 xicp0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from xicp0 cpulist0: on ofwbus0 cpu0: on cpulist0 random: harvesting attach, 8 bytes (4 bits) from cpu0 cpu1: on cpulist0 random: harvesting attach, 8 bytes (4 bits) from cpu1 cpu2: on cpulist0 random: harvesting attach, 8 bytes (4 bits) from cpu2 cpu3: on cpulist0 random: harvesting attach, 8 bytes (4 bits) from cpu3 random: harvesting attach, 8 bytes (4 bits) from cpulist0 pcib0: on ofwbus0 pci0: on pcib0 pci0: domain=0, physical bus=0 found-> vendor=0x1af4, dev=0x1002, revid=0x00 domain=0, bus=0, slot=3, func=0 class=00-ff-00, hdrtype=0x00, mfdev=0 cmdreg=0x0100, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 map[10]: type I/O Port, range 32, base 0x20, size 5, port disabled found-> vendor=0x106b, dev=0x003f, revid=0x00 domain=0, bus=0, slot=2, func=0 class=0c-03-10, hdrtype=0x00, mfdev=0 cmdreg=0x0106, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 map[10]: type Memory, range 32, base 0xc0000000, size 8, enabled found-> vendor=0x10ec, dev=0x8139, revid=0x20 domain=0, bus=0, slot=1, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0100, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 map[10]: type I/O Port, range 32, base 0x100, size 8, port disabled map[14]: type Memory, range 32, base 0xc0000100, size 8, memory disabled pci0: at device 3.0 (no driver attached) ohci0: mem 0xc0000000-0xc00000ff irq 4100 at device 2.0 on pci0 ohci0: Mapping IOMMU domain 0x80000000 ofw_pci mapdev: start 100e0000000, len 256 usbus0 on ohci0 ohci0: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus0 random: harvesting attach, 8 bytes (4 bits) from ohci0 re0: port 0x100-0x1ff mem 0xc0000100-0xc00001ff irq 4099 at device 1.0 on pci0 ofw_pci mapdev: start 100e0000100, len 256 re0: MSI count : 0 re0: MSI-X count : 0 re0: Chip rev. 0x74800000 re0: MAC rev. 0x00000000 re0: Mapping IOMMU domain 0x80000000 miibus0: on re0 rlphy0: PHY 0 on miibus0 rlphy0: OUI 0x000000, model 0x0000, rev. 0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow random: harvesting attach, 8 bytes (4 bits) from rlphy0 random: harvesting attach, 8 bytes (4 bits) from miibus0 re0: Using defaults for TSO: 65518/35/2048 re0: bpf attached re0: Ethernet address: 52:54:00:1a:cd:48 random: harvesting attach, 8 bytes (4 bits) from re0 random: harvesting attach, 8 bytes (4 bits) from pci0 random: harvesting attach, 8 bytes (4 bits) from pcib0 rtas0: on ofwbus0 rtas0: registered as a time-of-day clock (resolution 2000us, adjustment 0.001000000s) random: harvesting attach, 8 bytes (4 bits) from rtas0 vdevice0: on ofwbus0 vscsi0: irq 16781319 on vdevice0 vscsi0: Mapping IOMMU domain 0x2000 vscsi0: Queue depth 22 commands random: harvesting attach, 8 bytes (4 bits) from vscsi0 uart0: irq 16781320 on vdevice0 random: harvesting attach, 8 bytes (4 bits) from uart0 random: harvesting attach, 8 bytes (4 bits) from vdevice0 ofwbus0: compat linux,kvm (no driver attached) procfs registered Timecounter "timebase" frequency 512000000 Hz quality 0 Event timer "decrementer" frequency 512000000 Hz quality 1000 Timecounters tick every 1.000 msec vlan: initialized, using hash tables with chaining lo0: bpf attached tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384 usbus0: 12Mbps Full Speed USB v1.0 (probe0:vscsi0:0:0:0): Down reving Protocol Version from 6 to 5? ugen0.1: at usbus0 uhub0: on usbus0 (probe0:vscsi0:0:0:1): Down reving Protocol Version from 6 to 5? pass0 at vscsi0 bus 0 scbus0 target 0 lun 0 pass0: Fixed Direct Access SPC-3 SCSI device pass0: 150.000MB/s transfers pass1 at vscsi0 bus 0 scbus0 target 0 lun 1 pass1: Removable CD-ROM SPC-3 SCSI device pass1: 150.000MB/s transfers cd0 at vscsi0 bus 0 scbus0 target 0 lun 1 cd0: Removable CD-ROM SPC-3 SCSI device cd0: 150.000MB/s transfers cd0: 592MB (303319 2048 byte sectors) da0 at vscsi0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-3 SCSI device da0: 150.000MB/s transfers da0: 20480MB (41943040 512 byte sectors) Adding CPU 0, pir=68, awake=1 Waking up CPU 8 (dev=7e5e08b0) Adding CPU 8, pir=860, awake=1 Waking up CPU 16 (dev=7e5e10d0) Adding CPU 16, pir=860, awake=1 Waking up CPU 24 (dev=7e5e18f0) Adding CPU 24, pir=860, awake=1 SMP: AP CPU #24 launched SMP: AP CPU #8 launched SMP: AP CPU #16 launched spin lock 0x1250900 (sched lock 0) held by 0x48f89c0 (tid 100052) too long spin lock 0x1250900 (sched lock 0) held by 0x48f89c0 (tid 100052) too long timeout stopping cpus panic: spin lock held too long cpuid = 8 KDB: stack backtrace: #0 0x6144fc at ??+0 #1 0x614598 at ??+0 #2 0x5eac60 at ??+0 #3 0x5eaef4 at ??+0 #4 0x65d1a0 at ??+0 #5 0x661040 at ??+0 #6 0x6240c0 at ??+0 #7 0x65ef18 at ??+0 #8 0x67b658 at ??+0 #9 0x679398 at ??+0 #10 0x67c03c at ??+0 #11 0x5b233c at ??+0 #12 0xa6c620 at ??+0 #13 0xa6c4f4 at ??+0 Uptime: 1s timeout stopping cpus panic: spin lock held too long cpuid = 16 Uptime: 1s Obviously, with only one CPU everything seems fine... Cheers, Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/ From owner-freebsd-ppc@freebsd.org Tue Aug 30 14:51:18 2016 Return-Path: Delivered-To: freebsd-ppc@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 6C4D0BC8DD7 for ; Tue, 30 Aug 2016 14:51:18 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 555AEB0 for ; Tue, 30 Aug 2016 14:51:17 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from zeppelin.tachypleus.net (75-101-50-44.static.sonic.net [75.101.50.44]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u7UEpFZT017713 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 30 Aug 2016 07:51:16 -0700 Subject: Re: PPC64 on IBM KVM saga: 11.0 RC2 To: freebsd-ppc@freebsd.org References: <3rkxKP1cQczRRqR@baobab.bilink.it> <3s4y5N27LPz1cXL0@baobab.bilink.it> <3s5Tq62T6ZzRRrN@baobab.bilink.it> <70d56fc0-87f2-873d-5742-0bf6f0962890@freebsd.org> <3s6j6v5Sxnz1cXL0@baobab.bilink.it> <3s7CtJ43tXzRRr4@baobab.bilink.it> <3sNr3S632tz1cXKx@baobab.bilink.it> <6a5c265b-a2ca-5fd3-d53f-b7e6d83ef308@freebsd.org> <3sNrkv0GXCzRRqS@baobab.bilink.it> From: Nathan Whitehorn Message-ID: Date: Tue, 30 Aug 2016 07:51:15 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <3sNrkv0GXCzRRqS@baobab.bilink.it> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVa79qgEs8oaaMheHjwP3+zwhjzofftoMG6fJu8L0F9y5GxEfksJdt4OjuoaGZc6kh+JGkM3vMfE/Mxo44x88h6kDqUbm6PPaPE= X-Sonic-ID: C;AuOhM8Fu5hGu2a/hcgQksw== M;MhHpM8Fu5hGu2a/hcgQksw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 14:51:18 -0000 On 08/30/16 07:39, Luciano Mannucci wrote: > On Tue, 30 Aug 2016 07:18:45 -0700 > Nathan Whitehorn wrote: > >> That's disappointing. What is the error you get with RC2? >> -Nathan > It seems pretty similar to the previous one. BTW, here it is: Thanks! I found the regression (some changes to subr_taskqueue) and have informed the author and release engineering. Hopefully this makes it into the release. -Nathan > > Loading /boot/defaults/loader.conf > /boot/kernel/kernel data=0xfe0c70+0x3fded0 syms=[0x8+0x13d310+0x8+0x13c5de] > /boot/entropy size=0x1000 > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel] in 6 seconds... > > Type '?' for a list of commands, 'help' for more detailed help. > OK boot -v > Booting... > Kernel entry at 0x1023c0 ... > Copyright (c) 1992-2016 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-RC2 #0 r304729: Wed Aug 24 11:51:45 UTC 2016 > root@releng2.nyi.freebsd.org:/usr/obj/powerpc.powerpc64/usr/src/sys/GENERIC64 powerpc > gcc version 4.2.1 20070831 patched [FreeBSD] > VT: init without driver. > Preloaded elf kernel "/boot/kernel/kernel" at 0x175b000. > Preloaded /boot/entropy "/boot/entropy" at 0x175bd18. > cpu0: IBM POWER8E revision 2.1, 3425.00 MHz > cpu0: Features dc005180 > cpu0: Features2 c2000000 > real memory = 2110382080 (2012 MB) > available KVA = 7650267135 (7295 MB) > Physical memory chunk(s): > 0x0000000000025000 - 0x00000000000fffff, 897024 bytes (219 pages) > 0x0000000001811000 - 0x0000000001bfffff, 4124672 bytes (1007 pages) > 0x0000000001c40000 - 0x0000000001c3ffff, 0 bytes (0 pages) > 0x0000000003a49000 - 0x000000007ae6efff, 2000838656 bytes (488486 pages) > 0x000000007ffa0000 - 0x000000007ffaffff, 65536 bytes (16 pages) > 0x000000007ffb5000 - 0x000000007ffeffff, 241664 bytes (59 pages) > 0x000000007fff1000 - 0x000000007fffffff, 61440 bytes (15 pages) > 0x000000000175d000 - 0x00000000017fffff, 667648 bytes (163 pages) > avail memory = 1992290304 (1899 MB) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpu0: dev=7e5e0090 (BSP) > cpu8: dev=7e5e08b0 > cpu16: dev=7e5e10d0 > cpu24: dev=7e5e18f0 > random: read 4096 bytes from preloaded cache > random: unblocking device. > ULE: setup cpu 0 > ULE: setup cpu 8 > ULE: setup cpu 16 > ULE: setup cpu 24 > random: entropy device external interface > snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] > feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 > firmware: 'isp_1040' version 1: 22944 bytes loaded at 0xdd5d8c > firmware: 'isp_1080' version 1: 31350 bytes loaded at 0xddb72c > firmware: 'isp_12160' version 1: 28050 bytes loaded at 0xde31a2 > firmware: 'isp_2100' version 1: 76770 bytes loaded at 0xde9f34 > firmware: 'isp_2200' version 1: 84566 bytes loaded at 0xdfcb16 > firmware: 'isp_2300' version 1: 125252 bytes loaded at 0xe1156c > firmware: 'isp_2322' version 1: 120814 bytes loaded at 0xe2feb0 > firmware: 'isp_2400' version 1: 204384 bytes loaded at 0xe51218 > firmware: 'isp_2500' version 1: 223908 bytes loaded at 0xe90c48 > nfslock: pseudo-device > kbd0 at kbdmux0 > mem: > null: > openfirm: > random: harvesting attach, 8 bytes (4 bits) from nexus0 > ofwbus0: on nexus0 > random: harvesting attach, 8 bytes (4 bits) from ofwbus0 > xicp0: on ofwbus0 > random: harvesting attach, 8 bytes (4 bits) from xicp0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > random: harvesting attach, 8 bytes (4 bits) from cpu0 > cpu1: on cpulist0 > random: harvesting attach, 8 bytes (4 bits) from cpu1 > cpu2: on cpulist0 > random: harvesting attach, 8 bytes (4 bits) from cpu2 > cpu3: on cpulist0 > random: harvesting attach, 8 bytes (4 bits) from cpu3 > random: harvesting attach, 8 bytes (4 bits) from cpulist0 > pcib0: on ofwbus0 > pci0: on pcib0 > pci0: domain=0, physical bus=0 > found-> vendor=0x1af4, dev=0x1002, revid=0x00 > domain=0, bus=0, slot=3, func=0 > class=00-ff-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0100, statreg=0x0000, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=0 > map[10]: type I/O Port, range 32, base 0x20, size 5, port disabled > found-> vendor=0x106b, dev=0x003f, revid=0x00 > domain=0, bus=0, slot=2, func=0 > class=0c-03-10, hdrtype=0x00, mfdev=0 > cmdreg=0x0106, statreg=0x0000, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=0 > map[10]: type Memory, range 32, base 0xc0000000, size 8, enabled > found-> vendor=0x10ec, dev=0x8139, revid=0x20 > domain=0, bus=0, slot=1, func=0 > class=02-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0100, statreg=0x0000, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=0 > map[10]: type I/O Port, range 32, base 0x100, size 8, port disabled > map[14]: type Memory, range 32, base 0xc0000100, size 8, memory disabled > pci0: at device 3.0 (no driver attached) > ohci0: mem 0xc0000000-0xc00000ff irq 4100 at device 2.0 on pci0 > ohci0: Mapping IOMMU domain 0x80000000 > ofw_pci mapdev: start 100e0000000, len 256 > usbus0 on ohci0 > ohci0: usbpf: Attached > random: harvesting attach, 8 bytes (4 bits) from usbus0 > random: harvesting attach, 8 bytes (4 bits) from ohci0 > re0: port 0x100-0x1ff mem 0xc0000100-0xc00001ff irq 4099 at device 1.0 on pci0 > ofw_pci mapdev: start 100e0000100, len 256 > re0: MSI count : 0 > re0: MSI-X count : 0 > re0: Chip rev. 0x74800000 > re0: MAC rev. 0x00000000 > re0: Mapping IOMMU domain 0x80000000 > miibus0: on re0 > rlphy0: PHY 0 on miibus0 > rlphy0: OUI 0x000000, model 0x0000, rev. 0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow > random: harvesting attach, 8 bytes (4 bits) from rlphy0 > random: harvesting attach, 8 bytes (4 bits) from miibus0 > re0: Using defaults for TSO: 65518/35/2048 > re0: bpf attached > re0: Ethernet address: 52:54:00:1a:cd:48 > random: harvesting attach, 8 bytes (4 bits) from re0 > random: harvesting attach, 8 bytes (4 bits) from pci0 > random: harvesting attach, 8 bytes (4 bits) from pcib0 > rtas0: on ofwbus0 > rtas0: registered as a time-of-day clock (resolution 2000us, adjustment 0.001000000s) > random: harvesting attach, 8 bytes (4 bits) from rtas0 > vdevice0: on ofwbus0 > vscsi0: irq 16781319 on vdevice0 > vscsi0: Mapping IOMMU domain 0x2000 > vscsi0: Queue depth 22 commands > random: harvesting attach, 8 bytes (4 bits) from vscsi0 > uart0: irq 16781320 on vdevice0 > random: harvesting attach, 8 bytes (4 bits) from uart0 > random: harvesting attach, 8 bytes (4 bits) from vdevice0 > ofwbus0: compat linux,kvm (no driver attached) > procfs registered > Timecounter "timebase" frequency 512000000 Hz quality 0 > Event timer "decrementer" frequency 512000000 Hz quality 1000 > Timecounters tick every 1.000 msec > vlan: initialized, using hash tables with chaining > lo0: bpf attached > tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384 > usbus0: 12Mbps Full Speed USB v1.0 > (probe0:vscsi0:0:0:0): Down reving Protocol Version from 6 to 5? > ugen0.1: at usbus0 > uhub0: on usbus0 > (probe0:vscsi0:0:0:1): Down reving Protocol Version from 6 to 5? > pass0 at vscsi0 bus 0 scbus0 target 0 lun 0 > pass0: Fixed Direct Access SPC-3 SCSI device > pass0: 150.000MB/s transfers > pass1 at vscsi0 bus 0 scbus0 target 0 lun 1 > pass1: Removable CD-ROM SPC-3 SCSI device > pass1: 150.000MB/s transfers > cd0 at vscsi0 bus 0 scbus0 target 0 lun 1 > cd0: Removable CD-ROM SPC-3 SCSI device > cd0: 150.000MB/s transfers > cd0: 592MB (303319 2048 byte sectors) > da0 at vscsi0 bus 0 scbus0 target 0 lun 0 > da0: Fixed Direct Access SPC-3 SCSI device > da0: 150.000MB/s transfers > da0: 20480MB (41943040 512 byte sectors) > Adding CPU 0, pir=68, awake=1 > Waking up CPU 8 (dev=7e5e08b0) > Adding CPU 8, pir=860, awake=1 > Waking up CPU 16 (dev=7e5e10d0) > Adding CPU 16, pir=860, awake=1 > Waking up CPU 24 (dev=7e5e18f0) > Adding CPU 24, pir=860, awake=1 > SMP: AP CPU #24 launched > SMP: AP CPU #8 launched > SMP: AP CPU #16 launched > spin lock 0x1250900 (sched lock 0) held by 0x48f89c0 (tid 100052) too long > spin lock 0x1250900 (sched lock 0) held by 0x48f89c0 (tid 100052) too long > timeout stopping cpus > panic: spin lock held too long > cpuid = 8 > KDB: stack backtrace: > #0 0x6144fc at ??+0 > #1 0x614598 at ??+0 > #2 0x5eac60 at ??+0 > #3 0x5eaef4 at ??+0 > #4 0x65d1a0 at ??+0 > #5 0x661040 at ??+0 > #6 0x6240c0 at ??+0 > #7 0x65ef18 at ??+0 > #8 0x67b658 at ??+0 > #9 0x679398 at ??+0 > #10 0x67c03c at ??+0 > #11 0x5b233c at ??+0 > #12 0xa6c620 at ??+0 > #13 0xa6c4f4 at ??+0 > Uptime: 1s > timeout stopping cpus > panic: spin lock held too long > cpuid = 16 > Uptime: 1s > > Obviously, with only one CPU everything seems fine... > > Cheers, > > Luciano. From owner-freebsd-ppc@freebsd.org Tue Aug 30 16:01:46 2016 Return-Path: Delivered-To: freebsd-ppc@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 539CABC8506 for ; Tue, 30 Aug 2016 16:01:46 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id 17CF6275D for ; Tue, 30 Aug 2016 16:01:45 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3sNtYr6PrtzRRqT for ; Tue, 30 Aug 2016 18:01:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id 500yK+gUsNeE for ; Tue, 30 Aug 2016 18:01:52 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3sNtYr5kGCzRRqS for ; Tue, 30 Aug 2016 18:01:52 +0200 (CEST) Received: from mordeus (unknown [192.168.45.6]) by hermes.mcs.it (Postfix) with ESMTP id 689411B7580 for ; Tue, 30 Aug 2016 18:01:44 +0200 (CEST) Date: Tue, 30 Aug 2016 18:01:44 +0200 From: Luciano Mannucci To: freebsd-ppc@freebsd.org Subject: Re: PPC64 on IBM KVM saga: 11.0 RC2 In-Reply-To: References: <3rkxKP1cQczRRqR@baobab.bilink.it> <3s4y5N27LPz1cXL0@baobab.bilink.it> <3s5Tq62T6ZzRRrN@baobab.bilink.it> <70d56fc0-87f2-873d-5742-0bf6f0962890@freebsd.org> <3s6j6v5Sxnz1cXL0@baobab.bilink.it> <3s7CtJ43tXzRRr4@baobab.bilink.it> <3sNr3S632tz1cXKx@baobab.bilink.it> <6a5c265b-a2ca-5fd3-d53f-b7e6d83ef308@freebsd.org> <3sNrkv0GXCzRRqS@baobab.bilink.it> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <3sNtYr5kGCzRRqS@baobab.bilink.it> X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 16:01:46 -0000 On Tue, 30 Aug 2016 07:51:15 -0700 Nathan Whitehorn wrote: > Hopefully this makes it > into the release. I look forward... Thanks again, Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/ From owner-freebsd-ppc@freebsd.org Tue Aug 30 17:23:15 2016 Return-Path: Delivered-To: freebsd-ppc@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 BF2E7BC9146 for ; Tue, 30 Aug 2016 17:23:15 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-26.reflexion.net [208.70.210.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D0D2273 for ; Tue, 30 Aug 2016 17:23:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 26423 invoked from network); 30 Aug 2016 17:24:00 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 30 Aug 2016 17:24:00 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 13:23:05 -0400 (EDT) Received: (qmail 17592 invoked from network); 30 Aug 2016 17:23:05 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 30 Aug 2016 17:23:05 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 66E6BB1E001; Tue, 30 Aug 2016 10:23:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: From llvm: Fwd: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at least for TARGET_ARCH=powerpc and powerpc64 (gcc/g++ mismatch) [patch under review] From: Mark Millard In-Reply-To: <956E5C77-9B86-46D3-8935-7B4BF3203236@dsl-only.net> Date: Tue, 30 Aug 2016 10:23:11 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1FDE13A7-93C2-48E9-B1D0-84EDFAEE419D@dsl-only.net> References: <956E5C77-9B86-46D3-8935-7B4BF3203236@dsl-only.net> To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 17:23:15 -0000 [Top post of new status.] My original analysis of the bad powerpc and powerpc64 code generated by = clang 3.8.0 for __builtin_dwarf_cfa() has been confirmed and a patch is = out for review (likely targeting trunk). Begin forwarded message: > From: bugzilla-daemon at llvm.org > Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) > Date: August 30, 2016 at 9:13:15 AM PDT > To: >=20 >=20 > Comment # 9 on bug 26761 from Hal Finkel > Patch posted for review: https://reviews.llvm.org/D24038 >=20 > You are receiving this mail because: > =E2=80=A2 You reported the bug. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Aug-29, at 11:46 PM, Mark Millard = wrote: It looks like Hal Finkel looked at llvm bug 26761 enough to reclassify = it from llvm Codegen for clang 3.8 to "Common Code Generator Code" for = libraries on trunk. (Not a claim of a fix, just a reclassification.) = This is one of the bugs listed in "[Bug 25780] [META] Using Clang as the = FreeBSD/ppc system compiler" as known to be blocking the use of clang = for powerpc. With the recent addition of -mlongcall [llvm bug 19098 is now listed as = fixed on trunk], this may hint that some clang related work is = overlapping with what FreeBSD happens to need for powerpc64 and/or = powerpc. As no comments were added I'm not sure if it was looked at enough for my = original analysis of the code generated to have any independent = verification yet. Some of my original submittals got a cross check when = I submitted them and the comments reflect the process in such cases. = This one did not get such activity at the time or since. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) Date: August 29, 2016 at 7:50:28 PM PDT To: Hal Finkel changed bug 26761=20 What Removed Added CC hfinkel at anl.gov Component LLVM Codegen Common Code Generator Code =20 Version 3.8 trunk Assignee unassignedclangbugs@nondot.org = unassignedbugs@nondot.org Product clang libraries You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-ppc@freebsd.org Tue Aug 30 19:04:32 2016 Return-Path: Delivered-To: freebsd-ppc@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 75ED9BC98E8 for ; Tue, 30 Aug 2016 19:04:32 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-22.reflexion.net [208.70.210.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10EAB156 for ; Tue, 30 Aug 2016 19:04:31 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 28104 invoked from network); 30 Aug 2016 18:58:37 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 30 Aug 2016 18:58:37 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 14:57:42 -0400 (EDT) Received: (qmail 17521 invoked from network); 30 Aug 2016 18:57:42 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 30 Aug 2016 18:57:42 -0000 X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 0AEB61C4387 for ; Tue, 30 Aug 2016 11:57:45 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" code generation is violating the SVR4 ABI (SEGV can result) Date: Tue, 30 Aug 2016 11:57:48 -0700 References: To: FreeBSD PowerPC ML Message-Id: <80A3980C-0B1B-4EA7-A093-FD3B6D8060F7@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 19:04:32 -0000 The llvm/clang powerpc SVR4 ABI stack-handing violation bug 26519 has = been reclassified in llvm's bug database as a libraries powerpc backend = problem. This may be a preliminary indication that the problem is to be worked = on: That is what happened for the __builtin_dwarf_cfa() problem [26761] = after it was reclassified. __builtin_dwarf_cfa() now has a patch in = review. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" = code generation is violating the SVR4 ABI (SEGV can result) Date: August 30, 2016 at 11:13:00 AM PDT To: Krzysztof Parzyszek changed bug 26519=20 What Removed Added CC kparzysz at codeaurora.org Component LLVM Codegen Backend: PowerPC Assignee unassignedclangbugs at nondot.org unassignedbugs = at nondot.org Product clang libraries You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-ppc@freebsd.org Wed Aug 31 01:17:35 2016 Return-Path: Delivered-To: freebsd-ppc@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 E277EBBCE48 for ; Wed, 31 Aug 2016 01:17:35 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-35.reflexion.net [208.70.210.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98A48CD9 for ; Wed, 31 Aug 2016 01:17:34 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 31752 invoked from network); 31 Aug 2016 01:18:17 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 31 Aug 2016 01:18:17 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Tue, 30 Aug 2016 21:17:26 -0400 (EDT) Received: (qmail 27438 invoked from network); 31 Aug 2016 01:17:25 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 31 Aug 2016 01:17:25 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 821F9B1E001; Tue, 30 Aug 2016 18:17:27 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 26856] clang 3.8.0/powerpc/powerpc64's _Unwind_RaiseException code generation has messed up r31 (frame pointer) save/restore code (SEGV's can result) [another issue reported fixed, via llvm r280188] Date: Tue, 30 Aug 2016 18:17:32 -0700 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: <13C54407-8758-41E8-BBDB-4C3574D05C61@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 01:17:36 -0000 The below notice from Hal Finkel [via llvm's bugzilla] indicates that at = least part of llvm bug 26856 for powerpc64's is expected to have been = fixed by r280188 (likely on trunk?). 26856 was one of my reports that had independent confirmation back when = I submitted it. Some of the quote below is from the exchange about the = problems from back then. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26856] clang 3.8.0/powerpc/powerpc64's = _Unwind_RaiseException code generation has messed up r31 (frame pointer) = save/restore code (SEGV's can result) Date: August 30, 2016 at 5:54:45 PM PDT To: Comment # 11 on bug 26856 from Hal Finkel (In reply to comment #6 ) ... >=20 > 2) In some scenarios, registers may be spilled/restored twice to the = stack.=20 > This happens because while most of the spilling happens in > PPCFrameLowering::spillCalleeSavedRegisters, a few selected registers = are > also spilled in PPCFrameLowering::emitPrologue. Those registers are = the > frame pointer, base pointer, PIC base pointer, link register, and = condition > code register. For the latter two, code ensures that they can never = be > spilled in both places (for CR, there is extra code in > spillCalleeSavedRegisters; for LR, the register is removed from = SavedRegs in > determineCalleeSaves). >=20 > However, for FP, BP, and PBP, nothing ensures the registers are not = spilled > twice. It is probably *rare* for this to happen, because the register > allocator will not use those registers within the function if they're = needed > for their special purpose, but it can happen in rare cases. This = includes > the case of a system unwinder routine that uses __builtin_unwind_init, = but > could also include other routines that clobber one of those registers, = e.g. > the following case: >=20 > void func (void); >=20 > void test (void) > { > func (); > asm ("nop" : : : "31"); > } r280188 should address the spilling-twice problem. You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-ppc@freebsd.org Thu Sep 1 15:05:10 2016 Return-Path: Delivered-To: freebsd-ppc@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 1C656BCB167 for ; Thu, 1 Sep 2016 15:05:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-30.reflexion.net [208.70.210.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF9C162A for ; Thu, 1 Sep 2016 15:05:09 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 19640 invoked from network); 1 Sep 2016 14:58:23 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 1 Sep 2016 14:58:23 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Thu, 01 Sep 2016 10:58:27 -0400 (EDT) Received: (qmail 21861 invoked from network); 1 Sep 2016 14:58:27 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 1 Sep 2016 14:58:27 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id E4D0BEC8F8E; Thu, 1 Sep 2016 07:58:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: From llvm: Fwd: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at least for TARGET_ARCH=powerpc and powerpc64 (gcc/g++ mismatch) [llvm r280350 is a fix] From: Mark Millard Date: Thu, 1 Sep 2016 07:58:21 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <8B6BE932-BDAB-4588-8610-97FE60870BB3@dsl-only.net> References: To: FreeBSD Toolchain , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 15:05:10 -0000 __builtin_dwarf_cfa () is now listed at llvm as fixed for powerpc and = powerpc64 (r280350, likely on trunk). This is an item (of several) from = the "[Bug 25780] [META] Using Clang as the FreeBSD/ppc system compiler" = list of blocking defects. [But it may be that arm also has the problem (if/when = __builtin_dwarf_cfa () is used anyway).] =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26761] clang 3.8.0 messes up __builtin_dwarf_cfa (), at = least for TARGET_ARCH=3Dpowerpc and powerpc64 (gcc/g++ mismatch) Date: September 1, 2016 at 3:38:48 AM PDT To: Hal Finkel changed bug 26761=20 What Removed Added Status NEW RESOLVED Resolution --- FIXED Comment # 10 on bug 26761 from Hal Finkel (In reply to comment #9 ) > Patch posted for review: https://reviews.llvm.org/D24038 r280350. Also, PR30231 filed to track the potential issue on ARM. You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-ppc@freebsd.org Thu Sep 1 15:08:56 2016 Return-Path: Delivered-To: freebsd-ppc@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 BA36EBCB2F7 for ; Thu, 1 Sep 2016 15:08:56 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-21.reflexion.net [208.70.210.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 56E6799A for ; Thu, 1 Sep 2016 15:08:55 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 21461 invoked from network); 1 Sep 2016 15:09:33 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 1 Sep 2016 15:09:33 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Thu, 01 Sep 2016 11:08:53 -0400 (EDT) Received: (qmail 17537 invoked from network); 1 Sep 2016 15:08:52 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 1 Sep 2016 15:08:52 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id B4EC1EC8FAF; Thu, 1 Sep 2016 08:08:48 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: From llvm: Fwd: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" code generation is violating the SVR4 ABI (SEGV can result) [code review for fix] Date: Thu, 1 Sep 2016 08:08:48 -0700 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: <08136189-299F-4BD6-9E49-8D39A8913D62@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 15:08:56 -0000 https://reviews.llvm.org/D24093 is a code review for llvm potentially = fixing the violation of the TARGET_ARCH=3Dpowerpc SVR4 ABI stack = handling rules, no longer requiring a "red-zone" on the stack. See below = for more information. =3D=3D=3D Mark Millard markmi at dsl-only.net Begin forwarded message: From: bugzilla-daemon at llvm.org Subject: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" = code generation is violating the SVR4 ABI (SEGV can result) Date: September 1, 2016 at 7:22:49 AM PDT To: Comment # 5 on bug 26519 from Krzysztof Parzyszek Patch for review: https://reviews.llvm.org/D24093 You are receiving this mail because: =E2=80=A2 You reported the bug. From owner-freebsd-ppc@freebsd.org Thu Sep 1 22:25:06 2016 Return-Path: Delivered-To: freebsd-ppc@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 5423FBCCB49 for ; Thu, 1 Sep 2016 22:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 43863321 for ; Thu, 1 Sep 2016 22:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u81MP6ew027453 for ; Thu, 1 Sep 2016 22:25:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 211599] Once installed, 11.0-Beta3 won't boot on PPC64 Power8 under IBM KVM Date: Thu, 01 Sep 2016 22:25:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 22:25:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211599 --- Comment #12 from commit-hook@freebsd.org --- A commit references this bug: Author: nwhitehorn Date: Thu Sep 1 22:24:31 UTC 2016 New revision: 305249 URL: https://svnweb.freebsd.org/changeset/base/305249 Log: MFC r305036: Some versions of SLOF do not append the partition number to the boot device argument to the stage-1 bootloader. In such cases, boot1 would only try to read the entire device rather than checking for partitions. Instead of panic'ing, fall back to reading the partitions as normal in such situations. This was preventing boot of installed systems on some versions of PowerKVM. PR: kern/211599 Changes: _U stable/11/ stable/11/sys/boot/powerpc/boot1.chrp/boot1.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Fri Sep 2 00:46:21 2016 Return-Path: Delivered-To: freebsd-ppc@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 17553BCB5B3 for ; Fri, 2 Sep 2016 00:46:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06FC12B for ; Fri, 2 Sep 2016 00:46:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u820kK9o068358 for ; Fri, 2 Sep 2016 00:46:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 211599] Once installed, 11.0-Beta3 won't boot on PPC64 Power8 under IBM KVM Date: Fri, 02 Sep 2016 00:46:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 00:46:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211599 --- Comment #13 from commit-hook@freebsd.org --- A commit references this bug: Author: nwhitehorn Date: Fri Sep 2 00:45:44 UTC 2016 New revision: 305266 URL: https://svnweb.freebsd.org/changeset/base/305266 Log: MFS11 r305249: MFC r305036: Some versions of SLOF do not append the partition number to the boot device argument to the stage-1 bootloader. In such cases, boot1 would only try to read the entire device rather than checking for partitions. Instead of panic'ing, fall back to reading the partitions as normal in such situations. This was preventing boot of installed systems on some versions of PowerKVM. PR: kern/211599 Approved by: re (gjb) Changes: _U releng/11.0/ releng/11.0/sys/boot/powerpc/boot1.chrp/boot1.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Fri Sep 2 00:53:21 2016 Return-Path: Delivered-To: freebsd-ppc@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 972F4BCB783 for ; Fri, 2 Sep 2016 00:53:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 867E4311 for ; Fri, 2 Sep 2016 00:53:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u820rLes085360 for ; Fri, 2 Sep 2016 00:53:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 211599] Once installed, 11.0-Beta3 won't boot on PPC64 Power8 under IBM KVM Date: Fri, 02 Sep 2016 00:53:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nwhitehorn@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 00:53:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211599 Nathan Whitehorn changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-ppc@freebsd.org Sat Sep 3 22:18:28 2016 Return-Path: Delivered-To: freebsd-ppc@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 5A7A1BCE511 for ; Sat, 3 Sep 2016 22:18:28 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-50.reflexion.net [208.70.210.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 215C7315 for ; Sat, 3 Sep 2016 22:18:27 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 7068 invoked from network); 3 Sep 2016 21:52:31 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 3 Sep 2016 21:52:31 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Sat, 03 Sep 2016 17:51:39 -0400 (EDT) Received: (qmail 12587 invoked from network); 3 Sep 2016 21:51:39 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 3 Sep 2016 21:51:39 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 0E1FCEC8B81; Sat, 3 Sep 2016 14:51:46 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: armv6 specific std::async crash from g++6 built a.out [g++5 too; unsure for aarch64/powerpc/powerpc64: help?] From: Mark Millard In-Reply-To: <790F9152-F7E0-4D00-9A44-CCEE439DFC5B@dsl-only.net> Date: Sat, 3 Sep 2016 14:51:45 -0700 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <389C3223-AE3B-4D4A-8ABC-57A71D8705E9@dsl-only.net> References: <25A60F75-B228-4C95-A890-8D6A8DA3F2CE@dsl-only.net> <2514E6E1-B405-4C3F-B283-754B948851EF@dsl-only.net> <00C57E2B-47EB-4579-9130-8116C9F934A0@dsl-only.net> <561577BD-0167-4623-B69D-08923E671D5D@dsl-only.net> <790F9152-F7E0-4D00-9A44-CCEE439DFC5B@dsl-only.net> To: freebsd-arm , FreeBSD Ports X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2016 22:18:28 -0000 [Quick top post reporting that using gcc5 5.4.0 has the same problem for = armv6 FreeBSD. I've got a stable/11 context, currently -r304943.] FreeBSD bugzilla Bug 212330 is for this. For: > #include // future, async, launch::async >=20 > static void f() {} >=20 > int main(int, const char* []) > { > auto a0{ std::async( std::launch::async, f ) }; > a0.get(); > return 0; > } I've now also tried "pkg install gcc5" on the rpi2 and then used it to = produce the a.out file. ./a.out still gets SIGSEGV for the ~10 line = program (and the original program the crash was discovered with). g++6 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread = -Wl,-rpath=3D/usr/local/lib/gcc6 or g++5 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread = -Wl,-rpath=3D/usr/local/lib/gcc5 Omitting the -Wl,-rpath=3D/usr/local/lib/gcc also produces an a.out = for the ~10 line program that gets the SIGSEGV. (I tried the g++6 case = anyway.) Comparison to other rpi2 contexts: g++-5 on Ubuntu Mate 16.04 on the same rpi2 does not have this problem. g++-6 on Ubuntu Mate 16.04 on the same rpi2 does not have this problem. The other contexts that I've tried do not have the problem: so far only = armv6 FreeBSD: clang based builds do not have the problem any place that I've tried. = Other than the toolchain in use these are the same contexts as for the = g++ tests. Ubuntu Mate with g++-5 and g++-6 on an ODRIOD-C2 (aarch64) works. [I've = no FreeBSD aarch64 context.] amd64 FreeBSD stable/11 with g++6 works. [I've not tried g++5.] If anyone has aarch64, powerpc64, or powerpc (or other) FreeBSD contexts = and g++5 and/or g++6 and want to try compiling and running the program: #include // future, async, launch::async static void f() {} int main(int, const char* []) { auto a0{ std::async( std::launch::async, f ) }; a0.get(); return 0; } based on g++6 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread = -Wl,-rpath=3D/usr/local/lib/gcc6 and/or g++6 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread and/or g++5 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread = -Wl,-rpath=3D/usr/local/lib/gcc5 and/or g++5 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread and report on the result in = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212330 that might = help. My testing has been limited to stable/11 as well. Untested (that I will eventually have a context for again): powerpc64 = and powerpc. [I'm still a few weeks away from getting access to the powerpc64 and = powerpc contexts again so I've not tried those. Plus I tend to use = devel/powerpc64-xtoolchain-gcc FreeBSD builds for powerpc64 and an odd = context for a clang-based buildworld for powerpc (with a gcc 4.2.1 based = kernel with signal delivery changes to deal with clang producing = stack-handling ABI violations). clang++ 3.8.0 for powerpc64 and powerpc = has other problems, including exception handling being messed up in the = programs it produces.] =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Sep-2, at 4:28 AM, Mark Millard wrote: > On 2016-Sep-1, at 4:35 PM, Mark Millard = wrote: >=20 >> Another top post because I should have kept going with the = reductions: the following ~10 line program also shows the SIGSEGV = behavior on armv6 (an rpi2) for running ./a.out after compiling via = g++6. >>=20 >>> # more g++6_build_crashes.cpp = = #include = // future, async, launch::async >>>=20 >>> static void f() {} >>>=20 >>> int main(int, const char* []) >>> { >>> auto a0{ std::async( std::launch::async, f ) }; >>> a0.get(); >>> return 0; >>> } >>=20 >> It only takes one std::async use to have the problem. So far the = above (and the earlier variants) always crash with SIGSEGV on the rpi2 = when the g++6 compiler is used. >>=20 >> As for the compile commands used: >>=20 >>> g++6 -g -v -std=3Dc++14 -Wpedantic -Wall -O2 -pthread = -Wl,-rpath=3D/usr/local/lib/gcc6 -mcpu=3Dcortex-a7 = g++6_build_crashes.cpp >>=20 >>=20 >> Omitting the -mcpu=3Dcortex-a7 still get the problem. >>=20 >> Using -O0 instead of -O2 still gets the problem. >>=20 >> But I'll note that my stable/11 -r304943 build and my ports builds = (usr/ports -r421001 vintage) were/are based on using -mcpu=3Dcortex-a7 . = Also the system clang 3.8.0 was used to build g++6: >>=20 >>> GNU C++14 (FreeBSD Ports Collection) version 6.2.0 = (armv6-portbld-freebsd11.0) >>> compiled by GNU C version 4.2.1 Compatible FreeBSD Clang 3.8.0 = (tags/RELEASE_380/final 262564), GMP version 5.1.3, MPFR version = 3.1.4-p1, MPC version 1.0.3, isl version none >>=20 >>> # more /etc/make.conf=20 >>> DEFAULT_VERSIONS+=3Dperl5=3D5.22 >>> WRKDIRPREFIX=3D/usr/obj/portswork >>> WITH_DEBUG=3D >>> WITH_DEBUG_FILES=3D >>> MALLOC_PRODUCTION=3D >>> # >>> #system clang 3.8 (gcc6 rejects -march=3Darmv7a): >>> #CFLAGS+=3D -march=3Darmv7-a -mcpu=3Dcortex-a7 >>> #CXXFLAGS+=3D -march=3Darmv7-a -mcpu=3Dcortex-a7 >>> #CPPFLAGS+=3D -march=3Darmv7-a -mcpu=3Dcortex-a7 >>> # >>> #lang/gcc6's xgcc stage considers the above conflicting so use just: >>> CFLAGS+=3D -mcpu=3Dcortex-a7 >>> CXXFLAGS+=3D -mcpu=3Dcortex-a7 >>> CPPFLAGS+=3D -mcpu=3Dcortex-a7 >>=20 >>=20 >> =3D=3D=3D >> Mark Millard >> markmi at dsl-only.net >=20 > Beyond amd64 FreeBSD not having the problem that armv6 has. . . >=20 > I have since booted Ubuntu Mate 16.04 on the rpi2 (armv6 / cortex-a7) = and installed g++-6, g++-6 (Ubuntu 6.1.1-2ubuntu12~16.04) 6.1.1 20160510 = since it was available. (So not 6.2: not a full vintage match to my = FreeBSD g++6 contexts, unfortunately.) >=20 > The original program that failed on FreeBSD when compiled with g++6 = (v6.2) on the same rpi2 executes just fine after being compiled on the = Ubuntu Mate rpi2 configuration with g++-6 (v6.1). >=20 > So the armv6 SIGSEGV looks to not not be a generic g++6/libstdc++ = problem for std::async use: it seems to be armv6 FreeBSD specific. = (Unfortunately I've not been able to form fully matching versions for = this comparison.) >=20 > I've also installed g++-6 on a ODROID-C2 (aarch64) Linux (Ubuntu = 16.04.1) and built the original program that I discovered the problem = with. g++-6 (Ubuntu 6.1.1-2ubuntu12~16.04) 6.1.1 20160510 was the = compiler. >=20 > It executes just fine on the ODROID-C2 under Ubuntu Mate. (So far as I = know FreeBSD does not support this type of context (yet) but it is the = only aarch64 context I currently have access to.) >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net >=20 >=20