From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 22 18:58:06 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AF301065675 for ; Tue, 22 Mar 2011 18:58:06 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 0495C8FC15 for ; Tue, 22 Mar 2011 18:58:05 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p2MIw1bL098959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Mar 2011 20:58:02 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p2MIw12b020011; Tue, 22 Mar 2011 20:58:01 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p2MIw1M3020010; Tue, 22 Mar 2011 20:58:01 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 22 Mar 2011 20:58:01 +0200 From: Kostik Belousov To: Matthew Fleming Message-ID: <20110322185801.GW78089@deviant.kiev.zoral.com.ua> References: <20110322181219.GU78089@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eOOSeChkSGCyDSuc" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers Subject: Re: DMA controller on Northbridge? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2011 18:58:06 -0000 --eOOSeChkSGCyDSuc Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 22, 2011 at 11:55:59AM -0700, Matthew Fleming wrote: > On Tue, Mar 22, 2011 at 11:12 AM, Kostik Belousov w= rote: > > On Tue, Mar 22, 2011 at 10:11:04AM -0700, Matthew Fleming wrote: > >> How can I tell if the Northbridge on a machine has a built-in DMA > >> controller? =9AAnd if it does, what device would I use to control it? > >> > >> I ask because I'm working with a PCI card that has a 36-bit physical > >> address limit, and that means bounce buffers when using more than 64GB > >> of memory. =9AI'd prefer not to use bounce buffers, and since the card= 's > >> memory that I'm using is mapped into the physical space of the FreeBSD > >> host, the entire address space of the card that I care about is > >> available to FreeBSD. =9ASo while pio to the card's memory is too slow > >> to be useful, if there was a way to use a DMA controller on the > >> motherboard to get data into and out of the card, that may be > >> preferable to using the card's DMAC with the limited address space. > >> > >> But all that's just theory -- I have no idea how to tell whether the > >> mobo has a DMAC, and if it does, how to control it. =9AHelp? :-) > >> > >> Attached is the boot dmesg; I can also run pciconf commands, etc., to > >> help out with figuring out what I have. > > > > I believe what are you looking for is > > ftp://download.intel.com/technology/.../Intel(r)_VT_for_Direct_IO.pdf Oops. ftp://download.intel.com/technology/computing/vptech/Intel(r)_VT_for_Direct= _IO.pdf >=20 > This link doesn't work for me. >=20 > > On my X58 machine it is shown like this: > > none6@pci0:0:22:2: =9A class=3D0x088000 card=3D0xf38015d9 chip=3D0x3432= 8086 rev=3D0x12 hdr=3D0x00 > > =9A =9Avendor =9A =9A =3D 'Intel Corporation' > > =9A =9Adevice =9A =9A =3D 'DMA Engine' > > =9A =9Aclass =9A =9A =9A=3D base peripheral > > =9A =9Acap 11[80] =3D MSI-X supports 1 message in map 0x10 > > =9A =9Acap 10[90] =3D PCI-Express 2 root endpoint max data 128(128) lin= k x0(x0) > > =9A =9Acap 01[e0] =3D powerspec 3 =9Asupports D0 D3 =9Acurrent D0 >=20 > I do seem to have several DMA Engine entries in pciconf on this > hardware. Hopefully the above doc will explain what to do. :-) >=20 > Thanks, > matthew --eOOSeChkSGCyDSuc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk2I8TkACgkQC3+MBN1Mb4ihfACfQkWJTF9skHJ5Omk59moxN0j4 04cAn2bzAg33v3i8FbB/h+I9MJ2Z7BES =+cn0 -----END PGP SIGNATURE----- --eOOSeChkSGCyDSuc--