From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 23 01:40:59 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 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: freebsd-x11@freebsd.org, 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: 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