From owner-svn-src-head@FreeBSD.ORG Mon Jun 21 21:06:34 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 3872D1065674; Mon, 21 Jun 2010 21:06:34 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id C3DF08FC12; Mon, 21 Jun 2010 21:06:33 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o5LL6TG0074241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Jun 2010 00:06:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o5LL6Tx5020625; Tue, 22 Jun 2010 00:06:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o5LL6TbQ020624; Tue, 22 Jun 2010 00:06:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 22 Jun 2010 00:06:29 +0300 From: Kostik Belousov To: Alexander Motin Message-ID: <20100621210629.GN13238@deviant.kiev.zoral.com.ua> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6HoVBnoRn/ylzab8" Content-Disposition: inline In-Reply-To: <4C1FCF93.9000703@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua 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: Mon, 21 Jun 2010 21:06:34 -0000 --6HoVBnoRn/ylzab8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 21, 2010 at 11:46:11PM +0300, Alexander Motin wrote: > Kostik Belousov wrote: > > On Mon, Jun 21, 2010 at 11:09:05PM +0300, Alexander Motin wrote: > >> Alexander Motin wrote: > >>> Kostik Belousov wrote: > >>>> On Sun, Jun 20, 2010 at 09:33:29PM +0000, Alexander Motin wrote: > >>>>> Author: mav > >>>>> Date: Sun Jun 20 21:33:29 2010 > >>>>> New Revision: 209371 > >>>>> URL: http://svn.freebsd.org/changeset/base/209371 > >>>>> > >>>>> Log: > >>>>> Implement new event timers infrastructure. It provides unified AP= Is for > >>>>> writing event timer drivers, for choosing best possible drivers b= y machine > >>>>> independent code and for operating them to supply kernel with har= dclock(), > >>>>> statclock() and profclock() events in unified fashion on various = hardware. > >>>> This broke QEMU for me. I cannot boot FreeBSD guest under QEMU anymo= re. > >>>> QEMU (not FreeBSD kernel) panics with > >>>> qemu: level-triggered hpet not supported > >>>> message. > >>> According to specification, it is not optional. No more cookies! > > Is there a way to disable hpet at all ? It would be fine with me. > > Does hint below supposed to do this ? >=20 > Yes. Hint below disables HPET event timers, leaving only time counter > part, almost same as it was before. >=20 > >>>> Setting kern.eventtimer.timer1 to LAPIC or i8254, and timer2 to NONE > >>>> does not help. > >>> Try `hint.apic.0.clock=3D0` and send me verbose dmesg, I'll try to ma= ke > >>> workaround if possible. > >> Sorry, 'hint.hpet.0.clock=3D0'. > >> > > Setting the hint results in > > panic: lock (time lock) sleep mutex does not match earlier (spin mutex)= lock, > > with the backtrace > > enroll() > > witness_init() > > lock_init() > > mtx_init() > > initclocks() > > mi_startup() > > (transribed by hand). >=20 > I am surprised that none of my systems fired it. Try this: >=20 > --- subr_witness.c.prev 2010-06-17 14:07:36.000000000 +0300 > +++ subr_witness.c 2010-06-21 23:43:14.000000000 +0300 > @@ -495,6 +495,7 @@ static struct witness_order_list_entry o > #ifdef HWPMC_HOOKS > { "pmc-sleep", &lock_class_mtx_sleep }, > #endif > + { "time lock", &lock_class_mtx_sleep }, > { NULL, NULL }, > /* > * Sockets > @@ -654,7 +655,6 @@ static struct witness_order_list_entry o > { "callout", &lock_class_mtx_spin }, > { "entropy harvest mutex", &lock_class_mtx_spin }, > { "syscons video lock", &lock_class_mtx_spin }, > - { "time lock", &lock_class_mtx_spin }, > #ifdef SMP > { "smp rendezvous", &lock_class_mtx_spin }, > #endif Witness patch worked for me, and I can boot multiuser in the qemu-hosted system with hint.hpet.0.clock=3D0. Does the same hint should work for amd64 ? The issue is no longer critical for me due to hint, below is the dmesg you asked for. Thanks. Copyright (c) 1992-2010 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 9.0-CURRENT #200: Mon Jun 21 23:56:04 EEST 2010 root@pooma.home:/usr/home/kostik/work/build/bsd/DEV/obj-i386/i386/usr/h= ome/kostik/work/build/bsd/DEV/src/sys/QEMU i386 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. CPU: Pentium II/Pentium II Xeon/Celeron (2786.35-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x633 Family =3D 6 Model =3D 3 Stepp= ing =3D 3 Features=3D0x781abfd Features2=3D0x80000001> real memory =3D 67108864 (64 MB) avail memory =3D 55808000 (53 MB) Event timer "LAPIC" frequency 0 Hz quality 500 ACPI APIC Table: ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 cpu0: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 100000000 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci_link0: BIOS IRQ 9 does not match initial IRQ 11 pci0: on pcib0 Correcting Natoma config for non-SMP isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x= c000-0xc00f at device 1.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 1.3 (no driver attached) vgapci0: mem 0xf0000000-0xf1ffffff,0xf2000000-0xf2= 000fff at device 2.0 on pci0 ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 ed0: ed_stop_hw RST never set ed0: Ethernet address: 52:54:00:12:34:56 ed0: [ITHREAD] pci0: at device 4.0 (no driver attached) atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 atrtc0: [FILTER] Event timer "RTC" frequency 32768 Hz quality 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4 pmtimer0 on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2786349400 Hz quality 800 Starting kernel event timers: LAPIC @ 100Hz, RTC @ 128Hz Timecounters tick every 10.000 msec ad0: 512MB at ata0-master UDMA33=20 GEOM: ad0s1: geometry does not match label (255h,63s !=3D 16h,63s). ad1: 512MB at ata0-slave UDMA33=20 GEOM: ad1s1: geometry does not match label (255h,63s !=3D 16h,63s). ad2: 512MB at ata1-master UDMA33=20 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ad0s1a --6HoVBnoRn/ylzab8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkwf1FUACgkQC3+MBN1Mb4ibZACgxZGsryMkbDZQe1xxBbCNHrgT +nAAmgOK6Y5FTnUaiEU7Nj3aY2AS6VUP =am8o -----END PGP SIGNATURE----- --6HoVBnoRn/ylzab8--