From owner-freebsd-x11@FreeBSD.ORG Sun Jan 19 17:12:18 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1DBB21F; Sun, 19 Jan 2014 17:12:18 +0000 (UTC) Received: from smtpauth2.wiscmail.wisc.edu (wmauth2.doit.wisc.edu [144.92.197.222]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 321361CA7; Sun, 19 Jan 2014 17:12:18 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MZN00J00QM6J100@smtpauth2.wiscmail.wisc.edu>; Sun, 19 Jan 2014 11:12:17 -0600 (CST) X-Spam-PmxInfo: Server=avs-2, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.1.19.170314, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from comporellon.tachypleus.net (adsl-76-208-68-77.dsl.mdsnwi.sbcglobal.net [76.208.68.77]) by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MZN00327RSGAS00@smtpauth2.wiscmail.wisc.edu>; Sun, 19 Jan 2014 11:12:17 -0600 (CST) Message-id: <52DC0770.7060000@freebsd.org> Date: Sun, 19 Jan 2014 11:12:16 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 To: freebsd-x11@freebsd.org Subject: Fixes for X on PowerPC 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: Sun, 19 Jan 2014 17:12:18 -0000 I was just bootstrapping a new (to me) laptop and ran into some minor difficulties getting X running. They can be fixed with the patch at http://people.freebsd.org/~nwhitehorn/new_xorg_ppc.diff It has the following parts: 1. plist fix for graphics/libdrm (the Intel driver is only built on x86 platforms) 2. only apply MMX/SSE2 flags in configure on platforms that have MMX and SSE2 for x11/pixman to avoid errors from configure 3. Use old ATI driver on platforms without KMS (for now, everything but x86) 4. Fix error in xorg-server makefile EXTRA_PATCHES where some platform-specific patches would replace rather than add to the patches list. The only even vaguely substantive change is the last patch: 5. xf86EnableIO() and xf86OpenConsole() no longer seem to be called in the same order, with the result that xf86Info.consoleFd hasn't been set yet when xf86EnableIO() is called. I've copied what Linux does here and used /dev/mem instead, as well as copying Linux in making errors there non-fatal. Incidentally, the xf86EnableIO() implementation is one of the shadiest and most questionable things I have ever seen. I really doubt it does whatever it is meant to do correctly, but it at least does the same thing old Xorg did now. -Nathan