From owner-freebsd-ppc@FreeBSD.ORG Sun Jan 19 21:41:16 2014 Return-Path: Delivered-To: freebsd-ppc@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 3B851D4E; Sun, 19 Jan 2014 21:41:16 +0000 (UTC) Received: from smtpauth4.wiscmail.wisc.edu (wmauth4.doit.wisc.edu [144.92.197.145]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5EA7E1FA2; Sun, 19 Jan 2014 21:41:15 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from avs-daemon.smtpauth4.wiscmail.wisc.edu by smtpauth4.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MZO00B003JJ2I00@smtpauth4.wiscmail.wisc.edu>; Sun, 19 Jan 2014 15:41:13 -0600 (CST) X-Spam-PmxInfo: Server=avs-4, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.1.19.213020, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from wanderer.tachypleus.net (adsl-76-208-68-77.dsl.mdsnwi.sbcglobal.net [76.208.68.77]) by smtpauth4.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MZO00G9G48OGK10@smtpauth4.wiscmail.wisc.edu>; Sun, 19 Jan 2014 15:41:13 -0600 (CST) Message-id: <52DC4678.2080901@freebsd.org> Date: Sun, 19 Jan 2014 15:41:12 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 To: freebsd-x11@freebsd.org Subject: Re: Fixes for X on PowerPC References: <52DC0770.7060000@freebsd.org> In-reply-to: <52DC0770.7060000@freebsd.org> X-Enigmail-Version: 1.6 Cc: Baptiste Daroussin , FreeBSD PowerPC ML X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2014 21:41:16 -0000 On 01/19/14 11:12, Nathan Whitehorn wrote: > 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 > I've updated this with a patch 6 for xf86-video-nv that fixes some breakage after the change to use libpciaccess to use I/O ports in xorg-server: the driver was really on some behind-the-scenes behavior (use of IOBase, in particular) that has now apparently been removed. -Nathan