From owner-freebsd-drivers@FreeBSD.ORG Thu Dec 27 13:44:47 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4F3716A41A for ; Thu, 27 Dec 2007 13:44:47 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 35D1B13C43E for ; Thu, 27 Dec 2007 13:44:46 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2097151fgg.35 for ; Thu, 27 Dec 2007 05:44:46 -0800 (PST) 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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=a+TjGdL9XaY1KBe/bfxyOMq5NTBwjm1c4fEfPAZFCus=; b=acR1HMDrJowLfGmERSJM6BeZmI01jozXKXRXCb5l+GDRocXXkkGaRFbLerHznDsNkOhayzbyXULk7WqWzHVZLQLIKJzi+DyauBb3M+ezwEv99omXqTkEO3Lf5ZRic9dq8i2fgMEU/alHm2G2SUFX4OCCH8Ynl72tsLEGL+Oll1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=N8jRWFNJ5C0FwR/qDzCVjOFltiDZf3NrjukASPy8uRhosaIVzAUcdwZk15eoflh4THTFbEt/6TNljV/UDUB5LWl0kz/oIRlx34W4di0TeaQLcITXXxINKW3Yv66v1Ql91opYr+6AFYzkTmQ9uL//GEDjqmX3cWug29OmchD1C0I= Received: by 10.82.116.15 with SMTP id o15mr1532587buc.3.1198761419923; Thu, 27 Dec 2007 05:16:59 -0800 (PST) Received: by 10.82.166.16 with HTTP; Thu, 27 Dec 2007 05:16:59 -0800 (PST) Message-ID: <8103ad500712270516l5db13e1ao388835d01fd19fc3@mail.gmail.com> Date: Thu, 27 Dec 2007 15:16:59 +0200 From: "Konstantin Dimitrov" To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PEX 8111 PCI-Express to PCI Bridge and FreeBSD X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 13:44:47 -0000 hello All, as far as i understand the documentation of the PEX 8111 PCI Express-to-PCI Bridge, which is freely available here: http://www.plxtech.com/products/expresslane/pex8111.asp it is "Fully Transparent PCI Express to PCI Bridge", but under FreeBSD it doesn't seem to behave as transparent, i.e. it doesn't seem to work well with the standard FreeBSD PCI-PCI bridge driver, because it's not possible to read/write from/to the PCI IC behind PEX 8111. i've tried PEX 8111 on vanilla WinXP (i.e. without any updates), that is 6-7 years old and thus made 3-4 years before even PEX 8111 existed and indeed it is transparent and doesn't require special drivers, works with the standard WinXP PCI-PCI bridge driver pci.sys and also it is possible to read/write from/to the PCI IC behind the PEX 8111, then made the same test under latest Debian GNU/Linux and again it works as transparent bridge and it is possible to read/write from/to the PCI IC behind the PEX 8111, without any special driver for the bridge. here is the real life situation, that i'm talking about: i am in possession of S010-V PCI-E audio card: http://www.digitalcowboy.jp/tokyostyle/products/s010/index.html actually, S010-V uses PEX 8111 bridge to place Envy24HT PCI audio controller on the PCI-E bus. i'm testing with very simple code, that makes dump of the Envy24HT EEPROM: http://xkodi.svobodno.com/xkodi/xkodi.c http://xkodi.svobodno.com/xkodi/xkodi.h http://xkodi.svobodno.com/xkodi/Makefile that code works well and it is tested under FreeBSD with more than 10 Envy24HT PCI cards, but it doesn't work under FreeBSD with the S010-V PCI-E card, the same code ported to Windows, as i mentioned above, works with S010-V PCI-E card and same apply to Linux. so, my kind request is someone to help me to resolve the issue. i'm suspecting that something is wrong with the FreeBSD PCI-PCI bridge driver, because only under FreeBSD, PEX 8111 doesn't behave as transparent bridge, but maybe i'm wrong. if someone want to look at the problem, i can give remote access to the machine with the S010-V PCI-E card. thank you and best wishes, konstantin From owner-freebsd-drivers@FreeBSD.ORG Fri Dec 28 15:40:05 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A249916A4C1 for ; Fri, 28 Dec 2007 15:40:05 +0000 (UTC) (envelope-from johan@rotmos.se) Received: from rotmos.se (www.infocusmedia.se [217.25.252.145]) by mx1.freebsd.org (Postfix) with ESMTP id 2136113C4E5 for ; Fri, 28 Dec 2007 15:40:04 +0000 (UTC) (envelope-from johan@rotmos.se) Received: from johan-anderzens-macbook-pro.local (localhost [IPv6:::1]) by rotmos.se (8.14.2/8.14.2) with ESMTP id lBSGCmnK027479; Fri, 28 Dec 2007 16:12:49 GMT (envelope-from johan@rotmos.se) Message-ID: <4775128C.20706@rotmos.se> Date: Fri, 28 Dec 2007 16:13:16 +0100 From: =?ISO-8859-1?Q?Johan_Anderz=E9n?= User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Sam Leffler References: <476943B8.6010701@rotmos.se> <476ADDB0.1030700@errno.com> In-Reply-To: <476ADDB0.1030700@errno.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-3.0 (rotmos.se [IPv6:::1]); Fri, 28 Dec 2007 16:12:49 +0000 (UTC) Cc: freebsd-drivers@freebsd.org Subject: Re: Atheros AR5008 support. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 15:40:05 -0000 Sam Leffler skrev: > Johan Anderz=E9n wrote: >> Hello, hopfully I posted to the right list, if not I apologize. >> >> Is there anyone who knows if there are any plans to support the=20 >> Atheros AR5008 wireless chip in FreeBSD in the near future? >=20 > 5416 support is in the 0.9.30.13 hal at http://www.freebsd.org/~sam. =20 > But only legacy support and the code has known issues. But people have= =20 > reported some success with it. No eta on proper support. Thanks, I had some success, but in the end it did not work out. Well=20 I'll have to go out and get myself another card. Again, thanks for the in= fo. - Johan >=20 > Sam >=20 From owner-freebsd-drivers@FreeBSD.ORG Fri Dec 28 19:56:17 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67B3F16A419 for ; Fri, 28 Dec 2007 19:56:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 0318713C44B for ; Fri, 28 Dec 2007 19:56:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8q) with ESMTP id 226422930-1834499 for multiple; Fri, 28 Dec 2007 14:42:08 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id lBSJdg7H064138; Fri, 28 Dec 2007 14:39:48 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Fri, 28 Dec 2007 13:04:47 -0500 User-Agent: KMail/1.9.6 References: <8103ad500712270516l5db13e1ao388835d01fd19fc3@mail.gmail.com> In-Reply-To: <8103ad500712270516l5db13e1ao388835d01fd19fc3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712281304.47922.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 28 Dec 2007 14:39:49 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5278/Fri Dec 28 11:55:36 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: PEX 8111 PCI-Express to PCI Bridge and FreeBSD X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 19:56:17 -0000 On Thursday 27 December 2007 08:16:59 am Konstantin Dimitrov wrote: > hello All, > > as far as i understand the documentation of the PEX 8111 PCI > Express-to-PCI Bridge, which is freely available here: > > http://www.plxtech.com/products/expresslane/pex8111.asp > > it is "Fully Transparent PCI Express to PCI Bridge", but under FreeBSD > it doesn't seem to behave as transparent, i.e. it doesn't seem to work > well with the standard FreeBSD PCI-PCI bridge driver, because it's not > possible to read/write from/to the PCI IC behind PEX 8111. Can you provide more detail on what you mean by read/write? Can you not do config space transactions to child devices of the bridge or can you not access mapped BARs of child devices or what exactly? -- John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Fri Dec 28 20:07:08 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08BC716A418; Fri, 28 Dec 2007 20:07:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B2B3613C45A; Fri, 28 Dec 2007 20:07:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lBSK1NVM076405; Fri, 28 Dec 2007 13:01:23 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 28 Dec 2007 13:06:11 -0700 (MST) Message-Id: <20071228.130611.-1827347860.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200712281304.47922.jhb@freebsd.org> References: <8103ad500712270516l5db13e1ao388835d01fd19fc3@mail.gmail.com> <200712281304.47922.jhb@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: PEX 8111 PCI-Express to PCI Bridge and FreeBSD X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 20:07:08 -0000 In message: <200712281304.47922.jhb@freebsd.org> John Baldwin writes: : On Thursday 27 December 2007 08:16:59 am Konstantin Dimitrov wrote: : > hello All, : > : > as far as i understand the documentation of the PEX 8111 PCI : > Express-to-PCI Bridge, which is freely available here: : > : > http://www.plxtech.com/products/expresslane/pex8111.asp : > : > it is "Fully Transparent PCI Express to PCI Bridge", but under FreeBSD : > it doesn't seem to behave as transparent, i.e. it doesn't seem to work : > well with the standard FreeBSD PCI-PCI bridge driver, because it's not : > possible to read/write from/to the PCI IC behind PEX 8111. : : Can you provide more detail on what you mean by read/write? Can you not do : config space transactions to child devices of the bridge or can you not : access mapped BARs of child devices or what exactly? Yes. I believe this may be the 'classic' problem that we've seen before: FreeBSD assumes that the BIOS assigned bridge resources and none are assigned. It may also be as simple as bus numbering. Warner From owner-freebsd-drivers@FreeBSD.ORG Fri Dec 28 22:39:17 2007 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28B9416A419 for ; Fri, 28 Dec 2007 22:39:17 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by mx1.freebsd.org (Postfix) with ESMTP id C8F4113C448 for ; Fri, 28 Dec 2007 22:39:16 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so5544560fka.11 for ; Fri, 28 Dec 2007 14:39:15 -0800 (PST) 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=XKUZGBDonIImcgmee0XG1NrO+fTdC2HgJc7Y78Y1gbE=; b=RUZgj4Ej3T9W/msE+7UQBeGGui7vKqspuWUaNY+YaqDpWIbJSYXubumK3iP61MlsmxccAI4XpoCK9AVrn+rIV7gtC3V354thI0ziL1x6YniyC4Y0iKja0nmYBe4SNpKY6kGDwyzSzxgVqgr+CXJ0S6v7t58sgUFCYriFyKdoLDA= 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=KnG7YKNJP//58K7SQrOkiR6AkiLaFFHYGA4WyLKa3hflsMGyCxuqIaMhM44vZNQchRwzahFkLUQjwzQyFrew5MZ9Za8mwJRsbbvbK+TljpeR9RWEO6U9cTqF2OVQjJK8qhingDpaEYp6GQw7hMq7XaLCRhJ7IHxfBXwvHNnW/K4= Received: by 10.82.134.12 with SMTP id h12mr17552334bud.29.1198881555223; Fri, 28 Dec 2007 14:39:15 -0800 (PST) Received: by 10.82.166.16 with HTTP; Fri, 28 Dec 2007 14:39:15 -0800 (PST) Message-ID: <8103ad500712281439h513c288cke761a0ee45c42f18@mail.gmail.com> Date: Sat, 29 Dec 2007 00:39:15 +0200 From: "Konstantin Dimitrov" To: "John Baldwin" In-Reply-To: <200712281304.47922.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8103ad500712270516l5db13e1ao388835d01fd19fc3@mail.gmail.com> <200712281304.47922.jhb@freebsd.org> Cc: freebsd-drivers@freebsd.org Subject: Re: PEX 8111 PCI-Express to PCI Bridge and FreeBSD X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 22:39:17 -0000 On Dec 28, 2007 8:04 PM, John Baldwin wrote: > On Thursday 27 December 2007 08:16:59 am Konstantin Dimitrov wrote: > > hello All, > > > > as far as i understand the documentation of the PEX 8111 PCI > > Express-to-PCI Bridge, which is freely available here: > > > > http://www.plxtech.com/products/expresslane/pex8111.asp > > > > it is "Fully Transparent PCI Express to PCI Bridge", but under FreeBSD > > it doesn't seem to behave as transparent, i.e. it doesn't seem to work > > well with the standard FreeBSD PCI-PCI bridge driver, because it's not > > possible to read/write from/to the PCI IC behind PEX 8111. > > Can you provide more detail on what you mean by read/write? Can you not do > config space transactions to child devices of the bridge or can you not > access mapped BARs of child devices or what exactly? i can access the PCI configuration registers of the child device (Envy24HT) connected to the bridge (PEX 8111): # pciconf -lv ................. pcib5@pci0:4:0:0: class=0x060400 card=0x00000000 chip=0x811110b5 rev=0x21 hdr=0x01 vendor = 'PLX Technology Inc.' device = 'PEX 8111 PCI Express-to-PCI Bridge' class = bridge subclass = PCI-PCI none1@pci0:5:4:0: class=0x040100 card=0x41543138 chip=0x17241412 rev=0x01 hdr=0x00 vendor = 'VIA Technologies Inc (Was: IC Ensemble Inc)' device = 'VT1720/24 Envy24PT/HT PCI Multi-Channel Audio Controller' class = multimedia subclass = audio and i can read them: # pciconf -r pci0:5:4:0: 0:31 17241412 02100005 04010001 00002000 0000a001 0000a401 00000000 00000000 and write to them: # pciconf -w pci0:5:4:0 0x04 0x04 # pciconf -r pci0:5:4:0: 0:31 17241412 02100004 04010001 00002000 0000a001 0000a401 00000000 00000000 and all those values are the correct values for the child device, but i can't access mapped BARs of the child device, the code that i'm testing with is very simple: http://xkodi.svobodno.com/xkodi/xkodi.c http://xkodi.svobodno.com/xkodi/xkodi.h http://xkodi.svobodno.com/xkodi/Makefile and works if the child (Envy24HT) is connected directly (without the PEX 8111 bridge) to the PCI bus. > > -- > John Baldwin >