From owner-p4-projects@FreeBSD.ORG Thu Apr 12 10:11:03 2012 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 572ED1065674; Thu, 12 Apr 2012 10:11:03 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1228D1065672 for ; Thu, 12 Apr 2012 10:11:03 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id E9AAB8FC08 for ; Thu, 12 Apr 2012 10:11:02 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id q3CAB26L024184 for ; Thu, 12 Apr 2012 10:11:02 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id q3CAB2DF024173 for perforce@freebsd.org; Thu, 12 Apr 2012 10:11:02 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 12 Apr 2012 10:11:02 GMT Message-Id: <201204121011.q3CAB2DF024173@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 209465 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2012 10:11:03 -0000 http://p4web.freebsd.org/@@209465?ac=10 Change 209465 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/04/12 10:10:30 When offering up MTL frame buffer memory to userspace via mmap(), ask the VM system to configure the TLB entry uncached. Affected files ... .. //depot/projects/ctsrd/beribsd/src/sys/dev/terasic/mtllcd/terasic_mtllcd.c#3 edit Differences ... ==== //depot/projects/ctsrd/beribsd/src/sys/dev/terasic/mtllcd/terasic_mtllcd.c#3 (text+ko) ==== @@ -40,6 +40,7 @@ #include #include +#include #include @@ -62,9 +63,10 @@ TERASIC_MTLLCD_LOCK(sc); error = 0; if (trunc_page(offset) == offset && - rman_get_size(sc->mtl_res) >= offset + PAGE_SIZE) + rman_get_size(sc->mtl_res) >= offset + PAGE_SIZE) { *paddr = rman_get_start(sc->mtl_res); - else + *memattr = VM_MEMATTR_UNCACHED; + } else error = EINVAL; TERASIC_MTLLCD_UNLOCK(sc); return (error);