R: Recent mouse freeze problem with X, different window managers, any browser and flash.

Jung-uk Kim jkim at FreeBSD.org
Thu Jan 13 20:25:10 UTC 2011


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 at encontacto.net> wrote:
> > > Quoting Ariff Abdullah <ariff at FreeBSD.org>:
> > > > On Wed, 12 Jan 2011 22:51:29 +0800
> > > > Ariff Abdullah <ariff at 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 at 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
-------------- next part --------------
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:


More information about the freebsd-current mailing list