From owner-freebsd-bugs@freebsd.org Mon Feb 5 16:42:28 2018 Return-Path: Delivered-To: freebsd-bugs@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 4A9DBEDB212 for ; Mon, 5 Feb 2018 16:42:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5BDB7B3D3 for ; Mon, 5 Feb 2018 16:42:27 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 141FA2DF2 for ; Mon, 5 Feb 2018 16:42:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w15GgQQ6043848 for ; Mon, 5 Feb 2018 16:42:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w15GgQNZ043847 for freebsd-bugs@FreeBSD.org; Mon, 5 Feb 2018 16:42:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225688] ppc64: Unable to read timebase Date: Mon, 05 Feb 2018 16:42:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: breno.leitao@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2018 16:42:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225688 Bug ID: 225688 Summary: ppc64: Unable to read timebase Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: breno.leitao@gmail.com Created attachment 190344 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190344&action= =3Dedit Get the timebase from the proper OF field. After revision rS328534('PPC64: use hwref instead of cpuid'), FreeBSD on powerpc64 virtual machine panics since it is unable to read the timebase, showing the following error: 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. get-property for timebase-frequency on zero phandle panic: Unable to determine timebase frequency! cpuid =3D 0 time =3D 1 KDB: stack backtrace: 0xc000000000008510: at .kdb_backtrace+0x5c 0xc000000000008640: at .vpanic+0x1a4 0xc000000000008700: at .panic+0x38 0xc000000000008790: at .chrp_timebase_freq+0x44 0xc000000000008820: at .platform_timebase_freq+0x78 0xc0000000000088b0: at .decr_init+0x54 0xc000000000008980: at .cpu_startup+0x20 0xc000000000008a10: at .mi_startup+0x11c 0xc000000000008aa0: at btext+0xb4 KDB: enter: panic With the change above, cpuref->cr_hwref does not contain the phandle anymo= re, thus, it never reads the proper CPU entry in OF. --=20 You are receiving this mail because: You are the assignee for the bug.=