From owner-freebsd-stable@FreeBSD.ORG Mon Sep 25 12:56:52 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCF9916A40F for ; Mon, 25 Sep 2006 12:56:52 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC0B543D8F for ; Mon, 25 Sep 2006 12:56:39 +0000 (GMT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id k8PCuc0I038180; Mon, 25 Sep 2006 05:56:38 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id k8PCucbw038179; Mon, 25 Sep 2006 05:56:38 -0700 (PDT) (envelope-from david) Date: Mon, 25 Sep 2006 05:56:38 -0700 From: David Wolfskill To: Andrew Kolchoogin Message-ID: <20060925125638.GW698@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Andrew Kolchoogin , freebsd-stable@freebsd.org References: <45179684.10401@rinet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VXH143WYhfIPisUc" Content-Disposition: inline In-Reply-To: <45179684.10401@rinet.ru> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: Direct Rendering Manager problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 12:56:53 -0000 --VXH143WYhfIPisUc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 25, 2006 at 12:42:44PM +0400, Andrew Kolchoogin wrote: > Dear colleagues, >=20 > I've recently discovered some oddity with DRM on FreeBSD. >=20 > Maybe it's a FAQ, but it seems to me that both on-demand kernel=20 > module loading and loading them in /boot/loader.conf is broken on recent= =20 > RELENG_6. That does not appear to be my experience; more details below. > I've an ATI Radeon Mobility 9700 and self-built RELENG_6. When I=20 > started X, X.org server reports that no DRI available. Manual looking=20 > into /dev shows that no /dev/dri directory presents at all. Loading=20 > radeon.ko in /boot/loader.conf doesn't fix the problem. Also no=20 > DRM-related lines appears in dmesg output. >=20 > But problem goes away after adding line "device radeondrm" to=20 > kernel configuration file, rebuilding kernel and rebooting the machine.= =20 > Direct Rendering Manager initialises correctly, and node /dev/dri/card0= =20 > exists. >=20 > Are there any suggestions for additional testing? Here is some relevant information from my current laptop. Note that its disk drive was moved from the previous laptop (same model, but used an nVidia video card), so I had merely commented out loading the nvidia module while I was working on switching to the radeon module (and hadn't yet got around to deleting the line). g1-18(6.2-P)[1] uname -a FreeBSD g1-18.catwhisker.org. 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #185: S= un Sep 24 06:36:42 PDT 2006 root@g1-18.catwhisker.org.:/common/S1/obj/u= sr/src/sys/LAPTOP_30W i386 g1-18(6.2-P)[2] ls -la /dev/dri/ total 1 dr-xr-xr-x 2 root wheel 512 Sep 24 10:19 . dr-xr-xr-x 5 root wheel 512 Dec 31 1969 .. crw-rw---- 1 root wheel 0, 135 Sep 24 10:18 card0 g1-18(6.2-P)[3] kldstat Id Refs Address Size Name 1 16 0xc0400000 6a00b8 kernel 2 3 0xc0aa1000 1adb8 linux.ko 3 1 0xc0abc000 59f00 acpi.ko 4 1 0xc487f000 6000 linprocfs.ko 5 1 0xc4a13000 2000 rtc.ko 6 1 0xc4c15000 1e000 radeon.ko 7 1 0xc4c33000 e000 drm.ko g1-18(6.2-P)[4] cat /boot/loader.conf boot_verbose=3D"YES" debug.mpsafenet=3D"1" hw.ata.atapi_dma=3D"1" # nvidia_load=3D"YES" linux_load=3D"YES" g1-18(6.2-P)[5] grep -i driver /etc/X11/XF86Config Driver "keyboard" Driver "mouse" ### Available Driver options are:- Driver "radeon" g1-18(6.2-P)[6] grep 'ATI Technologies Inc Radeon' /var/log/Xorg.0.log (--) PCI:*(1:0:0) ATI Technologies Inc Radeon R250 Lf [FireGL 9000] rev 1, = Mem @ 0xe0000000/27, 0xfcff0000/16, I/O @ 0xc000/8, BIOS @ 0x80000000/17 g1-18(6.2-P)[7]=20 So it looks to me as if X handles loading the radeon.ko module and that (in turn) creates the /dev/dri/* entries -- as expected. Peace, david --=20 David H. Wolfskill david@catwhisker.org Believe SORBS at your own risk: 63.193.123.122 has been static since Aug 19= 99. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --VXH143WYhfIPisUc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkUX0gUACgkQmprOCmdXAD3utACfRq8sao5Ibb2YW4IqHZdjHxTI 4ZQAn3ZoIIR5KECxg4uskeahvAHLt5Qd =jjay -----END PGP SIGNATURE----- --VXH143WYhfIPisUc--