From owner-freebsd-ppc@FreeBSD.ORG Mon Nov 5 03:12:55 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 639C9C00; Mon, 5 Nov 2012 03:12:55 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CEF78FC0A; Mon, 5 Nov 2012 03:12:54 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so2591029dad.13 for ; Sun, 04 Nov 2012 19:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=CKbrxDCYZYhx3Tv7c8rk/VWSrFDSGH/jWPzPsO+OUoc=; b=lM1hgTMI2nQhsHFemaqdFtNNYy0dNjkP17pz/7mf/TmVCgd+fcqlpd9l40bXlKsvHl UFGOwVjcXvWwDl7rnlkjGlsi//zQvy5dsEf5DHFozLj7BTZX9A35ilHa366kVKzBeTKD iObKogaHS1Yk1KVnFMSQL/EKkrdkgKepgr0DeHzNYNEkYV5sIBEj7ovwrOiUrjK3Ywya q9zsaV87TxBPCZ36Yyz7+idmNtDWXM/ARmBrbWzMyLWovdl3t1ffXwv/7E41ips5qaSR MJNrxSlLFyPXErXEzk8EGeDLAX3m3/sQt0bNPeqJWTmw8EprKYZtryIhcOJvIN9VCNdS +lrw== Received: by 10.68.83.68 with SMTP id o4mr27028281pby.25.1352085174590; Sun, 04 Nov 2012 19:12:54 -0800 (PST) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id qc7sm9785862pbc.15.2012.11.04.19.12.52 (version=SSLv3 cipher=OTHER); Sun, 04 Nov 2012 19:12:53 -0800 (PST) Message-ID: <50972E9E.3010101@gmail.com> Date: Sun, 04 Nov 2012 19:12:30 -0800 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-ppc@freebsd.org, x11@FreeBSD.org Subject: PPC DRM graphics testing Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 03:12:55 -0000 So I've been plagued by issues on my rv250...the gpu is locking up at times and resulting in a backtrace that seems to indicate the card is no longer responding (drmCommandNone hangs on drmIoctl hangs on ioctl). At this point, I'm not sure if I have bad hardware, something is wrong with mesa for rv250, or something is wrong with drm. I unfortunately only have one PowerPC machine with a radeon card, so I'd love to see if anyone else has had any luck with similar configs (G4 tower with radeon AGP card). If anyone has a working radeon with DRM on powerpc, could you post glxinfo | fgrep 'render' (if you can get mesa-demos to compile...it's a chore). And/or results trying to run a 3d app like minetest, glxgears, whatever uses DRI would be really helpful in ruling out both my hardware and the drm code. I don't want to dig into the mesa mess unless I'm sure that's where the problem lies. By the way, WITH_NEW_XORG does work fine, so long as you already have an xorg.conf. I think previous problems I had with it were the result of module version mismatches or possibly XAA. I also learned a bit about endian-ness and why we don't have a htole8 :). Thanks! ps: steps for working drm on powerpc with radeon (or anything else that can do drm?): 1. Use CURRENT or "#define __BIG_ENDIAN 1" in /usr/src/sys/dev/drm/drmP.h 2. rebuild world+kernel or build just the drm module (cd ../../modules/drm && make clean && make && make install) 3. Remove anything disabling DRM/DRI from Xorg.conf (this would have been a manual addition) 4. Start X 5. Verify drm.ko/radeon.ko are loaded with kldstat and check xorg logs to see if it opened it ok and enabled acceleration.