From owner-freebsd-multimedia@FreeBSD.ORG Thu Feb 23 18:58:36 2006 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 1710E16A420 for ; Thu, 23 Feb 2006 18:58:36 +0000 (GMT) (envelope-from Danovitsch@vitsch.net) Received: from smtp18.wxs.nl (smtp18.wxs.nl [195.121.247.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D22E43D55 for ; Thu, 23 Feb 2006 18:58:35 +0000 (GMT) (envelope-from Danovitsch@vitsch.net) Received: from Tuinhuisje.Vitsch.net ([217.166.176.2]) by smtp18.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IV500313M1LRN@smtp18.wxs.nl> for FreeBSD-Multimedia@freebsd.org; Thu, 23 Feb 2006 19:58:34 +0100 (CET) Received: from [192.168.87.6] (j56043.upc-j.chello.nl [24.132.56.43]) (authenticated bits=0) by Tuinhuisje.Vitsch.net (8.13.1/8.13.1) with ESMTP id k1NIwLRn018847; Thu, 23 Feb 2006 19:58:26 +0100 (CET envelope-from Danovitsch@vitsch.net) Date: Thu, 23 Feb 2006 19:58:13 +0100 From: "Daan Vreeken [PA4DAN]" In-reply-to: <003101c6378e$810b8f60$d0011f0a@leighton.co.id> To: "Angka H. K." Message-id: <200602231958.13567.Danovitsch@vitsch.net> Organization: Vitsch Electronics MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.8.2 References: <003101c6378e$810b8f60$d0011f0a@leighton.co.id> Cc: FreeBSD-Multimedia@freebsd.org Subject: Re: Problem on snd_ich module X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 18:58:36 -0000 Hi Angka, On Wednesday 22 February 2006 09:58, Angka H. K. wrote: > My card is recognized as Intel ICH 6 and using conexant ac 97 codec. Here > is my pciconf -lv output > > pcm0@pci0:30:2: class=0x040100 card=0x3080103c chip=0x266e8086 rev=0x03 > hdr=0x00 vendor = 'Intel Corporation' > device = '82801FB/FR/FW/FRW AC '97 Audio Controller' > class = multimedia > subclass = audio > > My problem is: > When module snd_ich loaded my system becoming very slow. > > >From the "top" command i get the"CPU states:" for the interrupt is high, > > up to 80% I have had the same problem last year with my laptop and the snd_ich driver. "vmstat -i" showed about 30.000 interrupts per second for pcm0. I fixed it by changing : ich_wr(sc, ICH_REG_GLOB_CNT, ICH_GLOB_CTL_COLD | ICH_GLOB_CTL_PRES, 4); into : ich_wr(sc, ICH_REG_GLOB_CNT, ICH_GLOB_CTL_COLD, 4); in the ich_init() function in src/sys/dev/sound/pci/ich.c I'm not an ICH-expert and I don't have the datasheets, so I don't know exactly what that bit toggles, but turning it off helped in my case without any loss of functionality. grtz, Daan