From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 17 02:56:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07A6016A420 for ; Thu, 17 Nov 2005 02:56:17 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B63943D46 for ; Thu, 17 Nov 2005 02:56:16 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1823036nzo for ; Wed, 16 Nov 2005 18:56:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=FBDq/a1WHv4UaDo4o0PV8RLf6ZK4S6ROCorzO+/I2OnnzmdCV9DAcBXQbTm7UR5UpLZjMFMZf2SDIIXKW8eyG3W4BtgLMJQAfwQ4xKzrPMILDvE21FBpjrHtpqjoI46Glw5vkQrrvaZl+VyVyAVIA0ytuacH43h9z6jKaN65MCo= Received: by 10.36.3.15 with SMTP id 15mr7157704nzc; Wed, 16 Nov 2005 18:56:15 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 38sm440002nzk.2005.11.16.18.56.12; Wed, 16 Nov 2005 18:56:15 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id jAH2sR4b009223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Nov 2005 11:54:27 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id jAH2sQj5009222; Thu, 17 Nov 2005 11:54:26 +0900 (KST) (envelope-from yongari@gmail.com) Date: Thu, 17 Nov 2005 11:54:26 +0900 From: Pyun YongHyeon To: Andrew Bliznak Message-ID: <20051117025426.GC8586@rndsoft.co.kr> References: <21be38170511160253w1919fa1w71bad77f52cec2b0@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <21be38170511160253w1919fa1w71bad77f52cec2b0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: CURRENT Intel ICH5 (82801EB) errors X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 02:56:17 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 16, 2005 at 01:53:25PM +0300, Andrew Bliznak wrote: > Just for information > > FreeBSD beef.xxxxxx.com 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Nov 15 > 13:03:12 EET 2005 > andrew@pyvo.xxxxxx.com:/usr/home/andrew/C/obj/usr/home/andrew/C/src/sys/GENERIC > i386 > > from dmesg: > --- > Nov 15 17:02:31 beef kernel: pcm0: port > 0xd000-0xd0ff,0xe100-0xe13f mem > 0xf8201000-0xf82011ff,0xf8202000-0xf82020ff irq 17 at device 31.5 on > pci0 > Nov 15 17:02:31 beef kernel: pcm0: unable to initialize the card > Nov 15 17:02:31 beef kernel: device_attach: pcm0 attach returned 6 How about attached patch? PS. Don't blame me if the patch does not work for you. I don't have these hardwares. -- Regards, Pyun YongHyeon --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ich.patch2" --- sys/dev/sound/pci/ich.c.orig Wed Nov 16 09:50:55 2005 +++ sys/dev/sound/pci/ich.c Thu Nov 17 11:51:12 2005 @@ -684,6 +684,7 @@ sc->devid == INTEL_82801DB || sc->devid == INTEL_82801EB || sc->devid == INTEL_6300ESB || sc->devid == INTEL_82801FB || sc->devid == INTEL_82801GB)) { + device_printf(sc->dev, "primary codec not ready!"); return ENXIO; } } @@ -759,28 +760,25 @@ } /* + * Enable bus master. On ich4/5 this may prevent the detection of + * the primary codec becoming ready in ich_init(). + */ + pci_enable_busmaster(dev); + + /* * By default, ich4 has NAMBAR and NABMBAR i/o spaces as * read-only. Need to enable "legacy support", by poking into * pci config space. The driver should use MMBAR and MBBAR, * but doing so will mess things up here. ich4 has enough new * features it warrants it's own driver. */ - if (vendor == INTEL_VENDORID && devid == INTEL_82801DB) { - pci_write_config(dev, PCIR_ICH_LEGACY, ICH_LEGACY_ENABLE, 1); - } - - /* - * Enable bus master. On ich4/5 this may prevent the detection of - * the primary codec becoming ready in ich_init(). - */ - pci_enable_busmaster(dev); - - if (vendor == INTEL_VENDORID && (devid == INTEL_82801EB || - devid == INTEL_6300ESB || devid == INTEL_82801FB || - devid == INTEL_82801GB)) { + if (vendor == INTEL_VENDORID && (devid == INTEL_82801DB || + devid == INTEL_82801EB || devid == INTEL_6300ESB || + devid == INTEL_82801FB || devid == INTEL_82801GB)) { sc->nambarid = PCIR_MMBAR; sc->nabmbarid = PCIR_MBBAR; sc->regtype = SYS_RES_MEMORY; + pci_write_config(dev, PCIR_ICH_LEGACY, ICH_LEGACY_ENABLE, 1); } else { sc->nambarid = PCIR_NAMBAR; sc->nabmbarid = PCIR_NABMBAR; --wac7ysb48OaltWcw--