From owner-freebsd-current@FreeBSD.ORG Sun Jun 14 14:12:54 2009 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 670691065702 for ; Sun, 14 Jun 2009 14:12:54 +0000 (UTC) (envelope-from thomas+freebsd@lotterer.net) Received: from angel.hellmouth.lotterer.net (angel.hellmouth.lotterer.net [88.198.53.82]) by mx1.freebsd.org (Postfix) with ESMTP id DEA648FC18 for ; Sun, 14 Jun 2009 14:12:53 +0000 (UTC) (envelope-from thomas+freebsd@lotterer.net) Received: from buffy.sunnydale.lotterer.net (ppp-93-104-163-93.dynamic.mnet-online.de [93.104.163.93]) by angel.hellmouth.lotterer.net (Postfix) with ESMTPS id 6BC181EC274; Sun, 14 Jun 2009 16:12:52 +0200 (CEST) Received: from [172.17.16.141] (faith.sunnydale.lotterer.net [172.17.16.141]) by buffy.sunnydale.lotterer.net (Postfix) with ESMTPSA id F25671073BF; Sun, 14 Jun 2009 14:12:44 +0000 (UTC) Message-ID: <4A350565.3070504@lotterer.net> Date: Sun, 14 Jun 2009 16:12:53 +0200 From: Thomas Lotterer User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: pyunyh@gmail.com References: <4A2DA8D9.2030300@lotterer.net> <20090610024959.GD63941@michelle.cdnetworks.co.kr> <4A2FF8E3.4060501@lotterer.net> <20090611002923.GA68519@michelle.cdnetworks.co.kr> <4A30FD94.4030409@lotterer.net> <20090611130557.GB68519@michelle.cdnetworks.co.kr> <4A312517.9030206@lotterer.net> <20090612055032.GD72855@michelle.cdnetworks.co.kr> <4A32BAE7.40605@lotterer.net> In-Reply-To: <4A32BAE7.40605@lotterer.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=3.0 tests=UNPARSEABLE_RELAY autolearn=failed version=3.2.5-openpkg X-Spam-Checker-Version: SpamAssassin 3.2.5-openpkg (2008-06-10) on angel.hellmouth.lotterer.net Cc: freebsd-current@freebsd.org Subject: Re: suspect bug in vge(4) 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: Sun, 14 Jun 2009 14:12:54 -0000 Thomas Lotterer wrote: > Pyun YongHyeon wrote: >> On Thu, Jun 11, 2009 at 05:39:03PM +0200, Thomas Lotterer wrote: >>> Pyun YongHyeon wrote: >>>> Could you show me dmesg output(only vge(4) related one)? >>> # dmesg | grep vge >>> vge0: port 0xec00-0xecff mem >>> 0xdf7ff000-0xdf7ff0ff irq 28 at device 0.0 on pci2 >>> vge0: MSIX count : 0 >>> vge0: MSI count : 1 >> >> I wonder why "Using 1 MSI messages" message is missing. > I stud if_vge.c with device_printf() statements. Turns out pci_alloc_msi() returns 6 = ENXIO The pci_alloc_msi_method() in /usr/src/sys/dev/pci/pci.c lists three cases returning ENXIO and all are located at the very top of the function. - If rid 0 is allocated, then fail. - Already have allocated messages? - If MSI is blacklisted for this system, fail. The pci_msi_blacklisted() and pci_msi_device_blacklisted() in /usr/src/sys/dev/pci/pci.c seem to check chipsets, devices and tunables Regarding the chipset # dmesg | egrep ^acpi acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7bde0000 (3) failed acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 Regarding the tunables # sysctl -a | fgrep hw.pci. hw.pci.honor_msi_blacklist: 1 hw.pci.enable_msix: 1 hw.pci.enable_msi: 1 hw.pci.do_power_resume: 1 hw.pci.do_power_nodriver: 0 hw.pci.enable_io_modes: 1 hw.pci.host_mem_start: 2147483648 hw.pci.mcfg: 1 hw.pci.irq_override_mask: 57080 No cheating here # sysctl hw.pci.honor_msi_blacklist=0 sysctl: oid 'hw.pci.honor_msi_blacklist' is read only Ideas and suggestions welcome. -- http://thomas.lotterer.net