From owner-freebsd-current@FreeBSD.ORG Tue Jun 22 20:11:38 2010 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 40FB31065673; Tue, 22 Jun 2010 20:11:38 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 97F7B8FC0C; Tue, 22 Jun 2010 20:11:37 +0000 (UTC) Received: by fxm7 with SMTP id 7so3157554fxm.13 for ; Tue, 22 Jun 2010 13:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=7f0bJLQ1i/sq24lyvcLtrvRdVeMjn+nA6Y0Y9tiFSMA=; b=pHTqnKE0IIo7pwMM6yvpk/KTU/+Sh4GJGwwauplJzn/aiAvb063kZAE7/yxobTIchF 7eR4i37pjrPDEdedLwxEGeI6lBakdW5eNCbMnc79GwCCgmPbO0q9rp1RuG7YolY7m8gD h7x8RsBWkNm1BRKe3MRs8SOVXB60SGBTUHc4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=UNpUNcT1uV6/SwyLF4cyIAE8I16U8PKwuLI02i2IJjefiZhuOI/a1ekUto/UsBFMUs PiMGV/KXVtSMcnlpT02pdYBfRidvexbyru1kDKRTibENwxBmbKv5j2du+jvjAcCp0WoA X2HuMuxKZbKV9jPtrWH8gt1emrqpGH0ikgtNU= Received: by 10.223.5.81 with SMTP id 17mr6717133fau.42.1277237496636; Tue, 22 Jun 2010 13:11:36 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 2sm30719354fav.25.2010.06.22.13.11.35 (version=SSLv3 cipher=RC4-MD5); Tue, 22 Jun 2010 13:11:35 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C2118D1.3080903@FreeBSD.org> Date: Tue, 22 Jun 2010 23:10:57 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Doug Barton References: <4C211538.1040808@FreeBSD.org> <4C2115D2.5080504@FreeBSD.org> In-Reply-To: <4C2115D2.5080504@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: multipart/mixed; boundary="------------030706010608010307010605" Cc: freebsd-current@FreeBSD.org Subject: Re: Timer panic on boot (r209434) 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: Tue, 22 Jun 2010 20:11:38 -0000 This is a multi-part message in MIME format. --------------030706010608010307010605 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Doug Barton wrote: > On 06/22/10 12:55, Doug Barton wrote: >> Howdy, >> >> I tried upgrading from r209351 to r209434 and got a panic related to the >> timer stuff while booting. You can see the panic and the backtrace here: >> >> http://people.freebsd.org/~dougb/timer-panic-1.jpg >> http://people.freebsd.org/~dougb/timer-panic-2.jpg >> http://people.freebsd.org/~dougb/timer-panic-3.jpg > > Hmmm, that could use a little more detail. :) I have a Dell laptop with > a core 2 duo processor, running 9-current SMP i386. Your ACPI seems reports that attimer uses IRQ2, instead of usual IRQ0. It is either a bug, or it is a very rare feature. I am not sure it is not a hack, but you may try attached patch. If it helps, it would be nice it you tried to use i8254 event timer, to check is this a bug or feature. -- Alexander Motin --------------030706010608010307010605 Content-Type: text/plain; name="norid.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="norid.patch" diff -ruNp sys/isa.prev/atrtc.c sys/isa/atrtc.c --- sys/isa.prev/atrtc.c 2010-06-22 23:01:13.000000000 +0300 +++ sys/isa/atrtc.c 2010-06-22 23:01:38.000000000 +0300 @@ -259,6 +259,7 @@ atrtc_attach(device_t dev) if (!atrtcclock_disable && (resource_int_value(device_get_name(dev), device_get_unit(dev), "clock", &i) != 0 || i != 0)) { + sc->intr_rid = -1; if (!(sc->intr_res = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->intr_rid, 8, 8, 1, RF_ACTIVE))) { device_printf(dev,"Can't map interrupt.\n"); diff -ruNp sys/isa.prev/clock.c sys/isa/clock.c --- sys/isa.prev/clock.c 2010-06-22 20:19:00.000000000 +0300 +++ sys/isa/clock.c 2010-06-22 23:01:27.000000000 +0300 @@ -535,6 +535,7 @@ attimer_attach(device_t dev) tc_init(&sc->tc); if (resource_int_value(device_get_name(dev), device_get_unit(dev), "clock", &i) != 0 || i != 0) { + sc->intr_rid = -1; if (!(sc->intr_res = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->intr_rid, 0, 0, 1, RF_ACTIVE))) { device_printf(dev,"Can't map interrupt.\n"); --------------030706010608010307010605--