From owner-freebsd-ppc@FreeBSD.ORG Sun Jul 20 16:21:23 2014 Return-Path: Delivered-To: freebsd-ppc@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 1F3139CA; Sun, 20 Jul 2014 16:21:23 +0000 (UTC) Received: from i3mail.icecube.wisc.edu (i3mail.icecube.wisc.edu [128.104.255.23]) by mx1.freebsd.org (Postfix) with ESMTP id E3402231E; Sun, 20 Jul 2014 16:21:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by i3mail.icecube.wisc.edu (Postfix) with ESMTP id 530FE3806A; Sun, 20 Jul 2014 11:21:16 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from i3mail.icecube.wisc.edu ([127.0.0.1]) by localhost (i3mail.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id rcI1W60vRkWL; Sun, 20 Jul 2014 11:21:16 -0500 (CDT) Received: from comporellon.tachypleus.net (polaris.tachypleus.net [75.101.50.44]) by i3mail.icecube.wisc.edu (Postfix) with ESMTPSA id 047EA38069; Sun, 20 Jul 2014 11:21:15 -0500 (CDT) Message-ID: <53CBEC7B.9030204@freebsd.org> Date: Sun, 20 Jul 2014 09:21:15 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: FreeBSD PowerPC ML , x11@freebsd.org Subject: Please test: use /dev/mem instead of /dev/console for memory-mapping framebuffers in X11 on PowerPC Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2014 16:21:23 -0000 I would appreciate any tests or comments on the following patch (which is working fine on my hardware). The goal is to move X drivers from using /dev/console to map device memory to using /dev/mem, as on x86 systems. This makes it so that the kernel framebuffer driver does not have to allow mapping of all physical memory and can behave like an actual framebuffer driver and along the way fixes some highly dubious behaviors of the ppc_video module on FreeBSD. The patch to libpciaccess may also result in some performance improvement. http://people.freebsd.org/~nwhitehorn/ppc-xorg-devmem.diff Please let me know if there are any regressions or other issues. -Nathan