From owner-freebsd-current@FreeBSD.ORG Wed Sep 19 21:05:10 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E8C91065674; Wed, 19 Sep 2012 21:05:10 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 08C248FC14; Wed, 19 Sep 2012 21:05:09 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q8JL59Re060797; Wed, 19 Sep 2012 15:05:09 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q8JL56nr059080; Wed, 19 Sep 2012 15:05:06 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: Adrian Chadd In-Reply-To: References: <80840563.20120920002200@serebryakov.spb.ru> <1252171344.20120920003724@serebryakov.spb.ru> <1348087584.95562.55.camel@revolution.hippie.lan> <1859311530.20120920005449@serebryakov.spb.ru> Content-Type: text/plain; charset="koi8-r" Date: Wed, 19 Sep 2012 15:05:06 -0600 Message-ID: <1348088706.95562.61.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: lev@freebsd.org, freebsd-current@freebsd.org Subject: Re: Latest -CURRENT/i386 could not start under VirutalBox 4.1.18 and 4.2 (Windows host): hangs up after atrtc0 detection X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 21:05:10 -0000 On Wed, 2012-09-19 at 14:00 -0700, Adrian Chadd wrote: > On 19 September 2012 13:54, Lev Serebryakov wrote: > > Hello, Ian. > > You wrote 20 сентября 2012 г., 0:46:24: > > > > IL> Yes, exactly. I updated the PR to request that my patch not get > > IL> committed because it locks up virtualbox. I hope to find time soon to > > IL> learn enough about installing/configuring virtualbox to figure out what > > IL> the problem is (offhand,I suspect it hangs in the loop that probes for > > IL> the need to re-index, because vbox doesn't quite emulate the hardware > > IL> behavior fully). > > How could I help? Is it possible to debug kernel on such early stage? > > Add something to atrtc_start() to only loop over that loop say, 64k > times before dropping out; and print an error if it hits that > condition. > > Also, what's that RTCSA_8192 bit do? That should set the interrupt rate really high, to minimize the time wasted waiting for the status bit to change in the register. Maybe that's the part that vbox isn't emulating well and so it never simulates an interrupt and leaves that loop. Or maybe because the loop is a tight busy-wait the emulator never gets control to simulate the occurance of the interrupt. -- Ian