From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 14:42:57 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE1031065677 for ; Tue, 16 Aug 2011 14:42:57 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5AEEE8FC0C for ; Tue, 16 Aug 2011 14:42:56 +0000 (UTC) Received: by bkat8 with SMTP id t8so4915697bka.13 for ; Tue, 16 Aug 2011 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=CQEA4ShoiTiogCAeKOK7eURUrZqglN8wHSuYUsWGKg8=; b=vb83Ti8DJl2JAgZsUOtdfQtSc3y9EnNsUpmByGyxot9BKd2BIaGMtGCiN/1uCaowQx +nW6Z+0RX5fTfGU03fJl/E5GQ3mG0DahwvTm4oUFmz75tizgie1PDP/oRR3JjW9ouUVh C4JLnaR1D5YzpFfweGRwv2inZJzaHuRF5ThCU= Received: by 10.204.182.1 with SMTP id ca1mr1191976bkb.328.1313505776216; Tue, 16 Aug 2011 07:42:56 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id p12sm43894bkp.1.2011.08.16.07.42.52 (version=SSLv3 cipher=OTHER); Tue, 16 Aug 2011 07:42:53 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E4A81DD.3030202@FreeBSD.org> Date: Tue, 16 Aug 2011 17:42:37 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Joe Schaefer References: <4E498326.2060308@FreeBSD.org> <4E4988F0.7060000@FreeBSD.org> <4E498E3D.7050100@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: Clock stalls on Sabertooth 990FX X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 14:42:58 -0000 Joe Schaefer wrote: >>>>>> If changing timecounter won't help, try please this patch: >>>>>> >>>>>> --- acpi_hpet.c.prev 2010-12-25 11:28:45.000000000 +0200 >>>>>> +++ acpi_hpet.c 2011-05-11 14:30:59.000000000 +0300 >>>>>> @@ -190,7 +190,7 @@ restart: >>>>>> bus_write_4(sc->mem_res, HPET_TIMER_COMPARATOR(t->num), >>>>>> t->next); >>>>>> } >>>>>> - if (fdiv < 5000) { >>>>>> + if (1 || fdiv < 5000) { >>>>>> bus_read_4(sc->mem_res, HPET_TIMER_COMPARATOR(t->num)); >>>>>> now = bus_read_4(sc->mem_res, HPET_MAIN_COUNTER); >>>>>> >>>>>> -- >>>>>> Alexander Motin >>>>> Will do next. >>>>> >>>> Patch applied. Running with HPET eventtimer and no stalls during >>>> make buildworld -j12. >>>> >> it maybe help, I used to come across a bug on Linux with regard to HPET, >> some northbridge chipset (maybe amd's, where >> HPET sit on) has a problem, that writes to compatitor regs will not take >> effect immediately, you need a read to reg to flush it; > > So far the patch performs flawlessly for me. I'm tempted to reenable turbo > mode just for kicks (someday, not today- delighted with the uptime!) I am going to commit following patch: http://people.freebsd.org/~mav/hpet.paranoid.patch . It uses same assumptions as Linux. Try it please. -- Alexander Motin