From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 26 14:31:28 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 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, Albert Vest , Justin Hibbits , freebsd-ppc@freebsd.org 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: 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