From: Alex Buell Subject: Re: r127 w/ KMS on PPC? Date: Thu, 22 Apr 2010 13:29:03 +0100 Message-ID: <1271939343.16795.8.camel@lithium.local.net> References: <1271879483.32275.4.camel@lithium.local.net> <1271885791.32275.7.camel@lithium.local.net> <1271886945.10584.20.camel@t60prh> <1271888779.32275.18.camel@lithium.local.net> Reply-To: alex.buell@munted.org.uk Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from v-smtp-auth-relay-4.gradwell.net (v-smtp-auth-relay-4.gradwell.net [79.135.125.43]) by gabe.freedesktop.org (Postfix) with ESMTP id AC93A9E7F4 for ; Thu, 22 Apr 2010 05:29:07 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: Alex Deucher Cc: Dave Airlie , Maling list - DRI developers List-Id: dri-devel@lists.freedesktop.org On Wed, 2010-04-21 at 20:38 -0400, Alex Deucher wrote: > On Wed, Apr 21, 2010 at 6:26 PM, Alex Buell wrote: > > On Thu, 2010-04-22 at 07:55 +1000, Dave Airlie wrote: > >> > I'd like to step up for that, it'd let me learn a lot. I have > >> already > >> > extracted the r128 and its DRI from the 2.6.32 kernel tree and built > >> > them as modules and they both work just fine, with the binary > >> firmware. > >> > What's involved in making KMS work on PPC? I'm sure I need the KMS > >> > helpers and the TTM module as well right? > >> > >> For r128, it could actually re-use a lot of the radeon KMS code, in > >> fact nearly all of it. > >> > >> Alex Deucher started doing a UMS merge of radeon/r128 at one point > >> http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support > >> > >> the main things would be adding the differences in the bios parsing, > >> and modesetting paths to KMS first. > > > > I'll start digging into the Radeon, see what I can learn about KMS > > integration. For now I'll build the r128 out of the tree, simplifies > > things a bit. Is that OK? > > > > Any further reading would be tremendously helpful. > > > > It should be pretty easy to get kms going with r128 by integrating it > into the radeon drm and ddx. The hard part will be porting the r128 > 3D driver to kms. Also, kms support for r128-based macs will be a bit > trickier than x86 because the boards don't have an x86 video bios. > You may have to look at the xf86-video-r128 ddx and atyr128 kernel fb > driver for properly setting up the cards without an x86 bios. Let me > know if you have any questions. Whilst hacking on the drm and r128 sources out of the tree I noticed a peculiarity of the build process. It turns out that if you build the r128 module separately after working on it, and insmod both drm and r128 modules, it spits out a lot missing drm_* symbols. However, if I build both drm and r128 modules then insmod both modules, it doesn't spit out any missing drm_* symbols. I don't quite understand why this happens, but for now I just start the build in the drm directory instead. -- http://www.munted.org.uk One very high maintenance cat living here.