From owner-freebsd-x11@FreeBSD.ORG Sun Oct 21 09:30:08 2012 Return-Path: Delivered-To: freebsd-x11@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD1CCF03; Sun, 21 Oct 2012 09:30:08 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2238FC0C; Sun, 21 Oct 2012 09:30:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9L9U8VI004848; Sun, 21 Oct 2012 09:30:08 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9L9U8RM004844; Sun, 21 Oct 2012 09:30:08 GMT (envelope-from edwin) Date: Sun, 21 Oct 2012 09:30:08 GMT Message-Id: <201210210930.q9L9U8RM004844@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-x11@FreeBSD.org From: edwin@FreeBSD.org Subject: Re: ports/172924: x11/xorg -- first execution of xinit yields non-working mouse X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2012 09:30:08 -0000 Synopsis: x11/xorg -- first execution of xinit yields non-working mouse Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 Responsible-Changed-By: edwin Responsible-Changed-When: Sun Oct 21 09:30:08 UTC 2012 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=172924 From owner-freebsd-x11@FreeBSD.ORG Mon Oct 22 11:06:43 2012 Return-Path: Delivered-To: freebsd-x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47DB12F3 for ; Mon, 22 Oct 2012 11:06:43 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 2E8678FC20 for ; Mon, 22 Oct 2012 11:06:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9MB6hXq044623 for ; Mon, 22 Oct 2012 11:06:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9MB6goa044621 for freebsd-x11@FreeBSD.org; Mon, 22 Oct 2012 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Oct 2012 11:06:42 GMT Message-Id: <201210221106.q9MB6goa044621@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-x11@FreeBSD.org Subject: Current problem reports assigned to freebsd-x11@FreeBSD.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2012 11:06:43 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/172924 x11 x11/xorg -- first execution of xinit yields non-workin o ports/172379 x11 x11/Xorg errors: drmOpenDevice, /dev/dri/, /dev/dri/ca o ports/172102 x11 [PATCH] devel/gccmakedep build error with clang-cpp o ports/172101 x11 [PATCH] devel/imake build error with clang-cpp o ports/171433 x11 x11/xorg: xorg + hal: mouse input devices psm0 and usm o ports/171422 x11 graphics/libGL build error with python3.2 o ports/171242 x11 x11-drivers/xf86-input-mouse: fail to detect moused(8) o ports/170852 x11 [PATCH] x11-fonts/encodings: encodings.dir includes bo o ports/170690 x11 x11-servers/xorg-server eats memory o ports/170232 x11 x11-drivers/xf86-video-intel package building error wi o ports/170108 x11 x11-fonts/libfontenc: library in the package searches o ports/169875 x11 x11/xorg: vesa on 9-BETA1/Xorg 7.7 with radeon 6450 ca o ports/169794 x11 x11/xdm, several /usr/local/lib/X11/xdm/ files missing o ports/169561 x11 [patch] x11-toolkits/libXmu: disable specs o ports/169560 x11 [patch] x11/libICE: disable specs o ports/169559 x11 [patch] x11-fonts/fontsproto: disable specs o ports/168901 x11 New port: textproc/xorg-sgml-doctools o ports/168645 x11 [UPDATE] x11/luit to 1.1.1 f ports/167797 x11 graphics/gthumb crashes, dumps core o ports/167654 x11 x11-wm/twm - no mouse cursor o ports/167596 x11 [patch] I have rolled back x11-drivers/xf86-video-vmwa o ports/167228 x11 x11-drivers/xf86-video-intel : Missing dependency (x1 o ports/167194 x11 x11-drivers/xf86-input-synaptics 1.5.0 trackpoint(LENO o ports/166163 x11 graphics/dri: gthumb port crashes (SIGSEGV) within the o ports/165981 x11 devel/imake doesn't play nice with current xorg o ports/165599 x11 [x11/xkeyboard-config] x11/xkbcomp as a RUN_DEPENDS f power/165585 x11 x11-servers/xorg-server: Both Xorg and Xorg-server por p ports/164349 x11 [PATCH] x11/libXinerama :1 LeftOf or Above :0 mouse is o ports/161480 x11 [patch] x11/luit: don't depend on pty(4), use openpty( o ports/160968 x11 [patch] ports/x11/libXi broken manpages o ports/160963 x11 [patch] x11/bigreqsproto: disable specs o ports/159792 x11 [patch] USB HID devices support for x11-drivers/xf86-i o ports/158529 x11 [patch] x11-servers/xorg-server: conditionalize --with o ports/158513 x11 Broken Xvideo in x11-drivers/xf86-video-intel drivers o ports/156949 x11 x11-drivers/xf86-video-ati 6.14.1 produce black blank f ports/156424 x11 8.2R xrandr & xf86-video-intel & xorg-server packages o ports/156405 x11 x11-drivers/xf86-video-ati driver: no hardware renderi o ports/156042 x11 x11/xorg hang in combination with KWin-Tiling o ports/155696 x11 [patch] x11-servers/xorg-server: chase AIGLX altered d o ports/155683 x11 x11/xdm [patch] Enabling IPv6 support breaks IPv4 f ports/154510 x11 [patch] x11/xorg: xorg servers have Motif-crippling bu o ports/154502 x11 x11/xdm authorization failure when used with E17 windo o ports/154423 x11 x11-drivers/xf86-video-radeonhd: radeon xorg driver ca o ports/153593 x11 graphics/dri: clutter segfault, something to do with i o ports/153495 x11 x11-drivers/xf86-video-ati wavy line problem for lenov o ports/153358 x11 x11-drivers/xf86-video-intel: Intel driver freeze with o ports/152159 x11 [hang] xorg/x11: X11 freezes with Intel Mobile 965 and o ports/151596 x11 x11/xorg: wacom bamboo button 1 no longer works o ports/150633 x11 x11-servers/xorg-server: KVM switching causing X serve o ports/150155 x11 x11/xorg hangs after xrandr(1) usage o ports/149743 x11 x11/xorg: garbled window since Xorg-7.5 o ports/149636 x11 x11/xorg: buffer overflow in pci_device_freebsd_read_r o ports/148591 x11 information note for x11-drivers/xf86-input-synaptics o ports/148444 x11 [hang] x11-drivers/xf86-video-intel: intel driver free f ports/148340 x11 x11-drivers/xf86-video-neomagic: unresolved symbol xf8 o ports/146256 x11 x11/xorg does fails to start after upgrade from 7.4 to o ports/145649 x11 x11/xorg: X server crashes when starting opengl compos o ports/142069 x11 x11/xorg: After adding on a laptop Toshiba Sattelite L o ports/141660 x11 x11/xorg: X can't determine amount of video memory on o ports/139011 x11 [patch] Add options to support GLX TLS in x11-servers o ports/135276 x11 x11/xorg: GUI running first time only while using Free o ports/134132 x11 x11-servers/xorg-server: Intel i845 - xorg.conf with U o ports/131930 x11 [PATCH] x11-servers/xorg-server coredumps on exit o ports/131726 x11 x11-servers/xorg-server: xorg server messes with my eh o ports/122830 x11 x11/xorg: Error in I830WaitLpRing() o ports/120947 x11 x11/xsm ignores system.xsm and .xsmstartup 66 problems total. From owner-freebsd-x11@FreeBSD.ORG Tue Oct 23 01:40:59 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63F81765; Tue, 23 Oct 2012 01:40:59 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 202D38FC08; Tue, 23 Oct 2012 01:40:58 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so2455873pad.13 for ; Mon, 22 Oct 2012 18:40:58 -0700 (PDT) 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:cc:subject :references:in-reply-to:content-type; bh=He1SZkWyW46hRWbDBjTf945y30KMPEvHSftbGyRb+FY=; b=IwtarjtKg+60jWKw/eHH/rl/QsmP8SzXXGy52s/94UEEPr7eUlUe0jW5vUpee2Y21B ahizpQ6goAzsgWecTH+SQLIL8MCKh3nolU3Q5PoImPJtrdTw41+jAjGTWmPT3ceNgWBV 40pwjrCCYYRQMVGvXfaOy7i3tOszGSXuIX8gkgVvH0Vw0Bn63ozDTZOLh86/TJpbbdW6 gXXD0p1VRHjVNoybEccOIPzQ19rFpb1rolSXwTNhvi2theFOanyb1l6+ICBNd6OuUe5F xJEdQe0S15UD/yrVLQP7V6lCgOI3yBOoRbam6z+/Z8QNBA/sOdBKwBmfzdsIQLvL2GLY GZPQ== Received: by 10.68.222.231 with SMTP id qp7mr35027079pbc.7.1350956458516; Mon, 22 Oct 2012 18:40:58 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id o1sm6790206pax.21.2012.10.22.18.40.55 (version=SSLv3 cipher=OTHER); Mon, 22 Oct 2012 18:40:57 -0700 (PDT) Message-ID: <5085F595.4050609@gmail.com> Date: Mon, 22 Oct 2012 18:40:37 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121015 Thunderbird/16.0.1 MIME-Version: 1.0 To: Justin Hibbits Subject: Re: Does drm/dri currently work on PPC? References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Michael Copeland , freebsd-x11@freebsd.org, freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 01:40:59 -0000 On 10/22/12 10:27, Justin Hibbits wrote: > On Sun, Oct 21, 2012 at 5:05 PM, matt > wrote: > > On 10/21/12 06:21, Justin Hibbits wrote: > > On Sun, 21 Oct 2012 06:09:23 -0400 > > Michael Copeland > wrote: > > > >> On Sun, Oct 21, 2012 at 5:57 AM, matt > wrote: > >> > >>> Do we have working drm/dri for radeon on PowerPC? > >>> > >>> I saw some old stuff that implied it, and a recent-ish PR. > >>> > >>> Anyone have this working? Or did it work once? > >>> > >>> Matt > >>> _______________________________________________ > >>> freebsd-ppc@freebsd.org > mailing list > >>> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > >>> To unsubscribe, send any mail to > >>> "freebsd-ppc-unsubscribe@freebsd.org > " > >>> > >> Seems fine on a mini g4 with radeon 9200. > >> _______________________________________________ > >> freebsd-ppc@freebsd.org > mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > >> To unsubscribe, send any mail to > "freebsd-ppc-unsubscribe@freebsd.org > " > > Haven't had any luck on a G4 tower with radeon9600, but last I tried > > was over a year ago. Best I can say is try it :) > > > > - Justin > > > Thanks, I'll give it a try (g4 mdd/radeon 9000). I might be compiling > for a bit, but I'll send any results. > > Matt > > > Remember, sys/modules/drm is not built by default for PowerPC, so > you'll have to manually build those. I don't know what else is needed. > > - Justin I am running CURRENT based on yesterday evening's CVS. I built the drm modules: cd /usr/src/sys/modules/drm && make && make install This required setting NO_WERROR= and WERROR= in the makefiles for radeon and r128. The errors are "value computed is not used". The second fix required to get it to build was to make sure LINUX_DRM gets undefined, this may result from my build process, but the undef is ifdef'd for amd64. After the module is built "successfully" and installed, kldloading it doesn't do anything, no drm0 created. kldload radeon.ko creates a drm0, but Xorg immediately crashes when loading the radeon driver, bringing down the entire system. I assume there is some endian-unsafe stuff in radeon and drm maybe? My system is an AGP Radeon r200 on an MDD G4. Any ideas or anything I can do to help? Matt From owner-freebsd-x11@FreeBSD.ORG Tue Oct 23 01:59:55 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BD978DA; Tue, 23 Oct 2012 01:59:55 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A51B78FC08; Tue, 23 Oct 2012 01:59:54 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id v11so4646812vbm.13 for ; Mon, 22 Oct 2012 18:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=wOWK/7aX1OoKo697RK8MBBWsE+/Fu2RhQO5zpTbBJ5k=; b=z7o63nw+WMjCfbBroHrBPIGRzx3dyDLU0QHSkW9JbvEI+ITgPspgzliHy6WqDi0j3n ynzv7IMSc7hu6FBMaoLtzFSJx9Qn5ZErQToWFCrqsYWMRJRQA58IaqnDEbygeHxotLH8 Dw2GHOUp6662qG9gtnaPMF2MSaWkSTVeCztHcwtRt5wkd2wiXSKHGXf0LAq0TgRf9RmZ MtKlPgLM6hA/WGrFwzXyvmvsQpze8r41rKDO3yhE5S/LhzEsifGxu6Mrt4sotjilyja0 41a6ktFLUjOIA0m0wBj0eZvhO2/Bl96d/q64cWP3jpvqsvCOenTaVdt3FW1v4M6zkDZt DvxQ== Received: by 10.58.203.161 with SMTP id kr1mr20000475vec.35.1350957588157; Mon, 22 Oct 2012 18:59:48 -0700 (PDT) Received: from narn.knownspace (pool-108-48-127-15.washdc.fios.verizon.net. [108.48.127.15]) by mx.google.com with ESMTPS id w17sm11877493vdf.16.2012.10.22.18.59.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Oct 2012 18:59:48 -0700 (PDT) Date: Mon, 22 Oct 2012 21:59:45 -0400 From: Justin Hibbits To: matt Subject: Re: Does drm/dri currently work on PPC? Message-ID: <20121022215945.436873dc@narn.knownspace> In-Reply-To: <5085F595.4050609@gmail.com> References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; powerpc-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Michael Copeland , freebsd-x11@freebsd.org, freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 01:59:55 -0000 On Mon, 22 Oct 2012 18:40:37 -0700 matt wrote: > On 10/22/12 10:27, Justin Hibbits wrote: > > On Sun, Oct 21, 2012 at 5:05 PM, matt > > wrote: > > > > On 10/21/12 06:21, Justin Hibbits wrote: > > > On Sun, 21 Oct 2012 06:09:23 -0400 > > > Michael Copeland > > wrote: > > > > > >> On Sun, Oct 21, 2012 at 5:57 AM, matt > > wrote: > > >> > > >>> Do we have working drm/dri for radeon on PowerPC? > > >>> > > >>> I saw some old stuff that implied it, and a recent-ish PR. > > >>> > > >>> Anyone have this working? Or did it work once? > > >>> > > >>> Matt > > >>> _______________________________________________ > > >>> freebsd-ppc@freebsd.org > > mailing list > > >>> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > > >>> To unsubscribe, send any mail to > > >>> "freebsd-ppc-unsubscribe@freebsd.org > > " > > >>> > > >> Seems fine on a mini g4 with radeon 9200. > > >> _______________________________________________ > > >> freebsd-ppc@freebsd.org > > mailing list > > >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > > >> To unsubscribe, send any mail to > > "freebsd-ppc-unsubscribe@freebsd.org > > " > > > Haven't had any luck on a G4 tower with radeon9600, but last > > > I tried was over a year ago. Best I can say is try it :) > > > > > > - Justin > > > > > Thanks, I'll give it a try (g4 mdd/radeon 9000). I might be > > compiling for a bit, but I'll send any results. > > > > Matt > > > > > > Remember, sys/modules/drm is not built by default for PowerPC, so > > you'll have to manually build those. I don't know what else is > > needed. > > > > - Justin > > I am running CURRENT based on yesterday evening's CVS. > I built the drm modules: > cd /usr/src/sys/modules/drm && make && make install > This required setting NO_WERROR= and WERROR= in the makefiles for > radeon and r128. The errors are "value computed is not used". > The second fix required to get it to build was to make sure LINUX_DRM > gets undefined, this may result from my build process, but the undef > is ifdef'd for amd64. > > After the module is built "successfully" and installed, kldloading it > doesn't do anything, no drm0 created. > kldload radeon.ko creates a drm0, but Xorg immediately crashes when > loading the radeon driver, bringing down the entire system. > > I assume there is some endian-unsafe stuff in radeon and drm maybe? > My system is an AGP Radeon r200 on an MDD G4. > > Any ideas or anything I can do to help? > > Matt You're exactly where I was when I last tried. I didn't have the patience to look into it. I did read today, though, that NetBSD has working drm on PowerPC, so you can do some diffing with that codebase, or even try NetBSD on a spare partition to confirm. Beyond that, some ddb magic could help track down where the problem lies -- firewire cable and a spare machine come in quite handy for this type of thing, with dcons. Even getting a backtrace would be a good start to tracking down the bugs. DRM is something I want to get working on PowerPC, but it's low on my list (only so many hours in a day unfortunately), so I'm glad somebody is looking :) - Justin From owner-freebsd-x11@FreeBSD.ORG Tue Oct 23 03:06:14 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F5BB666; Tue, 23 Oct 2012 03:06:14 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2E9768FC08; Tue, 23 Oct 2012 03:06:13 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so99652pbb.13 for ; Mon, 22 Oct 2012 20:06:13 -0700 (PDT) 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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=6kN3NGRKqSTCOSYBOTA9pRRbV6m0KHHm0e1+jtD2Iko=; b=Q17bfHDza42TWD7RaHM7dztTmWLTGv8XUJHSsZdCjh8qW1bq4IL3l9Mt4KoQIIuPJq /F5vRHP+wu/Lvnp7yOLMMmUbRuzrx/6wEPTznGVM8cVMZ+jQd9aqiVmpp5q42X9yAwLJ ers+PPwUPJmx0MMO2jgq29+dQbZI/LO5KaeMPru0zcmwufI4IIJrHUsCSOpB1xo+ohpR tOdwVSDWydeyOo0RROepYH3K2i+xU8ZQc9PhGbUVS+Xng7/L05bIHSGbzTiooqW49wNl 3/S4oBtKfQK2CPKDJ4HvrcNfWT+RT/w7Nsrbia3c7ctTa13tp2E6ISuBVS4kmM9jx4b6 NvzQ== Received: by 10.66.90.73 with SMTP id bu9mr31113840pab.71.1350961573809; Mon, 22 Oct 2012 20:06:13 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id oi2sm6903683pbb.62.2012.10.22.20.06.10 (version=SSLv3 cipher=OTHER); Mon, 22 Oct 2012 20:06:12 -0700 (PDT) Message-ID: <50860990.7020204@gmail.com> Date: Mon, 22 Oct 2012 20:05:52 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121015 Thunderbird/16.0.1 MIME-Version: 1.0 To: Justin Hibbits Subject: Re: Does drm/dri currently work on PPC? References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> In-Reply-To: <20121022215945.436873dc@narn.knownspace> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Michael Copeland , freebsd-x11@freebsd.org, freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 03:06:14 -0000 On 10/22/12 18:59, Justin Hibbits wrote: > On Mon, 22 Oct 2012 18:40:37 -0700 > matt wrote: > >> On 10/22/12 10:27, Justin Hibbits wrote: >>> On Sun, Oct 21, 2012 at 5:05 PM, matt >> > wrote: >>> >>> On 10/21/12 06:21, Justin Hibbits wrote: >>> > On Sun, 21 Oct 2012 06:09:23 -0400 >>> > Michael Copeland >> > wrote: >>> > >>> >> On Sun, Oct 21, 2012 at 5:57 AM, matt >> > wrote: >>> >> >>> >>> Do we have working drm/dri for radeon on PowerPC? >>> >>> >>> >>> I saw some old stuff that implied it, and a recent-ish PR. >>> >>> >>> >>> Anyone have this working? Or did it work once? >>> >>> >>> >>> Matt >>> >>> _______________________________________________ >>> >>> freebsd-ppc@freebsd.org >>> mailing list >>> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>> >>> To unsubscribe, send any mail to >>> >>> "freebsd-ppc-unsubscribe@freebsd.org >>> " >>> >>> >>> >> Seems fine on a mini g4 with radeon 9200. >>> >> _______________________________________________ >>> >> freebsd-ppc@freebsd.org >>> mailing list >>> >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>> >> To unsubscribe, send any mail to >>> "freebsd-ppc-unsubscribe@freebsd.org >>> " >>> > Haven't had any luck on a G4 tower with radeon9600, but last >>> > I tried was over a year ago. Best I can say is try it :) >>> > >>> > - Justin >>> > >>> Thanks, I'll give it a try (g4 mdd/radeon 9000). I might be >>> compiling for a bit, but I'll send any results. >>> >>> Matt >>> >>> >>> Remember, sys/modules/drm is not built by default for PowerPC, so >>> you'll have to manually build those. I don't know what else is >>> needed. >>> >>> - Justin >> I am running CURRENT based on yesterday evening's CVS. >> I built the drm modules: >> cd /usr/src/sys/modules/drm && make && make install >> This required setting NO_WERROR= and WERROR= in the makefiles for >> radeon and r128. The errors are "value computed is not used". >> The second fix required to get it to build was to make sure LINUX_DRM >> gets undefined, this may result from my build process, but the undef >> is ifdef'd for amd64. >> >> After the module is built "successfully" and installed, kldloading it >> doesn't do anything, no drm0 created. >> kldload radeon.ko creates a drm0, but Xorg immediately crashes when >> loading the radeon driver, bringing down the entire system. >> >> I assume there is some endian-unsafe stuff in radeon and drm maybe? >> My system is an AGP Radeon r200 on an MDD G4. >> >> Any ideas or anything I can do to help? >> >> Matt > You're exactly where I was when I last tried. I didn't have the > patience to look into it. I did read today, though, that NetBSD has > working drm on PowerPC, so you can do some diffing with that codebase, > or even try NetBSD on a spare partition to confirm. Beyond that, some > ddb magic could help track down where the problem lies -- firewire > cable and a spare machine come in quite handy for this type of thing, > with dcons. Even getting a backtrace would be a good start to tracking > down the bugs. > > DRM is something I want to get working on PowerPC, but it's low on my > list (only so many hours in a day unfortunately), so I'm glad somebody > is looking :) > > - Justin > I tried OpenBSD. They have drm, but no working agp yet. A couple lockups under X thrashed the filesystem and I was over it. The sources for macppc are in transition or something and weren't building for me a week or so ago. NetBSD is probably worth another shot, I started out on MacBSD when it was new. Luckily I have a collection of IDE disks to swap, so it should be painless as far as not having to wipe one for the other. My guess is that we're talking to the card in big endian, because our drivers probably assume the host is little endian like pci. If that's the problem, fixes here will probably apply for sparc and arm (and anything else with non little-endian modes). This is armchair conjecture of course. My amd64 box has firewire, although I've yet to use DDB over firewire. Sounds like fun, so I'll try to work on getting a backtrace. Only so many hours indeed. Matt From owner-freebsd-x11@FreeBSD.ORG Thu Oct 25 21:00:29 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13438FF2 for ; Thu, 25 Oct 2012 21:00:29 +0000 (UTC) (envelope-from alvest@brakiri.com) Received: from p3plsmtpa01-10.prod.phx3.secureserver.net (p3plsmtpa01-10.prod.phx3.secureserver.net [72.167.82.90]) by mx1.freebsd.org (Postfix) with SMTP id C1C758FC0C for ; Thu, 25 Oct 2012 21:00:28 +0000 (UTC) Received: (qmail 31437 invoked from network); 25 Oct 2012 20:53:48 -0000 Received: from unknown (65.60.165.112) by p3plsmtpa01-10.prod.phx3.secureserver.net (72.167.82.90) with ESMTP; 25 Oct 2012 20:53:47 -0000 Message-ID: <5089A6DB.9070904@brakiri.com> Date: Thu, 25 Oct 2012 16:53:47 -0400 From: Albert Vest User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20121013 Thunderbird/16.0.1 MIME-Version: 1.0 To: Justin Hibbits Subject: Re: Does drm/dri currently work on PPC? References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> In-Reply-To: <20121022215945.436873dc@narn.knownspace> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 21:00:29 -0000 On 10/22/12 21:59, Justin Hibbits wrote: ... >> kldload radeon.ko creates a drm0, but Xorg immediately crashes when >> loading the radeon driver, bringing down the entire system. >> >> I assume there is some endian-unsafe stuff in radeon and drm maybe? >> My system is an AGP Radeon r200 on an MDD G4. >> >> Any ideas or anything I can do to help? >> >> Matt I also use Radeon r200, but on an i386 machine. Same symptom happens to me if I don't force BusType to PCI in my xorg.conf: ... Option "BusType" "PCI" # Force IGP to PCI ... hope that helps, Albert. -- http://www.vanwensveen.nl/rants/microsoft/IhateMS_A.html Albert Vest, Al Vest at Brakiri dot com From owner-freebsd-x11@FreeBSD.ORG Thu Oct 25 21:28:18 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90492507 for ; Thu, 25 Oct 2012 21:28:18 +0000 (UTC) (envelope-from freebsd@talk2dom.com) Received: from mail.shmtech.biz (mail.shmtech.biz [IPv6:2001:41c8:10:12cf::4:3]) by mx1.freebsd.org (Postfix) with ESMTP id 28E028FC08 for ; Thu, 25 Oct 2012 21:28:17 +0000 (UTC) Received: from [10.0.1.101] (5ac6e901.bb.sky.com [90.198.233.1]) (authenticated bits=0) by mail.shmtech.biz (8.14.5/8.14.5) with ESMTP id q9PLSGAh089877 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 25 Oct 2012 22:28:16 +0100 (BST) (envelope-from freebsd@talk2dom.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=talk2dom.com; s=shmtech1; t=1351200496; bh=yGq/OQgq0kcXyhTz7cSHcFLNODtsxaSRdEsGSIvZTvI=; h=Date:From:To:Subject; b=GIaoI9S984L+Cgzky+Q/NNqX4i/Pdou+nyN0suCmf9xWckBf50SqieVWhTrBUObBE RXf6vpoD2pizvo2V+mBI3fZHT7/6J+peOtxFXd4B59yzxBJZB3HqVYVofcc90m4A+j e7cmD1/CKy1HzzkEoe1Wu7YJQAFDVc8DMZAqWrZc= Message-ID: <5089AEEB.6050808@talk2dom.com> Date: Thu, 25 Oct 2012 22:28:11 +0100 From: Dom F User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121013 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-x11@freebsd.org Subject: Ivy Bridge and Xorg 7.7 on i386 FreeBSD 9-1BETA: no hardware acceleration? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 21:28:18 -0000 I've hit this problem via installing PCBSD 9.1 RC2 albeit amd64 not i386. I couldn't even get VESA mode to work. Similar platform: Dell 15R SE 7520 with i7-3612QM including integrated Intel HD 4000 (GT2) and Radeon 7730M. XAA acceleration was awful in that it produced approximately 5 second lag on some events like: swapping desktops bring new window to front repainting a part of window previously obscured by another window expanding drop-down menus (e.g. tags) > and more... > > With some effort I do have a good, working desktop environment now. > > I've updated to: > > Mesa 8.0.4 (libGL, dri, libGLU, libGLw) > xf86-video-intel 2.20.12 > xorg-server-1.10.6_1.1 > libdrm-2.4.31 > > This allowed me to use SNA acceleration which works lovely. > > I did need to modify the above for FreeBSD though. I can supply patches > if anyone is interested? > > I'm writing this here in case it helps anyone and also to alert the port > maintainers in case they want to bump the versions. > > It does seem like the versions I'm using are way ahead of what's even > being tested for Xorg 7.7 and there's the sticky issues about jumping up > the Mesa 8.x.x and WITH_NEW_XORG flag. Maybe I didn't need to upgrade so > far. I could try downgrading if that's of any use to anyone? To get a more resent xorg distribution than the default in ports, please add WITH_NEW_XORG to /etc/make.conf. That should give you support for more recent intel graphics cards. You can also get the experimental xorg repo using svn, see http://wiki.freebsd.org/Xorg for details. The experimental xorg repo contains the latest xorg packages that has been ported to FreeBSD, and should in general work, but as usual, no guarantees. Regards! -- Niclas Zeising From owner-freebsd-x11@FreeBSD.ORG Fri Oct 26 14:31:28 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBA69136; Fri, 26 Oct 2012 14:31:28 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 906EC8FC08; Fri, 26 Oct 2012 14:31:28 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0MCI009028CFT400@smtpauth3.wiscmail.wisc.edu>; Fri, 26 Oct 2012 09:31:28 -0500 (CDT) Received: from comporellon.tachypleus.net (adsl-71-150-249-157.dsl.mdsnwi.sbcglobal.net [71.150.249.157]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0MCI004KD8CD4510@smtpauth3.wiscmail.wisc.edu>; Fri, 26 Oct 2012 09:31:27 -0500 (CDT) Date: Fri, 26 Oct 2012 09:31:25 -0500 From: Nathan Whitehorn Subject: Re: Does drm/dri currently work on PPC? (SUCCESS!) In-reply-to: <508A17C9.4030007@gmail.com> To: matt Message-id: <508A9EBD.3080107@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=71.150.249.157 X-Spam-PmxInfo: Server=avs-16, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.10.26.142120, SenderIP=71.150.249.157 References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> <5089DF27.9020803@gmail.com> <20121025213018.2bfa5068@narn.knownspace> <5089F799.9030507@gmail.com> <508A17C9.4030007@gmail.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121019 Thunderbird/16.0.1 Cc: freebsd-x11@freebsd.org, Justin Hibbits , freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 14:31:28 -0000 On 10/25/12 23:55, matt wrote: >> It was working without DRM "out-of-the-box". Of course I've made a mess >> trying different versions of both Xorg and the radeon driver. I'm in the >> process of getting back to the working config so I can be sure any test >> changes work/don't work. >> >> OpenBSD's mpi@ apparently did a lot recently over there getting DRM to >> work on the G4 mini. We already had about half of the commits I see at >> freshbsd, in one way or another...Our rmb/wmb() I think has had PPC >> barriers since earlier this year? He did #define __BIG_ENDIAN, which >> apparently was a big deal for the drm code (it's ifdef'd in a couple >> places), not sure if we are already doing that. >> If someone has a G4 radeon mini they could test to see if drm works for >> them or not, to rule out AGP issues (I guess they are PCI?). >> >> I'm not sure how the OpenBSD attachment process works vs ours, some of >> the other commits of note were related to passing the BAR and memory >> regions from the vgapci to drm. When I kldload drm after compiling it, >> it doesn't do anything...but if I kldload radeon.ko, it recognizes agp >> memory and being related to vgapci at the correct pci address...I'm not >> sure if we "are there" or not. I also didn't have DRM on OpenBSD either. >> >> I think if radeon had drm on *any* big-endian platform it should rule >> out endian issues in drm or radeon. Not sure if this is the case, I >> guess macppc would be the most likely. >> >> Matt > So I removed WITH_NEW_XORG, deinstalled a ton of ports, and reinstalled > Xorg. I rebuild drm with __BIG_ENDIAN defined (not sure if this > matters). I previously put a lot of WERROR= and NO_WERROR= into various > drm makefiles to get gcc to shut up about unused return values. X > -configure worked, and the xorg log indicates the drm device was > successfully opened and I have drm on PPC. > mesa-demos is marked broken for PPC, haven't tried glxinfo or glxgears yet. > > The good news is it works! > The bad news: > -Cannot switch back to syscons, screen gets corrupted then the system > hard locks > -WITH_NEW_XORG breaks it somehow > > Thanks to mpi@openbsd.org, Justin & Nathan! > > Matt > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" Great to hear! I checked in some code to define __BIG_ENDIAN if needed in -CURRENT's drm (Linux uses a different number of underscores than we do for perverse reasons). -Nathan From owner-freebsd-x11@FreeBSD.ORG Fri Oct 26 18:51:56 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F6F2C4F; Fri, 26 Oct 2012 18:51:56 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id D27918FC0C; Fri, 26 Oct 2012 18:51:55 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id q9QIpcJ2061109; Fri, 26 Oct 2012 20:51:40 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <508ADBBA.1060201@fgznet.ch> Date: Fri, 26 Oct 2012 20:51:38 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Nathan Whitehorn , matt Subject: Re: Does drm/dri currently work on PPC? (SUCCESS!) References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> <5089DF27.9020803@gmail.com> <20121025213018.2bfa5068@narn.knownspace> <5089F799.9030507@gmail.com> <508A17C9.4030007@gmail.com> <508A9EBD.3080107@freebsd.org> In-Reply-To: <508A9EBD.3080107@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-x11@freebsd.org, Justin Hibbits , freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 18:51:56 -0000 On 26.10.12 16:31, Nathan Whitehorn wrote: > On 10/25/12 23:55, matt wrote: >>> It was working without DRM "out-of-the-box". Of course I've made a mess >>> trying different versions of both Xorg and the radeon driver. I'm in the >>> process of getting back to the working config so I can be sure any test >>> changes work/don't work. >>> >>> OpenBSD's mpi@ apparently did a lot recently over there getting DRM to >>> work on the G4 mini. We already had about half of the commits I see at >>> freshbsd, in one way or another...Our rmb/wmb() I think has had PPC >>> barriers since earlier this year? He did #define __BIG_ENDIAN, which >>> apparently was a big deal for the drm code (it's ifdef'd in a couple >>> places), not sure if we are already doing that. >>> If someone has a G4 radeon mini they could test to see if drm works for >>> them or not, to rule out AGP issues (I guess they are PCI?). >>> >>> I'm not sure how the OpenBSD attachment process works vs ours, some of >>> the other commits of note were related to passing the BAR and memory >>> regions from the vgapci to drm. When I kldload drm after compiling it, >>> it doesn't do anything...but if I kldload radeon.ko, it recognizes agp >>> memory and being related to vgapci at the correct pci address...I'm not >>> sure if we "are there" or not. I also didn't have DRM on OpenBSD either. >>> >>> I think if radeon had drm on *any* big-endian platform it should rule >>> out endian issues in drm or radeon. Not sure if this is the case, I >>> guess macppc would be the most likely. >>> >>> Matt >> So I removed WITH_NEW_XORG, deinstalled a ton of ports, and reinstalled >> Xorg. I rebuild drm with __BIG_ENDIAN defined (not sure if this >> matters). I previously put a lot of WERROR= and NO_WERROR= into various >> drm makefiles to get gcc to shut up about unused return values. X >> -configure worked, and the xorg log indicates the drm device was >> successfully opened and I have drm on PPC. >> mesa-demos is marked broken for PPC, haven't tried glxinfo or glxgears yet. >> >> The good news is it works! >> The bad news: >> -Cannot switch back to syscons, screen gets corrupted then the system >> hard locks >> -WITH_NEW_XORG breaks it somehow >> >> Thanks to mpi@openbsd.org, Justin & Nathan! >> >> Matt >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > > Great to hear! I checked in some code to define __BIG_ENDIAN if needed > in -CURRENT's drm (Linux uses a different number of underscores than we > do for perverse reasons). Thank you very much all! I can confirm it works here too (G5 32-bit): [helium:~] andreast% dmesg |grep drm drm0: on vgapci0 info: [drm] Initialized radeon 1.31.0 20080613 info: [drm] Setting GART location based on new memory map info: [drm] Loading R300 Microcode info: [drm] Num pipes: 1 info: [drm] writeback test succeeded in 1 usecs and glxgears gives around 1250FPS vs. 52FPS w/o dri. Andreas From owner-freebsd-x11@FreeBSD.ORG Sat Oct 27 01:12:13 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC4E6E9A; Sat, 27 Oct 2012 01:12:13 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id A43A48FC0C; Sat, 27 Oct 2012 01:12:13 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so3324285pbb.13 for ; Fri, 26 Oct 2012 18:12:12 -0700 (PDT) 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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Ps1FWc925A2yUjEDOW/FKMiCTlnzdarOEIcpK8qk69s=; b=kMuSPgbw1pFb/8LL+1OxTTJzL4fjJZb7O0NTr6Oeg8btYpRLBn9h/0pYNQ9W9GD+Z0 FLUBmyiTbtKMHy2TFQh/XfIK5eRmhx9kgWDePCH7NjJPevbTd3lzQZbvGzgCGV/Jpl5q /PmL70aDKWyUhgf/tYjicXeIVS+Kpb3qSVK3J6eh0RtvWobZ0g45+I7OOO6pRBIagRkh JBa997w/7hU4hIZoUi7DhgHPvtwaZwzvSGcTq++T7aPMsZcuZ/EeFkfWuRBPx4LGDiL3 Taov7z9Hxx8gIGlN2FCnbVxzeUIFsN6pxNwNDdXEPuF+cmsDG8Pxs5lznHhGZtMIWhi9 KnAA== Received: by 10.68.130.201 with SMTP id og9mr74392270pbb.12.1351300332196; Fri, 26 Oct 2012 18:12:12 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id n7sm1823001pav.26.2012.10.26.18.12.09 (version=SSLv3 cipher=OTHER); Fri, 26 Oct 2012 18:12:11 -0700 (PDT) Message-ID: <508B34D6.6000502@gmail.com> Date: Fri, 26 Oct 2012 18:11:50 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121015 Thunderbird/16.0.1 MIME-Version: 1.0 To: Andreas Tobler Subject: Re: Does drm/dri currently work on PPC? (SUCCESS!) References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> <5089DF27.9020803@gmail.com> <20121025213018.2bfa5068@narn.knownspace> <5089F799.9030507@gmail.com> <508A17C9.4030007@gmail.com> <508A9EBD.3080107@freebsd.org> <508ADBBA.1060201@fgznet.ch> In-Reply-To: <508ADBBA.1060201@fgznet.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org, freebsd-ppc@freebsd.org, Nathan Whitehorn , Justin Hibbits X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 01:12:14 -0000 On 10/26/12 11:51, Andreas Tobler wrote: > On 26.10.12 16:31, Nathan Whitehorn wrote: >> On 10/25/12 23:55, matt wrote: >>>> It was working without DRM "out-of-the-box". Of course I've made a >>>> mess >>>> trying different versions of both Xorg and the radeon driver. I'm >>>> in the >>>> process of getting back to the working config so I can be sure any >>>> test >>>> changes work/don't work. >>>> >>>> OpenBSD's mpi@ apparently did a lot recently over there getting DRM to >>>> work on the G4 mini. We already had about half of the commits I see at >>>> freshbsd, in one way or another...Our rmb/wmb() I think has had PPC >>>> barriers since earlier this year? He did #define __BIG_ENDIAN, which >>>> apparently was a big deal for the drm code (it's ifdef'd in a couple >>>> places), not sure if we are already doing that. >>>> If someone has a G4 radeon mini they could test to see if drm works >>>> for >>>> them or not, to rule out AGP issues (I guess they are PCI?). >>>> >>>> I'm not sure how the OpenBSD attachment process works vs ours, some of >>>> the other commits of note were related to passing the BAR and memory >>>> regions from the vgapci to drm. When I kldload drm after compiling it, >>>> it doesn't do anything...but if I kldload radeon.ko, it recognizes agp >>>> memory and being related to vgapci at the correct pci address...I'm >>>> not >>>> sure if we "are there" or not. I also didn't have DRM on OpenBSD >>>> either. >>>> >>>> I think if radeon had drm on *any* big-endian platform it should rule >>>> out endian issues in drm or radeon. Not sure if this is the case, I >>>> guess macppc would be the most likely. >>>> >>>> Matt >>> So I removed WITH_NEW_XORG, deinstalled a ton of ports, and reinstalled >>> Xorg. I rebuild drm with __BIG_ENDIAN defined (not sure if this >>> matters). I previously put a lot of WERROR= and NO_WERROR= into various >>> drm makefiles to get gcc to shut up about unused return values. X >>> -configure worked, and the xorg log indicates the drm device was >>> successfully opened and I have drm on PPC. >>> mesa-demos is marked broken for PPC, haven't tried glxinfo or >>> glxgears yet. >>> >>> The good news is it works! >>> The bad news: >>> -Cannot switch back to syscons, screen gets corrupted then the system >>> hard locks >>> -WITH_NEW_XORG breaks it somehow >>> >>> Thanks to mpi@openbsd.org, Justin & Nathan! >>> >>> Matt >>> _______________________________________________ >>> freebsd-ppc@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> >> Great to hear! I checked in some code to define __BIG_ENDIAN if needed >> in -CURRENT's drm (Linux uses a different number of underscores than we >> do for perverse reasons). > > Thank you very much all! > > I can confirm it works here too (G5 32-bit): > > [helium:~] andreast% dmesg |grep drm > drm0: on vgapci0 > info: [drm] Initialized radeon 1.31.0 20080613 > info: [drm] Setting GART location based on new memory map > info: [drm] Loading R300 Microcode > info: [drm] Num pipes: 1 > info: [drm] writeback test succeeded in 1 usecs > > and glxgears gives around 1250FPS vs. 52FPS w/o dri. > > Andreas > > > Can you change consoles or exit X successfully? btw...issue "sync" a couple times first just in case :) Also, is that an AGP or PCIe G5? Thanks, Matt From owner-freebsd-x11@FreeBSD.ORG Sat Oct 27 01:21:29 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D65E25DC; Sat, 27 Oct 2012 01:21:29 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8D3308FC0C; Sat, 27 Oct 2012 01:21:28 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so3327275pbb.13 for ; Fri, 26 Oct 2012 18:21:28 -0700 (PDT) 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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cGg/SCTg6ZIcJ0wmVybw3fYQtS/pHf+kGTxq6zoOL/U=; b=KzZL39S1OQasjmP+p5HLJxTpjiMAfsMyvHuV3ARQmoSv4HjFJ/3pNxw2p3/QfpJnWl et/cri/8rVI2B50T7w+VJNifLZTlVKyYdbszHm9vz5dWsoP8T58AWAXPYL28BjYfs/Oi niEmfjlf/dp+LgHxgLrJ4N9TqswnBuQVcgZ7hiufjHjC7xwcRCNmXVWfrw/RN73r3Znb 1gwaa2/wsUy6NRkMKLTgqZMvUMRwN5WohmL6XwsDZnwyzeBLcwisIA3nzM6SroD22WAF R+VeR8fek6n/r20RRz6GHONRr/B9atyyIMTpFMJLyH2m3m5ebYggpYd1JvB1eMpF65E/ lvuQ== Received: by 10.68.190.71 with SMTP id go7mr75091128pbc.66.1351300888041; Fri, 26 Oct 2012 18:21:28 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id kn8sm1979697pbc.24.2012.10.26.18.21.25 (version=SSLv3 cipher=OTHER); Fri, 26 Oct 2012 18:21:27 -0700 (PDT) Message-ID: <508B3702.8060906@gmail.com> Date: Fri, 26 Oct 2012 18:21:06 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121015 Thunderbird/16.0.1 MIME-Version: 1.0 To: Nathan Whitehorn Subject: Re: Does drm/dri currently work on PPC? (SUCCESS!) References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> <5089DF27.9020803@gmail.com> <20121025213018.2bfa5068@narn.knownspace> <5089F799.9030507@gmail.com> <508A17C9.4030007@gmail.com> <508A9EBD.3080107@freebsd.org> In-Reply-To: <508A9EBD.3080107@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org, Justin Hibbits , freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 01:21:30 -0000 On 10/26/12 07:31, Nathan Whitehorn wrote: > On 10/25/12 23:55, matt wrote: >>> It was working without DRM "out-of-the-box". Of course I've made a mess >>> trying different versions of both Xorg and the radeon driver. I'm in >>> the >>> process of getting back to the working config so I can be sure any test >>> changes work/don't work. >>> >>> OpenBSD's mpi@ apparently did a lot recently over there getting DRM to >>> work on the G4 mini. We already had about half of the commits I see at >>> freshbsd, in one way or another...Our rmb/wmb() I think has had PPC >>> barriers since earlier this year? He did #define __BIG_ENDIAN, which >>> apparently was a big deal for the drm code (it's ifdef'd in a couple >>> places), not sure if we are already doing that. >>> If someone has a G4 radeon mini they could test to see if drm works for >>> them or not, to rule out AGP issues (I guess they are PCI?). >>> >>> I'm not sure how the OpenBSD attachment process works vs ours, some of >>> the other commits of note were related to passing the BAR and memory >>> regions from the vgapci to drm. When I kldload drm after compiling it, >>> it doesn't do anything...but if I kldload radeon.ko, it recognizes agp >>> memory and being related to vgapci at the correct pci address...I'm not >>> sure if we "are there" or not. I also didn't have DRM on OpenBSD >>> either. >>> >>> I think if radeon had drm on *any* big-endian platform it should rule >>> out endian issues in drm or radeon. Not sure if this is the case, I >>> guess macppc would be the most likely. >>> >>> Matt >> So I removed WITH_NEW_XORG, deinstalled a ton of ports, and reinstalled >> Xorg. I rebuild drm with __BIG_ENDIAN defined (not sure if this >> matters). I previously put a lot of WERROR= and NO_WERROR= into various >> drm makefiles to get gcc to shut up about unused return values. X >> -configure worked, and the xorg log indicates the drm device was >> successfully opened and I have drm on PPC. >> mesa-demos is marked broken for PPC, haven't tried glxinfo or >> glxgears yet. >> >> The good news is it works! >> The bad news: >> -Cannot switch back to syscons, screen gets corrupted then the system >> hard locks >> -WITH_NEW_XORG breaks it somehow >> >> Thanks to mpi@openbsd.org, Justin & Nathan! >> >> Matt >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > > Great to hear! I checked in some code to define __BIG_ENDIAN if needed > in -CURRENT's drm (Linux uses a different number of underscores than > we do for perverse reasons). > -Nathan > Thanks, I'm glad we were just a define or so away. Score for byteorder=4321! Matt From owner-freebsd-x11@FreeBSD.ORG Sat Oct 27 05:09:08 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7D8284B; Sat, 27 Oct 2012 05:09:08 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 624D48FC12; Sat, 27 Oct 2012 05:09:07 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so3396247pbb.13 for ; Fri, 26 Oct 2012 22:09:07 -0700 (PDT) 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:cc:subject :references:in-reply-to:content-type; bh=dqQVQNljBOR3lL8a6aoEK7vEVCW912X1u9ANEiZ4PF4=; b=MnbjIFOzLU8FUBbWHr+o33NmxC3vIDaO7A701L0mv8PHDwxXd+V9kmPmdcS8kKtiJA s40nvxnbe1vxtSYpwEbupxpAiV1t0ywyrddzTToJKNVI40gP9/T+taXIvpuMgUsMB2Wj Esxfs5X/kpVEklHMJ5r6kdoSjH9snEjI2DeyeJq5QuwooOHqmf/tzpBNAUz+5g3/vSWr BkzOlUMwPs7TZZUY3cM/o/L+VNatvdRgXwBQy2CfccKQM+A6ng3X4jTG6LbtP8KqcMCm kkzDkYlZw+9bfPlFLkTwo3te/aUtJ0rEvcWQ+GJSWG8lQnH2/zkZRuXOxgQGpBSxIdde UUgA== Received: by 10.68.226.167 with SMTP id rt7mr76218253pbc.94.1351314547441; Fri, 26 Oct 2012 22:09:07 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id m8sm2117909pax.38.2012.10.26.22.09.04 (version=SSLv3 cipher=OTHER); Fri, 26 Oct 2012 22:09:05 -0700 (PDT) Message-ID: <508B6C5D.9010500@gmail.com> Date: Fri, 26 Oct 2012 22:08:45 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121015 Thunderbird/16.0.1 MIME-Version: 1.0 To: Justin Hibbits Subject: Re: Does drm/dri currently work on PPC? References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> <5089DF27.9020803@gmail.com> <20121025213018.2bfa5068@narn.knownspace> <5089F799.9030507@gmail.com> <508A17C9.4030007@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-x11@freebsd.org, freebsd-ppc@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 05:09:08 -0000 On 10/26/12 05:15, Justin Hibbits wrote: > On Fri, Oct 26, 2012 at 12:55 AM, matt > wrote: > > > > It was working without DRM "out-of-the-box". Of course I've made > a mess > > trying different versions of both Xorg and the radeon driver. > I'm in the > > process of getting back to the working config so I can be sure > any test > > changes work/don't work. > > > > OpenBSD's mpi@ apparently did a lot recently over there getting > DRM to > > work on the G4 mini. We already had about half of the commits I > see at > > freshbsd, in one way or another...Our rmb/wmb() I think has had PPC > > barriers since earlier this year? He did #define __BIG_ENDIAN, which > > apparently was a big deal for the drm code (it's ifdef'd in a couple > > places), not sure if we are already doing that. > > If someone has a G4 radeon mini they could test to see if drm > works for > > them or not, to rule out AGP issues (I guess they are PCI?). > > > > I'm not sure how the OpenBSD attachment process works vs ours, > some of > > the other commits of note were related to passing the BAR and memory > > regions from the vgapci to drm. When I kldload drm after > compiling it, > > it doesn't do anything...but if I kldload radeon.ko, it > recognizes agp > > memory and being related to vgapci at the correct pci > address...I'm not > > sure if we "are there" or not. I also didn't have DRM on OpenBSD > either. > > > > I think if radeon had drm on *any* big-endian platform it should > rule > > out endian issues in drm or radeon. Not sure if this is the case, I > > guess macppc would be the most likely. > > > > Matt > So I removed WITH_NEW_XORG, deinstalled a ton of ports, and > reinstalled > Xorg. I rebuild drm with __BIG_ENDIAN defined (not sure if this > matters). I previously put a lot of WERROR= and NO_WERROR= into > various > drm makefiles to get gcc to shut up about unused return values. X > -configure worked, and the xorg log indicates the drm device was > successfully opened and I have drm on PPC. > mesa-demos is marked broken for PPC, haven't tried glxinfo or > glxgears yet. > > The good news is it works! > The bad news: > -Cannot switch back to syscons, screen gets corrupted then the system > hard locks > -WITH_NEW_XORG breaks it somehow > > Thanks to mpi@openbsd.org , Justin & Nathan! > > Matt > > > That's fantastic! If I'm able to get my current project done (PMU > sleep/speed change on PowerBook) I'll definitely give that a shot this > weekend. > > One thing that may help with switching back to syscons is, NetBSD has > a radeonfb driver for console framebuffer.Earlier in the week I > briefly looked at that, and it may not be too difficult to port it to > FreeBSD and integrate with syscons. Only major hurdle for that would > be dealing with ofwfb as well. Just some more tinkering :) > > Excellent news! > > - Justin New development, I get random hangs...I'm going to try disabling EXA for XAA. Backtrace during hang: #0 0x41fd4b28 in ioctl () from /lib/libc.so.7 #1 0x420c0a7c in drmIoctl () from /usr/local/lib/libdrm.so.2 #2 0x420c0bdc in drmCommandNone () from /usr/local/lib/libdrm.so.2 #3 0x421a03e8 in RADEONWaitForIdleCP () from /usr/local/lib/xorg/modules/drivers/radeon_drv.so #4 0x421feef8 in RADEONSyncCP () from /usr/local/lib/xorg/modules/drivers/radeon_drv.so #5 0x42295748 in exaWaitSync () from /usr/local/lib/xorg/modules/libexa.so #6 0x42296d40 in ExaDoPrepareAccess () from /usr/local/lib/xorg/modules/libexa.so #7 0x42297e90 in exaPrepareAccessReg_classic () from /usr/local/lib/xorg/modules/libexa.so #8 0x42296f14 in exaPrepareAccess () from /usr/local/lib/xorg/modules/libexa.so #9 0x422a2c78 in ExaCheckImageGlyphBlt () from /usr/local/lib/xorg/modules/libexa.so #10 0x01976a6c in miImageText8 () #11 0x018f2f0c in DamageSetup () #12 0x018337ec in doImageText () #13 0x01833984 in ImageText () #14 0x0182cb48 in ProcImageText8 () #15 0x0182efe8 in Dispatch () #16 0x01823188 in main () Is this 8bit DRM crashing it because unlike 16 and 32 it's not byteswapped? BTW, mesa-demos compiles if you insert a copy of byteswap.h (I got mine from arnold.se's article about bitcoin, of all things) and you define the powerpc write barrier. Matt From owner-freebsd-x11@FreeBSD.ORG Sat Oct 27 17:14:07 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A899AA8; Sat, 27 Oct 2012 17:14:07 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id DB9368FC08; Sat, 27 Oct 2012 17:14:05 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id q9RHDsfG052534; Sat, 27 Oct 2012 19:13:55 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <508C1652.6070909@fgznet.ch> Date: Sat, 27 Oct 2012 19:13:54 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: matt Subject: Re: Does drm/dri currently work on PPC? (SUCCESS!) References: <5083C719.1040109@gmail.com> <20121021092136.20307802@narn.knownspace> <50846392.70007@gmail.com> <5085F595.4050609@gmail.com> <20121022215945.436873dc@narn.knownspace> <5089A6DB.9070904@brakiri.com> <5089DF27.9020803@gmail.com> <20121025213018.2bfa5068@narn.knownspace> <5089F799.9030507@gmail.com> <508A17C9.4030007@gmail.com> <508A9EBD.3080107@freebsd.org> <508ADBBA.1060201@fgznet.ch> <508B34D6.6000502@gmail.com> In-Reply-To: <508B34D6.6000502@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-x11@freebsd.org, freebsd-ppc@freebsd.org, Nathan Whitehorn , Justin Hibbits X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 17:14:07 -0000 On 27.10.12 03:11, matt wrote: > On 10/26/12 11:51, Andreas Tobler wrote: >> On 26.10.12 16:31, Nathan Whitehorn wrote: >>> On 10/25/12 23:55, matt wrote: >>>>> It was working without DRM "out-of-the-box". Of course I've made a >>>>> mess >>>>> trying different versions of both Xorg and the radeon driver. I'm >>>>> in the >>>>> process of getting back to the working config so I can be sure any >>>>> test >>>>> changes work/don't work. >>>>> >>>>> OpenBSD's mpi@ apparently did a lot recently over there getting DRM to >>>>> work on the G4 mini. We already had about half of the commits I see at >>>>> freshbsd, in one way or another...Our rmb/wmb() I think has had PPC >>>>> barriers since earlier this year? He did #define __BIG_ENDIAN, which >>>>> apparently was a big deal for the drm code (it's ifdef'd in a couple >>>>> places), not sure if we are already doing that. >>>>> If someone has a G4 radeon mini they could test to see if drm works >>>>> for >>>>> them or not, to rule out AGP issues (I guess they are PCI?). >>>>> >>>>> I'm not sure how the OpenBSD attachment process works vs ours, some of >>>>> the other commits of note were related to passing the BAR and memory >>>>> regions from the vgapci to drm. When I kldload drm after compiling it, >>>>> it doesn't do anything...but if I kldload radeon.ko, it recognizes agp >>>>> memory and being related to vgapci at the correct pci address...I'm >>>>> not >>>>> sure if we "are there" or not. I also didn't have DRM on OpenBSD >>>>> either. >>>>> >>>>> I think if radeon had drm on *any* big-endian platform it should rule >>>>> out endian issues in drm or radeon. Not sure if this is the case, I >>>>> guess macppc would be the most likely. >>>>> >>>>> Matt >>>> So I removed WITH_NEW_XORG, deinstalled a ton of ports, and reinstalled >>>> Xorg. I rebuild drm with __BIG_ENDIAN defined (not sure if this >>>> matters). I previously put a lot of WERROR= and NO_WERROR= into various >>>> drm makefiles to get gcc to shut up about unused return values. X >>>> -configure worked, and the xorg log indicates the drm device was >>>> successfully opened and I have drm on PPC. >>>> mesa-demos is marked broken for PPC, haven't tried glxinfo or >>>> glxgears yet. >>>> >>>> The good news is it works! >>>> The bad news: >>>> -Cannot switch back to syscons, screen gets corrupted then the system >>>> hard locks >>>> -WITH_NEW_XORG breaks it somehow >>>> >>>> Thanks to mpi@openbsd.org, Justin & Nathan! >>>> >>>> Matt >>>> _______________________________________________ >>>> freebsd-ppc@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >>> >>> Great to hear! I checked in some code to define __BIG_ENDIAN if needed >>> in -CURRENT's drm (Linux uses a different number of underscores than we >>> do for perverse reasons). >> >> Thank you very much all! >> >> I can confirm it works here too (G5 32-bit): >> >> [helium:~] andreast% dmesg |grep drm >> drm0: on vgapci0 >> info: [drm] Initialized radeon 1.31.0 20080613 >> info: [drm] Setting GART location based on new memory map >> info: [drm] Loading R300 Microcode >> info: [drm] Num pipes: 1 >> info: [drm] writeback test succeeded in 1 usecs >> >> and glxgears gives around 1250FPS vs. 52FPS w/o dri. >> >> Andreas >> >> >> > Can you change consoles or exit X successfully? > btw...issue "sync" a couple times first just in case :) > Also, is that an AGP or PCIe G5? I can exit X and restart X successfully. I can also switch (ctrl-alt-F1-F8) between X and console and back (ctrl-alt-F9). Even with glxgears running. No lock-up. It is an AGP card: (--) RADEON(0): Chipset: "ATI Radeon 9600XT AR (AGP)" (ChipID = 0x4152) (--) RADEON(0): Mapped VideoRAM: 131072 kByte (128 bit DDR SDRAM) These are my modules: Section "Module" Load "extmod" Load "record" Load "dbe" Load "glx" Load "dri" Load "dri2" EndSection And nothing special in the driver section. Andreas