From owner-freebsd-current@FreeBSD.ORG Tue Dec 26 04:19:04 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92A2816A412 for ; Tue, 26 Dec 2006 04:19:04 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id 2AC7B13C46D for ; Tue, 26 Dec 2006 04:19:04 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so3591745wxc for ; Mon, 25 Dec 2006 20:19:03 -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=uTX5uuH9C1IDtD1zNuNClbf4G9Ue6pvJee0Lyyps11usqwmkJErucHXThHL8E922CCHcLOj4HkyVORUmYps3Ulyp+nslDoGsgutA6lHX3rGqfYglW+xnyyRI3geVIMqu5vE7bgp1/QEpENzl3qXVKbKY5GlJSJvAyXsvuqYIdnY= Received: by 10.70.113.13 with SMTP id l13mr22809268wxc.1167105186646; Mon, 25 Dec 2006 19:53:06 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id g5sm1681390wra.2006.12.25.19.53.04; Mon, 25 Dec 2006 19:53:05 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id kBQ3pGkL002487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Dec 2006 12:51:16 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id kBQ3pFXB002486; Tue, 26 Dec 2006 12:51:15 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 26 Dec 2006 12:51:15 +0900 From: Pyun YongHyeon To: "Bruce M. Simpson" Message-ID: <20061226035115.GA994@cdnetworks.co.kr> References: <20061129013052.GC71523@cdnetworks.co.kr> <457DF011.9010701@FreeBSD.org> <20061212020023.GA9698@cdnetworks.co.kr> <6BC2A5CB-AC24-4EB3-8C6C-A4D0A5EA7183@siliconlandmark.com> <20061212124428.GB9698@cdnetworks.co.kr> <20061213023325.P56950@lexi.siliconlandmark.com> <20061213081134.GB13506@cdnetworks.co.kr> <20061213041018.I56950@lexi.siliconlandmark.com> <20061213123235.GC13506@cdnetworks.co.kr> <458DA5B2.3030906@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <458DA5B2.3030906@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@FreeBSD.org Subject: Re: Enabling MSI on the Asus Vintage AH-1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2006 04:19:04 -0000 On Sat, Dec 23, 2006 at 09:54:58PM +0000, Bruce M. Simpson wrote: > Hi, > > It looks like MSI was detected, but not used by the msk(4) driver on the > Asus Vintage AH-1. > > This is a uniprocessor Athlon64 system. The PCI bridges on this system > aren't in the MSI blacklist, however, there are several odd messages > regarding a non-default MSI window. Looking at the code suggests it > expects to see the MSI window at 0xfee00000. > > BTW: This system's on-board SATA controller stopped working with 6.2-RC, > so I'm using an add-on PCI-e card for SATA to connect the root disk. > > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pci0: physical bus=0 [...] > pcib2: at device 6.0 on pci0 > pcib2: secondary bus 2 > pcib2: subordinate bus 2 > pcib2: I/O decode 0xc000-0xcfff > pcib2: memory decode 0xfe400000-0xfe4fffff > pcib2: no prefetched decode > pci2: on pcib2 > pci2: physical bus=2 > found-> vendor=0x11ab, dev=0x4362, revid=0x19 > bus=2, slot=0, func=0 > class=02-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0107, statreg=0x4010, cachelnsz=16 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=5 > powerspec 2 supports D0 D1 D2 D3 current D0 > VPD Ident: Marvell Yukon 88E8053 Gigabit Ethernet Controller > PN: Yukon 88E8053 > EC: Rev. 1.9 > MN: Marvell > SN: AbCdEfG32a88a > CP: id 1, BAR16, off 0x3cc > RV: 0x24 > MSI supports 2 messages, 64 bit ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I think Yukon II supports one MSI message. But all systems I know reported that it supports two MSI messages. This is main reason why msk(4) doesn't use MSI ATM. I don't know why Yukon II claims to support two MSI messages.(for dual port MAC configuraiton?) You can force to use MSI by assigning 'msic = 1' before calling pci_alloc_msi(9) in mskc_attach(). However it wouldn't work if you reload the msk(4) again. Other than that it works well with MSI. > map[10]: type 1, range 64, base 0xfe4fc000, size 14, enabled > pcib2: requested memory range 0xfe4fc000-0xfe4fffff: good > map[18]: type 4, range 32, base 0xc800, size 8, enabled > pcib2: requested I/O range 0xc800-0xc8ff: in range > pcib2: matched entry for 2.0.INTA > pcib2: slot 0 INTA hardwired to IRQ 18 > mskc0: port 0xc800-0xc8ff mem > 0xfe4fc000-0xfe4fffff irq 18 at device 0.0 on pci2 > mskc0: MSI count : 2 > mskc0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfe4fc000 > mskc0: RAM buffer size : 48KB > mskc0: Port 0 : Rx Queue 32KB(0x00000000:0x00007fff) > mskc0: Port 0 : Tx Queue 16KB(0x00008000:0x0000bfff) > msk0: on mskc0 > msk0: bpf attached > msk0: Ethernet address: 00:15:f2:32:a8:8a > miibus0: on msk0 > e1000phy0: on miibus0 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseTX-FDX, auto > ioapic0: routing intpin 18 (PCI IRQ 18) to vector 49 > mskc0: [MPSAFE] > mskc0: [FAST] > -- Regards, Pyun YongHyeon