From owner-freebsd-x11@FreeBSD.ORG Mon Mar 17 17:48:01 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BF88980 for ; Mon, 17 Mar 2014 17:48:01 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D78722D for ; Mon, 17 Mar 2014 17:48:01 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id j15so5635070qaq.2 for ; Mon, 17 Mar 2014 10:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=iIW83tnj1sM1q+FX8B1FoBzk1EqmMGymSjY0utFIMSg=; b=vynlxRS8eQw/3igqdUJ0Q11DGq2JKCWiCnahEM5rgBUTrTsPd5Wp22QxhM60x2mB3E NNJm7chlgr0Rh8FnstPziTygpIavRPSl1n19Xf7oRR+L/bWzO4d6kxn3KHreeaCbdSWp NB622duuBm0SlB3YTu/l3aX/guDKqFzueIBkCez4brKZ2ze2YZMHFBxJ8JZjLIiffHOU ruCGWF9gaM3VDBwqXF7a8KJpV5BqOMzyyD1y2+on6nQhndZ8kfO8qx+l3Yq2S/YZIM8S vQJH2LHKdqDPKqsVa8EOwJ45GD0Z12+HLxvtBtcWCHO0f+YhKocZuZLN4L5EuVk1pcuW Io4g== MIME-Version: 1.0 X-Received: by 10.140.50.46 with SMTP id r43mr28424971qga.22.1395078479939; Mon, 17 Mar 2014 10:47:59 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.140.37.227 with HTTP; Mon, 17 Mar 2014 10:47:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Mar 2014 10:47:59 -0700 X-Google-Sender-Auth: TKkGLJXnzKw6APTLgzCoupZrhzQ Message-ID: Subject: Re: Importing code from Linux From: Justin Hibbits To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.17 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, 17 Mar 2014 17:48:01 -0000 (This reply will look like a reply to myself, because it is, and I'm not on the x11@ list, so dumbbell@'s reply is copy&pasted from the archive) On Fri, Mar 14, 2014 at 1:00 PM, Justin Hibbits wro= te: > (I hope I'm not coming off hostile with this, it's not my intent). > > Looking at https://wiki.freebsd.org/Graphics I see there's a WIP for > importing DRM from Linux 3.8. When you do it, can you please keep in > the non-x86 support? It's already behind #ifdef's, so won't be used > in x86 code anyways. Yes, the goal is to be as close as possible to Linux original code, to ease future updates. > Big endian/non-x86 support was pulled out when > merging in the Radeon KMS driver, which only makes enabling PowerPC > support that much more onerous. Looking at the Linux code, leaving > that in place does not add much complexity at all. I don't remember removing explicitely PowerPC bits from the Radeon driver. If I did so, that's a mistake. I still have your patch to make it build on PowerPC and I think I never answered you... I'm sorry :-/ Were you able to test it? --=20 Jean-S=C3=A9bastien P=C3=A9dron There were no changes in the Radeon driver specific to PowerPC, but there were changes related to ACPI that were either removed, or taken before they had been added to Linux, I don't know at all which, since I didn't follow it closely until it was imported into head. Specifically, ACPI is only conditionally used in the Linux driver, with the radeon_acpi_{init,fini}() functions being stubbed out in radeon.h, along with other ACPI conditionals, whereas these conditionals are missing in the FreeBSD radeonkms driver. Unfortunately I haven't been having much luck at all with Xorg lately on my 32-bit PowerPC machines, the only ones I own with Radeon cards, and therefore which would support DRI. When I find some time, this week or the weekend, I'll retry and file a proper bug report for it ( it simply exits on all my 32-bit machines, but works fine on my 64-bit ppc. More details will go into the PR). When I get X working again on these machines, I'll be able to test the patch and report if it works at all. DRI has never worked well on FreeBSD/powerpc, and I would like to see it work completely and correctly with the new driver. It would be breathing new life into these 9+ year old machines. - Justin