From owner-freebsd-x11@FreeBSD.ORG  Sat Sep 26 19:49:02 2009
Return-Path: <owner-freebsd-x11@FreeBSD.ORG>
Delivered-To: freebsd-x11@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 49A77106566B;
	Sat, 26 Sep 2009 19:49:02 +0000 (UTC)
	(envelope-from sarumont@sigil.org)
Received: from mail.sigil.org (mail.sigil.org [208.86.227.164])
	by mx1.freebsd.org (Postfix) with ESMTP id 0E1208FC14;
	Sat, 26 Sep 2009 19:49:01 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by mail.sigil.org (Postfix) with ESMTP id 63834C036F;
	Sat, 26 Sep 2009 14:06:08 -0500 (CDT)
X-Virus-Scanned: amavisd-new at sigil.org
Received: from mail.sigil.org ([127.0.0.1])
	by localhost (mail.sigil.org [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id csk3ptmb5rP9; Sat, 26 Sep 2009 14:06:07 -0500 (CDT)
Received: from divination.portal.sigil.org (ip72-202-157-83.ks.ks.cox.net
	[72.202.157.83])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.sigil.org (Postfix) with ESMTPSA id 71686C036C;
	Sat, 26 Sep 2009 14:06:06 -0500 (CDT)
Received: by divination.portal.sigil.org (sSMTP sendmail emulation);
	Sat, 26 Sep 2009 14:48:04 -0500
From: "Richard Kolkovich" <sarumont@sigil.org>
Date: Sat, 26 Sep 2009 14:48:04 -0500
To: Robert Noland <rnoland@FreeBSD.org>
Message-ID: <20090926194802.GA67832@divination.portal.sigil.org>
References: <20090924181427.GD2539@magus.portal.sigil.org>
	<20090925143910.GD61689@divination.portal.sigil.org>
	<1253897144.2065.150.camel@balrog.2hip.net>
	<20090925173416.GF61689@divination.portal.sigil.org>
	<1253915723.2145.53.camel@balrog.2hip.net>
	<20090926001158.GA42914@divination.portal.sigil.org>
	<1253925689.2065.81.camel@balrog.2hip.net>
	<20090926045706.GB42914@divination.portal.sigil.org>
	<1253977337.2048.17.camel@balrog.2hip.net>
	<1253993801.2048.295.camel@balrog.2hip.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf"
Content-Disposition: inline
In-Reply-To: <1253993801.2048.295.camel@balrog.2hip.net>
X-OS: FreeBSD divination 8.0-BETA3 i386
X-Mailer: Mutt 1.5.20 (2009-06-14)
X-Composed-With: vim
X-PGP-Key: http://sarumont.sigil.org/pubkey.asc
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: freebsd-x11@freebsd.org
Subject: Re: HD4550 DRI issues
X-BeenThere: freebsd-x11@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: X11 on FreeBSD -- maintaining and support <freebsd-x11.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-x11>,
	<mailto:freebsd-x11-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-x11>
List-Post: <mailto:freebsd-x11@freebsd.org>
List-Help: <mailto:freebsd-x11-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-x11>,
	<mailto:freebsd-x11-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Sep 2009 19:49:02 -0000


--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 26, 2009 at 02:36:41PM -0500, Robert Noland wrote:
> > Ok, attached is a really simple client that will allocate 32MB of
> > scatter-gather memory and map a 1MB ring buffer out of that.  The
> > "contents" values should always be 0.  Build the client with:
> >=20
> > gcc -O2 -pipe -I/usr/local/include -I/usr/local/include/drm
> > -L/usr/local/lib -ldrm -o drm-test drm-test.c
> >=20
> > To perform the test, you will need to boot up in console. (No X)
> > Manually kldload the radeon driver and then as root execute drm-test.
>=20
> Since nothing that we are doing here is actually device specific, I
> loaded this up on the VIA VX800 board, which is an i386 build.
> Everything works fine.  Sample *good* output:
>=20
> gopher% gcc -O2 -pipe -I/usr/local/include -I/usr/local/include/drm
> -L/usr/local/lib -ldrm -o drm-test drm-test.c
> gopher% sudo ./drm-test
> Allocated 32MB with handle=3D0x00000000e82b8000
> Added 1024KB map for ring buffer with handle=3D0x00000000e82b8000
> ring=3D0x00000028300000, contents=3D0x0000000000000000
>=20

Here's my output:

+% sudo ./drm-test=20
Allocated 32MB with handle=3D0x00000000dc595000
Added 1024KB map for ring buffer with handle=3D0x00000000dc595000
ring=3D0x00000028300000, contents=3D0x000000003c66c369

I guess those are the expected results of the test given what we've seen pr=
eviously...

I'm running on an Intel x58 board, i7 processor.  This is on the UP i386 -C=
URRENT kernel I built.

--=20

Richard Kolkovich
sarumont@sigil.org

--J2SCkAp4GZ/dPZZf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkq+b+UACgkQfXtD1KVAIbAZvACfcdkrTTtO32VbUCWuDYbH8j8q
XcMAoJo7kQsoeANZ2HiOklSOTg4XureG
=Kw+z
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--