Re: HEADS UP: APM users on -current!
> Date: Fri, 03 Oct 2003 23:37:15 -0700 > From: Peter Wemm <[EMAIL PROTECTED]> > > "Kevin Oberman" wrote: > > > Date: Wed, 01 Oct 2003 22:01:07 -0700 > > > From: Peter Wemm <[EMAIL PROTECTED]> > > > Sender: [EMAIL PROTECTED] > > > > > > I've made a commit that has been reported as breaking APM for some people. > > > I'll be following this up, so could folks please report here if things > > > break? (and feel free to say so if you find the problem :-). It would > > > also be interesting to know that things are ok for a few people too. > > > > > > If you're stuck (hang or reset on boot), take out apm for the time being. > > > Yes, I know that isn't a solution, but please bear with me. > > > > No hangs or resets on my ThinkPad T30. It just crashes. :-( > > I found it.. please try with revision 1.177 of locore.s.. > > peter 2003/10/03 23:30:56 PDT Peter, That did the trick. It's not pretty, but it works. I'm amazed this this problem was not reported more frequently, not just because of you update, but the earlier discussion of the value of DISABLE_PSE on many systems (including mine). Thanks! I was afraid that this was such a rare problem that the changes might go in and my laptop would have the OS frozen for a very long time. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: [EMAIL PROTECTED] Phone: +1 510 486-8634 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: HEADS UP: APM users on -current!
"Kevin Oberman" wrote: > > Date: Wed, 01 Oct 2003 22:01:07 -0700 > > From: Peter Wemm <[EMAIL PROTECTED]> > > Sender: [EMAIL PROTECTED] > > > > I've made a commit that has been reported as breaking APM for some people. > > I'll be following this up, so could folks please report here if things > > break? (and feel free to say so if you find the problem :-). It would > > also be interesting to know that things are ok for a few people too. > > > > If you're stuck (hang or reset on boot), take out apm for the time being. > > Yes, I know that isn't a solution, but please bear with me. > > No hangs or resets on my ThinkPad T30. It just crashes. :-( I found it.. please try with revision 1.177 of locore.s.. peter 2003/10/03 23:30:56 PDT FreeBSD src repository Modified files: sys/i386/i386locore.s Log: Emulate bugs in the old PSE code so that apm works again. I do not yet understand why, but apm *depended* on the fact that the old PSE code caused the first 1MB of ram to be mapped read/write because it was in the same 4MB page as the kernel text+data+bss blob. If anybody ever tried DISABLE_PSE before, apm would not work. If your cpu did not have PSE, apm would not work there either (eg: 486). This bug has been around for a Very Long Time. The Pentium-4-fix commits did not emulate this unintended side effect of the PSE post-early-boot fixup, and thus apm blew up. I've added a hack to emulate the bug until either apm is fixed or we set fire to our bridges. This is bad though because it gives kernel mode code the opportunity to accidently write to the first few megs of the general page pool which is remapped at KERNBASE. It needs to be fixed properly. Revision ChangesPath 1.177 +5 -0 src/sys/i386/i386/locore.s @@ -787,7 +788,12 @@ /* Map read-only from zero to the beginning of the kernel text section */ xorl%eax, %eax +#ifdef BURN_BRIDGES xorl%edx,%edx +#else +/* XXX emulate bugs in the old PSE code so that apm works */ + movl$PG_RW,%edx +#endif movl$R(btext),%ecx addl$PAGE_MASK,%ecx shrl$PAGE_SHIFT,%ecx Cheers, -Peter -- Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] "All of this is for nothing if we don't go to the stars" - JMS/B5 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: HEADS UP: APM users on -current!
"Kevin Oberman" wrote: > > Date: Wed, 01 Oct 2003 22:01:07 -0700 > > From: Peter Wemm <[EMAIL PROTECTED]> > > Sender: [EMAIL PROTECTED] > > > > I've made a commit that has been reported as breaking APM for some people. > > I'll be following this up, so could folks please report here if things > > break? (and feel free to say so if you find the problem :-). It would > > also be interesting to know that things are ok for a few people too. > > > > If you're stuck (hang or reset on boot), take out apm for the time being. > > Yes, I know that isn't a solution, but please bear with me. > > No hangs or resets on my ThinkPad T30. It just crashes. :-( OK, I have it myself now. I'm working on it.. Cheers, -Peter -- Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] "All of this is for nothing if we don't go to the stars" - JMS/B5 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: HEADS UP: APM users on -current!
> Date: Wed, 01 Oct 2003 22:01:07 -0700 > From: Peter Wemm <[EMAIL PROTECTED]> > Sender: [EMAIL PROTECTED] > > I've made a commit that has been reported as breaking APM for some people. > I'll be following this up, so could folks please report here if things > break? (and feel free to say so if you find the problem :-). It would > also be interesting to know that things are ok for a few people too. > > If you're stuck (hang or reset on boot), take out apm for the time being. > Yes, I know that isn't a solution, but please bear with me. No hangs or resets on my ThinkPad T30. It just crashes. :-( I have previously sent the manually transcribed panic message and the traceback to Bosko and would prefer not to have to do it again, but I can. The traceback is only 3 deep. Exactly what would you like me to send you on this. I will be very willing to do whatever is required to get this fixed as the data corruption caused by the problem it fixes has been very annoying in CURRENT. Thanks, -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: [EMAIL PROTECTED] Phone: +1 510 486-8634 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
HEADS UP: APM users on -current!
I've made a commit that has been reported as breaking APM for some people. I'll be following this up, so could folks please report here if things break? (and feel free to say so if you find the problem :-). It would also be interesting to know that things are ok for a few people too. If you're stuck (hang or reset on boot), take out apm for the time being. Yes, I know that isn't a solution, but please bear with me. Cheers, -Peter -- Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] "All of this is for nothing if we don't go to the stars" - JMS/B5 --- Forwarded Message Date:Wed, 01 Oct 2003 16:46:08 -0700 From:Peter Wemm <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: cvs commit: src/sys/conf ldscript.i386 src/sys/i386/i386 bios.c genass ym.c locore.s machdep.c mp_machdep.c mpboot.s pmap.c src/sys/i386/inc lude pmap.h vmparam.h peter 2003/10/01 16:46:08 PDT FreeBSD src repository Modified files: sys/conf ldscript.i386 sys/i386/i386bios.c genassym.c locore.s machdep.c mp_machdep.c mpboot.s pmap.c sys/i386/include pmap.h vmparam.h Log: Commit Bosko's patch to clean up the PSE/PG_G initialization to and avoid problems with some Pentium 4 cpus and some older PPro/Pentium2 cpus. There are several problems, some documented in Intel errata. This patch: 1) moves the kernel to the second page in the PSE case. There is an errata that says that you Must Not point a 4MB page at physical address zero on older cpus. We avoided bugs here due to sheer luck. 2) sets up PSE page tables right from the start in locore, rather than trying to switch from 4K to 4M (or 2M) pages part way through the boot sequence at the same time that we're messing with PG_G. For some reason, the pmap work over the last 18 months seems to tickle the problems, and the PAE infrastructure changes disturb the cpu bugs even more. A couple of people have reported a problem with APM bios calls during boot. I'll work with people to get this resolved. Obtained from: bmilekic Revision ChangesPath 1.8 +1 -1 src/sys/conf/ldscript.i386 1.63 +12 -12src/sys/i386/i386/bios.c 1.144 +3 -0 src/sys/i386/i386/genassym.c 1.175 +62 -9 src/sys/i386/i386/locore.s 1.573 +1 -1 src/sys/i386/i386/machdep.c 1.217 +2 -8 src/sys/i386/i386/mp_machdep.c 1.21 +16 -0 src/sys/i386/i386/mpboot.s 1.442 +35 -86src/sys/i386/i386/pmap.c 1.101 +3 -1 src/sys/i386/include/pmap.h 1.37 +7 -0 src/sys/i386/include/vmparam.h --- End of Forwarded Message ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"