From owner-svn-src-all@FreeBSD.ORG Sat Apr 27 01:57:46 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 664E0449; Sat, 27 Apr 2013 01:57:46 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 590AA1711; Sat, 27 Apr 2013 01:57:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3R1vkRC052597; Sat, 27 Apr 2013 01:57:46 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3R1vkHQ052596; Sat, 27 Apr 2013 01:57:46 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201304270157.r3R1vkHQ052596@svn.freebsd.org> From: Rui Paulo Date: Sat, 27 Apr 2013 01:57:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249965 - head/sys/powerpc/wii X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Apr 2013 01:57:46 -0000 Author: rpaulo Date: Sat Apr 27 01:57:45 2013 New Revision: 249965 URL: http://svnweb.freebsd.org/changeset/base/249965 Log: Fix the frambuffer issues by calling pmap_mapdev() in the attach routine. This will make the framebuffer region uncacheable and it will create a proper KVA -> RAM mapping. Modified: head/sys/powerpc/wii/wii_fb.c Modified: head/sys/powerpc/wii/wii_fb.c ============================================================================== --- head/sys/powerpc/wii/wii_fb.c Sat Apr 27 01:48:09 2013 (r249964) +++ head/sys/powerpc/wii/wii_fb.c Sat Apr 27 01:57:45 2013 (r249965) @@ -514,8 +514,12 @@ wiifb_configure(int flags) int progressive; sc = &wiifb_softc; - if (sc->sc_initialized) + if (sc->sc_initialized) { + /* XXX We should instead use bus_space */ + sc->sc_fb_addr = (intptr_t)pmap_mapdev(WIIFB_FB_ADDR, WIIFB_FB_LEN); + sc->sc_reg_addr = (intptr_t)pmap_mapdev(WIIFB_REG_ADDR, WIIFB_REG_LEN); return 0; + } sc->sc_console = 1;