Date: Thu, 13 Jan 2011 15:24:52 -0500 From: Jung-uk Kim <jkim@FreeBSD.org> To: freebsd-current@FreeBSD.org Cc: eculp <eculp@encontacto.net>, Ariff Abdullah <ariff@freebsd.org> Subject: Re: R: Recent mouse freeze problem with X, different window managers, any browser and flash. Message-ID: <201101131524.55309.jkim@FreeBSD.org> In-Reply-To: <201101131314.09630.jkim@FreeBSD.org> References: <30407800.3251371294783096175.JavaMail.root@wmail14> <20110113112249.417b6c49.ariff@FreeBSD.org> <201101131314.09630.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <eculp@encontacto.net> wrote: > > > Quoting Ariff Abdullah <ariff@FreeBSD.org>: > > > > On Wed, 12 Jan 2011 22:51:29 +0800 > > > > Ariff Abdullah <ariff@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101131524.55309.jkim>