Re: CMAP2 busy ?

1999-10-28 Thread Bruce Evans

On Thu, 28 Oct 1999, Luoqi Chen wrote:

> > ...
> > panic: pmap_zero_page: CMAP2 busy
> > 
> It looked like an interrupt hit when the cpu was in an idle loop replenishing
> zero filled pages, and the interrupt handler somehow also tried to zero some
> pages itself.  In vm_page_zero_idle(), pmap_zero_page should be called
> at splvm() to prevent this from happening, or allocate another pte exclusively
> for the idle loop. The latter seems to be preferable.

It is an error to use CMAP2 in an interrupt handler.  CMAP2 is reserved
for use in process and trap context.  E.g., it is used in pmap_copy_page()
which is often called from vm_fault() without any spl protection.

Bruce



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: CMAP2 busy ?

1999-10-28 Thread Luoqi Chen

> Hi.
> 
> I've been experiencing problems with my machine crashing when in X,
> when idle overnight.
> 
> Normally it panics with XF86_S3. Today however the machine returned
> something a little different, which I haven't seen before.
> I hope this helps someone.
> 
> The machine worlds with no problems, and is perfectly stable
> when in console mode. X has been rebuilt several times.
> 
> GNU gdb 4.18
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-unknown-freebsd"...
> IdlePTD 3559424
> initial pcb at 29d280
> panicstr: pmap_zero_page: CMAP2 busy
> panic messages:
> ---
> panic: pmap_zero_page: CMAP2 busy
> 
It looked like an interrupt hit when the cpu was in an idle loop replenishing
zero filled pages, and the interrupt handler somehow also tried to zero some
pages itself.  In vm_page_zero_idle(), pmap_zero_page should be called
at splvm() to prevent this from happening, or allocate another pte exclusively
for the idle loop. The latter seems to be preferable.

-lq


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: CMAP2 busy ?

1999-10-28 Thread Bill Fumerola

On Thu, 28 Oct 1999, Khetan Gajjar wrote:

> #0  boot (howto=256) at ../../kern/kern_shutdown.c:280
> 280   dumppcb.pcb_cr3 = rcr3();
> (kgdb) quit

That's useless, every panic will look like that. Please see the handbook's
instructions for good debugging tips.

-- 
- bill fumerola - [EMAIL PROTECTED] - BF1560 - computer horizons corp -
- ph:(800) 252-2421 - [EMAIL PROTECTED] - [EMAIL PROTECTED]  -






To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



CMAP2 busy ?

1999-10-28 Thread Khetan Gajjar

Hi.

I've been experiencing problems with my machine crashing when in X,
when idle overnight.

Normally it panics with XF86_S3. Today however the machine returned
something a little different, which I haven't seen before.
I hope this helps someone.

The machine worlds with no problems, and is perfectly stable
when in console mode. X has been rebuilt several times.

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
IdlePTD 3559424
initial pcb at 29d280
panicstr: pmap_zero_page: CMAP2 busy
panic messages:
---
panic: pmap_zero_page: CMAP2 busy

syncing disks... 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 done

dumping to dev #wd/0x20001, offset 77824
dump 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 
88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 
59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 
30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 
---
#0  boot (howto=256) at ../../kern/kern_shutdown.c:280
280 dumppcb.pcb_cr3 = rcr3();
(kgdb) quit
---
Khetan Gajjar   (!kg1779) * [EMAIL PROTECTED]
http://khetan.os.org.za/  * Talk/Finger [EMAIL PROTECTED]
FreeBSD enthusiast* http://www2.za.freebsd.org/

/dev/random output :
 Nihil est--in vita priore ego imperator Romanus fui.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message