From owner-freebsd-current@FreeBSD.ORG Thu Jan 13 20:25:10 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 29E9C10656A3; Thu, 13 Jan 2011 20:25:09 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Thu, 13 Jan 2011 15:24:52 -0500 User-Agent: KMail/1.6.2 References: <30407800.3251371294783096175.JavaMail.root@wmail14> <20110113112249.417b6c49.ariff@FreeBSD.org> <201101131314.09630.jkim@FreeBSD.org> In-Reply-To: <201101131314.09630.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_X+1LNJ35SXOz5uH" Message-Id: <201101131524.55309.jkim@FreeBSD.org> Cc: eculp , Ariff Abdullah Subject: Re: R: Recent mouse freeze problem with X, different window managers, any browser and flash. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2011 20:25:10 -0000 --Boundary-00=_X+1LNJ35SXOz5uH Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 13 January 2011 01:14 pm, Jung-uk Kim wrote: > On Wednesday 12 January 2011 10:22 pm, Ariff Abdullah wrote: > > On Wed, 12 Jan 2011 09:53:03 -0600 > > > > eculp wrote: > > > Quoting Ariff Abdullah : > > > > On Wed, 12 Jan 2011 22:51:29 +0800 > > > > Ariff Abdullah wrote: > > > > > > > > [....] > > > > > > > >> Try disabling mtrr, machdep.disable_mtrrs=0 through > > > >> boot prompt or /boot/loader.conf. > > > > > > > > Grr.. should be machdep.disable_mtrrs=1 > > > > > > Caught it, changed it en loader.conf, rebooted and have had > > > youtube > > > > > > running more that 10 minutes with no ill affects. > > > > Keep in mind that disabling mtrr is a temporary measure. > > > > > Want to clarify that this in with current i386. > > > > > > 9.0-CURRENT FreeBSD 9.0-CURRENT #161: Wed Jan 12 04:38:15 CST > > > 2011 > > > > > > root@home.encontacto.net:/usr/obj/usr/src/sys/ENCONTACTO i386 > > > > > > Thanks again, > > > > > > ed > > > > > > Thanks so much for your help. > > > > > > ed > > > > > > >> If that is the case, you probably want this: > > > >> > > > >> http://people.freebsd.org/~ariff/misc/mtrr.diff > > > > This breakage was due to r215415 commit. Jung-uk Kim, any idea ? Can you please try the attached patch *without* ariff's workaround? Thanks, Jung-uk Kim --Boundary-00=_X+1LNJ35SXOz5uH Content-Type: text/plain; charset="iso-8859-1"; name="cache_mode.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cache_mode.diff" Index: sys/amd64/amd64/initcpu.c =================================================================== --- sys/amd64/amd64/initcpu.c (revision 217356) +++ sys/amd64/amd64/initcpu.c (working copy) @@ -169,6 +169,9 @@ void initializecpucache() { + /* Turn on normal cache mode. */ + load_cr0(rcr0() & ~(CR0_CD | CR0_NW)); + /* * CPUID with %eax = 1, %ebx returns * Bits 15-8: CLFLUSH line size Index: sys/i386/i386/initcpu.c =================================================================== --- sys/i386/i386/initcpu.c (revision 217356) +++ sys/i386/i386/initcpu.c (working copy) @@ -532,7 +532,6 @@ init_mendocino(void) wrmsr(MSR_BBL_CR_CTL3, bbl_cr_ctl3); } - load_cr0(rcr0() & ~(CR0_CD | CR0_NW)); intr_restore(saveintr); #endif /* CPU_PPRO2CELERON */ } @@ -701,6 +700,8 @@ initializecpu(void) pg_nx = PG_NX; } #endif + /* Turn on normal cache mode. */ + load_cr0(rcr0() & ~(CR0_CD | CR0_NW)); break; #endif default: --Boundary-00=_X+1LNJ35SXOz5uH--