From owner-freebsd-current@FreeBSD.ORG Thu Sep 30 05:23:53 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 B1EB0106564A; Thu, 30 Sep 2010 05:23:53 +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 0C2608FC0C; Thu, 30 Sep 2010 05:23:52 +0000 (UTC) Received: by bwz15 with SMTP id 15so1487784bwz.13 for ; Wed, 29 Sep 2010 22:23:51 -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=+MpEQ5KVrzY8+Vqn1ik6ZXIkhHwuGbORSKTbnznXwxw=; b=HiIKHRaJXplc6PK+3KRpQ1NMH94+O++18rlCUTBEbF+iNproYWCoRNlSoO4P4Karhy Ch3w9AX8sjevITv06JItB6NxSQ6YkFsTm/gRKDTwwGGyiXGCslapERQfJ973ude5wB4w p8fBvofsMIiOvd27xDnVkwY2Mupzkz120hOZw= 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=Yu+ijXrZyKVFsrDNpqvsRcjj5utWv9AOlf8gfGdSnwMzCQZZsJw873eh789WxwoALa XgAISkzK29aay9DY3V3sQk6BTD4Xn1xmFS7S6afoCpxeknlBbxRaCNaQN832IaTpxj1/ Twrm3ooisL6FzYo6syHRX8+0Ukok83PpyywUo= Received: by 10.204.103.207 with SMTP id l15mr2052340bko.196.1285824231769; Wed, 29 Sep 2010 22:23:51 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id v7sm4681073bkx.4.2010.09.29.22.23.49 (version=SSLv3 cipher=RC4-MD5); Wed, 29 Sep 2010 22:23:50 -0700 (PDT) Sender: Alexander Motin Message-ID: <4CA41ED6.5060208@FreeBSD.org> Date: Thu, 30 Sep 2010 08:23:34 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: David Naylor References: <201009291207.53146.naylor.b.david@gmail.com> <201009291820.02401.naylor.b.david@gmail.com> <4CA36869.7040205@FreeBSD.org> <201009292048.11194.naylor.b.david@gmail.com> In-Reply-To: <201009292048.11194.naylor.b.david@gmail.com> X-Enigmail-Version: 0.96.0 Content-Type: multipart/mixed; boundary="------------070406070505010906060903" Cc: freebsd-current@freebsd.org, Andriy Gapon Subject: Re: Safe-mode on amd64 broken 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: Thu, 30 Sep 2010 05:23:53 -0000 This is a multi-part message in MIME format. --------------070406070505010906060903 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit David Naylor wrote: > On Wednesday 29 September 2010 18:25:13 Alexander Motin wrote: >> David Naylor wrote: >>> On Wednesday 29 September 2010 16:19:08 Andriy Gapon wrote: >>>> What do you try to actually achieve? >>> I was trying to boot a system and it was panicking due to stray >>> interrupts. It turned out to be caused by HPET. I found >>> `hint.hpet.0.clock=0' which fixed the problem. >>> >>> This means HPET does not work on any of my machines. The other one's >>> symptoms are hda losing interrupts after a period of up-time. >> What chipset do you use? Nvidia MCP5x? Could you send me your verbose >> dmesg? > > Yes, the one is a MCP51, the other is a ICH8M. > > The desktop is a Gigabyte N650SLI-DS4L. Its symptom is hda losing interrupts > after a period of time. There are too many reports about different lost interrupts problems on different controllers of MCP5x. I don't know the reason. Attached patch should disable using regular HPET interrupts on NVidia chipsets. I hope it will work as workaround. May be it is too aggressive, but better to be safe then sorry. I assume that legacy_route mode may still work fine there. It would be nice to test it. > The laptop is a Acer 2920. Its symptom for a GENERIC is a panic saying stray > interrupt (irq7), with a custom kernel booting stalls. This is strange, as my Acer with the same ICH8M works fine in all possible modes. Also IMHO stray interrupts are not a reason to panic. Could you show what it looks like? -- Alexander Motin --------------070406070505010906060903 Content-Type: text/plain; name="hpet.nonv.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hpet.nonv.patch" --- acpi_hpet.c.prev 2010-09-13 10:25:36.000000000 +0300 +++ acpi_hpet.c 2010-09-30 08:09:34.000000000 +0300 @@ -58,6 +58,7 @@ __FBSDID("$FreeBSD: head/sys/dev/acpica/ #define HPET_VENDID_AMD 0x4353 #define HPET_VENDID_INTEL 0x8086 +#define HPET_VENDID_NVIDIA 0x10de ACPI_SERIAL_DECL(hpet, "ACPI HPET support"); @@ -492,6 +493,12 @@ hpet_attach(device_t dev) if (vendor == HPET_VENDID_AMD) sc->allowed_irqs = 0x00000000; /* + * NVidia MCP5x chipsets have number of unexplained interrupt + * problems. For some reason, using HPET interrupts breaks HDA sound. + */ + if (vendor == HPET_VENDID_NVIDIA && rev <= 0x01) + sc->allowed_irqs = 0x00000000; + /* * Neither QEMU nor VirtualBox report supported IRQs correctly. * The only way to use HPET there is to specify IRQs manually * and/or use legacy_route. Legacy_route mode work on both. --------------070406070505010906060903--