From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 24 20:48:45 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DA2C10656B5 for ; Fri, 24 Oct 2008 20:48:45 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id B18168FC14 for ; Fri, 24 Oct 2008 20:48:44 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by wx-out-0506.google.com with SMTP id s17so492866wxc.7 for ; Fri, 24 Oct 2008 13:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=OZ6SUGn8nFAkAzto7MYEMg9prWXrE3R+xJwZs/wRSus=; b=H5TGCw+9FHeg0/F+DjEMPwFFDk+UuiQatQnlz7jY5UaFdcxEoobaFl+PTJ+qbLW9V+ tdbW8jJZ6zrSztd9E/8h5q+WUKyu1L+lTnExhVYyRdVIJAC/+tOzbnnkQjmbzI/Wkv6k 7fzB9CPowqMVFWT9vaPHFM0ZTbiVI2EtC055c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=AENqM5vx62lCUCeSoe3jo1iUKwGGk8siFQFG5MoAqxP/m5pynmO4q5DyyXHlfQhCZM pzPrgK6eVtZiuuPEi5Hx1f/vt4cL5TXIuID387JRRN6Jda2W3ZECijIod/xCnYIboLET Ql6fXIqkvPEiNqEcD078b3ZtP9se5/VaMgqRQ= Received: by 10.231.19.3 with SMTP id y3mr1610704iba.53.1224881322985; Fri, 24 Oct 2008 13:48:42 -0700 (PDT) Received: by 10.231.11.72 with HTTP; Fri, 24 Oct 2008 13:48:42 -0700 (PDT) Message-ID: <3a142e750810241348t1c054cefn713441b5423181f2@mail.gmail.com> Date: Fri, 24 Oct 2008 22:48:42 +0200 From: "Paul B. Mahol" To: "Alexander Motin" In-Reply-To: <49021B5D.6070008@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49021B5D.6070008@FreeBSD.org> Cc: freebsd-multimedia@freebsd.org Subject: Re: HDA controllers and MSI support. 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: Fri, 24 Oct 2008 20:48:45 -0000 On 10/24/08, Alexander Motin wrote: > Hi. > > I have tried and found that my ICH8-based system successfully supports > Message Signaled Interrupts on HDA controller. It allows to avoid > interrupt sharing and in theory gives some performance benefits. > > It is now disabled in driver by default, but can be enabled via > hint.hdac.%d.msi device.hints control. You can see that MSI is in use if > your hdacX device uses interrupt vector above 255. > > I am thinking, shouldn't we enable this feature by default? > > There should be no problem with both supporting and nonsupporting > hardware. There could be only problems with broken hardware declaring > fake features. So I would like to know, is there any of such cases for > HDA hardware or not? It works for me: > vmstat -i interrupt total rate irq1: atkbd0 11234 9 irq9: acpi0 1532 1 irq12: psm0 81372 71 irq14: ata0 1 0 irq16: vgapci0 175701 153 irq17: ndis0+ 8240 7 cpu0: timer 2286240 1998 irq256: hdac0 99566 87 cpu1: timer 2286004 1998 Total 4949890 4326 hdac0@pci0:0:27:0: class=0x040300 card=0x30a2103c chip=0x27d88086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801G (ICH7 Family) High Definition Audio' class = multimedia cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[70] = PCI-Express 1 type 0 hdac0: mem 0xf4580000-0xf4583fff irq 16 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20081013_0113 hdac0: [ITHREAD] hdac0: HDA Codec #0: Analog Devices AD1981HD hdac0: HDA Codec #1: Lucent/Agere Systems (Unknown) pcm0: at cad 0 nid 1 on hdac0