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