From owner-svn-src-head@FreeBSD.ORG Tue Jun 22 08:12:45 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86E081065672; Tue, 22 Jun 2010 08:12:45 +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 A48AF8FC08; Tue, 22 Jun 2010 08:12:44 +0000 (UTC) Received: by fxm7 with SMTP id 7so2701104fxm.13 for ; Tue, 22 Jun 2010 01:12:43 -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:content-transfer-encoding; bh=laEmHQyAEFBnbQhTJZfJFX8d4V1AAz4DaBNGZbq5iP8=; b=ZoQrfx+HbHvTEMs3cuqStr5r+hGO4Vxkc9357OpJtW3CLwKVR+GfxWIAKzTMA5YvKF g3KFY59NWhBkGAoPhID6wrE7GIxdD38FjbDhKcsB25NL9b0zuAzhvptvnrbTn1/U/Yti Bdqo/47vJ13iMQkvW7BWvvNMWurmS20WeRIfw= 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 :content-transfer-encoding; b=QLsVWjO+n+3kSAti3XqO9/VwGNIOfP1/PRmyifRhUuFmQf5wB7rMMZV9bR7VViGNrw bdQrQ0zILTlQFjLV97dODgI9zvJ9yY/AFJb/qWp2kaIWgnWIVyKkdQGSb3cRqJdRwSic ofyqwwwpf0F4jTcJm31UDV7BYksrYa+ruMj28= Received: by 10.223.19.87 with SMTP id z23mr5874486faa.7.1277194363551; Tue, 22 Jun 2010 01:12:43 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id o11sm29389366fal.43.2010.06.22.01.12.42 (version=SSLv3 cipher=RC4-MD5); Tue, 22 Jun 2010 01:12:42 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C207078.1020607@FreeBSD.org> Date: Tue, 22 Jun 2010 11:12:40 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Kostik Belousov References: <201006202133.o5KLXTG1023067@svn.freebsd.org> <20100621195838.GJ13238@deviant.kiev.zoral.com.ua> <4C1FC6C1.5060800@FreeBSD.org> <4C1FC6E1.4080001@FreeBSD.org> <20100621203419.GK13238@deviant.kiev.zoral.com.ua> <4C1FCF93.9000703@FreeBSD.org> <20100621210629.GN13238@deviant.kiev.zoral.com.ua> <4C1FD5CC.6070909@FreeBSD.org> <20100621212719.GO13238@deviant.kiev.zoral.com.ua> In-Reply-To: <20100621212719.GO13238@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r209371 - in head/sys: amd64/amd64 amd64/include conf dev/acpica i386/i386 i386/include isa kern pc98/cbus sys x86/isa x86/x86 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2010 08:12:45 -0000 Kostik Belousov wrote: > On Tue, Jun 22, 2010 at 12:12:44AM +0300, Alexander Motin wrote: >> Kostik Belousov wrote: >>> Witness patch worked for me, and I can boot multiuser in the qemu-hosted >>> system with hint.hpet.0.clock=0. Does the same hint should work for >>> amd64 ? >> Yes. >> >>> The issue is no longer critical for me due to hint, below is the dmesg >>> you asked for. Thanks. >> It is not verbose. > > Fair enough. > > hpet0: iomem 0xfed00000-0xfed003ff on acpi0 > hpet0: vendor 0x8086, rev 0x1, 100000000Hz 64bit, 3 timers, legacy route > hpet0: t0: irqs 0x00000004 (0), 64bit, periodic > hpet0: t1: irqs 0x00000004 (0), 64bit, periodic > hpet0: t2: irqs 0x00000004 (0), 64bit, periodic > Timecounter "HPET" frequency 100000000 Hz quality 900 So there are three timers without FSB interrupts support. They can use only IRQ2 (not sure if this is a good practice) and can steal IRQ0 and IRQ8 from i8254 and RTC, when "legacy route" enabled. So the only way to use all three timers without level-triggered interrupts is to completely and silently brake i8254 and RTC timers. I prefer not to do it now. Please try such a patch, it should fix QEMU panic without using hints, while HPET timers there won't be used until they implement either FSB interrupts or shareable level-triggred IRQ above 15: --- acpi_hpet.c.prev 2010-06-21 23:23:45.000000000 +0300 +++ acpi_hpet.c 2010-06-22 10:52:43.000000000 +0300 @@ -526,6 +526,7 @@ hpet_attach(device_t dev) t->irq = -2; } else #endif + if (sc->irq >= 0) t->caps |= (sc->irq << 9) | HPET_TCNF_INT_TYPE; bus_write_4(sc->mem_res, HPET_TIMER_CAP_CNF(i), t->caps); /* Skip event timers without set up IRQ. */ -- Alexander Motin