From owner-freebsd-stable@FreeBSD.ORG Fri Nov 12 04:52:32 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B46431065672 for ; Fri, 12 Nov 2010 04:52:32 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 477F58FC0A for ; Fri, 12 Nov 2010 04:52:31 +0000 (UTC) Received: by wya21 with SMTP id 21so432855wya.13 for ; Thu, 11 Nov 2010 20:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=KqSsrTaxop98qjJLqNRLrGfbWGpjCldpPEig49+MTOg=; b=jPeVevhOUKIt1ZFv06ZFQwthg1wIkOGBBQsPqoGOF3+pM6FgqB8FAHomaeG2fsoRbS 52iVlPZyBz/fGiTBWZCSYOuJhlF1KRd7ywLgFgs18X1aB0oSXz7tZzU+EFnpjvyqAudW 0mPflr2Vc2V9xfcHfsb92iHHGS4u6yAKX0x9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YYJ1XE0HN45MzFsSSsr6/I6mpXbgIzOlYuPy5ympIVyjkIhMGKoIHqrUDaVIW6X20p 3HRKvT7ec30EMq01XRoKrpbDm8rZo9YliQpNUEVnfDXP5pmfCvFKXsE+i9Ej8xxPwChd SRkWdQl+/f1NEBHlNwX+fVPXHLwTF/C7erUcU= MIME-Version: 1.0 Received: by 10.216.171.75 with SMTP id q53mr1462651wel.74.1289536100889; Thu, 11 Nov 2010 20:28:20 -0800 (PST) Received: by 10.216.12.80 with HTTP; Thu, 11 Nov 2010 20:28:20 -0800 (PST) In-Reply-To: <20101112033008.GA47411@stlux503.dsto.defence.gov.au> References: <4CDC8CFC.8040402@FreeBSD.org> <20101112033008.GA47411@stlux503.dsto.defence.gov.au> Date: Thu, 11 Nov 2010 22:28:20 -0600 Message-ID: From: Brandon Gooch To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: New event timers for 8-STABLE [SEC=UNCLASSIFIED] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 04:52:32 -0000 On Thu, Nov 11, 2010 at 9:30 PM, Wilkinson, Alex wrote: > > =A0 =A00n Fri, Nov 12, 2010 at 02:40:28AM +0200, Alexander Motin wrote: > > =A0 =A0>I've created a patch, merging all kernel event timers related stu= ff from > =A0 =A0>HEAD to 8-STABLE. The only thing I have skipped at this moment wa= s mips > =A0 =A0>architecture, because of too big code difference there between HE= AD and > =A0 =A0>8-STABLE. Patch appeared to be quite large and includes more then= 60 SVN > =A0 =A0>revisions from HEAD. I hope I haven't missed anything important. = I would > =A0 =A0>like to ask interested people to test it. Patched code successful= ly > =A0 =A0>builds on all platforms and successfully runs on my amd64 test ma= chine. > =A0 =A0> > =A0 =A0>In HEAD code seems to be working enough stable, There only two kn= own > =A0 =A0>open issues at the moment: > =A0 =A0> - kernel freeze on XEN HVM when using LAPIC timer in one-shot mo= de -- > =A0 =A0>can be workarounded by switching to periodic mode or other timer. > =A0 =A0> - if HPET interrupt shared with other device, system load averag= e may > =A0 =A0>lie (report +1 value) -- not a timer problem and not fatal. > =A0 =A0>Please report me if you find anything else. > =A0 =A0> > =A0 =A0>Latest patch can be found here: > =A0 =A0>http://people.freebsd.org/~mav/timers_merge/timers_merge-20101111= .patch > =A0 =A0> > =A0 =A0>Merge instructions (list of revisions, if somebody want to redo i= t): > =A0 =A0>http://people.freebsd.org/~mav/timers_merge/guide-20101111 > =A0 =A0> > =A0 =A0>After patching you need just rebuild/reinstall the kernel. I have= n't > =A0 =A0>merged related manual pages yet, so, if needed, consult with man = pages > =A0 =A0>from HEAD: eventtimers(7), attimer(4), atrtc(4), hpet(4). > > patches apply cleanly but buildkernel fails: > > make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | =A0MKDEP_CPP=3D"cc -E" CC= =3D"cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -march=3Dn= ocona -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-proto= types =A0-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =A0-Wund= ef -Wno-pointer-sign -fformat-extensions -nostdinc =A0-I. -I/usr/src/sys -I= /usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/co= ntrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/s= ys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -= I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/s= rc/sys/contrib/opensolaris/compat -I/usr/src/sys/dev/cxgb -D_KERNEL -DHAVE_= KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=3D80= 00 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 = =A0-fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone =A0-mfpmath=3D38= 7 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow =A0-msoft-float -fno-asy= nchronous-unwind-tables -ffreestanding -fstack-protector > cc: /usr/src/sys/kern/kern_et.c: No such file or directory > cc: /usr/src/sys/kern/kern_clocksource.c: No such file or directory > /usr/src/sys/dev/acpica/acpi_hpet.c:46:24: error: sys/timeet.h: No such f= ile or directory > /usr/src/sys/x86/x86/local_apic.c:52:24: error: sys/timeet.h: No such fil= e or directory > /usr/src/sys/x86/isa/atrtc.c:45:24: error: sys/timeet.h: No such file or = directory > /usr/src/sys/x86/isa/clock.c:60:24: error: sys/timeet.h: No such file or = directory > mkdep: compile failed > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/MARGS. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > Revert the patch (patch -R) and reapply the patch with -p0: [/usr/src]# patch -p0 < /path/to/file.patch ...and try it again :) -Brandon