Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 1996 17:32:27 -0600 (CST)
From:      Lars Jonas Olsson <jonas@mcs.net>
To:        hackers@freebsd.org
Cc:        jonas@mcs.net
Subject:   dga and page fault in kernel mode
Message-ID:  <199612102332.RAA04997@Jupiter.Mcs.Net>

next in thread | raw e-mail | index | archive | help
 I'm trying to get a DGA based system to run with current FreeBSD and
X11. The FreeBSD is current sup'ed today. The X11 is XFree86 3.2
running on #9 Motion 771.

 Both my program and the dga program (/usr/X11R6/bin/dga) make FreeBSD
panic during the XF86DGADirectVideo(display, screen, 0) call to go
from DGA mode to normal X mode.

 Using COMCONSOLE I get the following:

Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xf3488ffd
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xf01b08f3
stack pointer	        = 0x10:0xefbffed8
frame pointer	        = 0x10:0xefbffef4
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 203 (dga)
interrupt mask		= 
panic: page fault

syncing disks... 40 40 37 33 14 2 done
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...
cu: Got hangup signal

 Any ideas what to do? What's the next step in debugging?

 My config file has the following. The only odd thing is the large
amount of shared memory. The machine is a Texas Microsystems PV5000HX
SBC with 128 MB EDO parity RAM (Samsung KMM5368105BKG-6), 512 kB
cache, Triton II. Cards are Boca IO650 (2 serial ports), Matrox Meteor
RGB, NE2000 clone, Number 9 FX Motion 771. Using 1GB Quantum IDE, no
SCSI devices.

machine		"i386"
cpu		"I486_CPU"
cpu		"I586_CPU"
cpu		"I686_CPU"
ident		GENERIC
maxusers	10

options		COMCONSOLE		#prefer serial console to video console
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		SCSI_DELAY=5		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

options		SHMMAXPGS=8192
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

config		kernel	root on wd0

controller	isa0
controller	eisa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

# A single entry for any of these controllers (ncr, ahb, ahc) is sufficient
# for any number of installed devices.
controller	ahb0
controller	ahc0
options		"AHC_FORCE_PIO"		# Some motherboards choke on MemI/O,
					# so use PIO in the ahc driver in the
					# generic kernel.

controller	scbus0

device		sd0

device		st0

device		cd0	#Only need one of these, the code dynamically grows

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr

# Mandatory, don't remove
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr

device ed0 at isa? port 0x280 net irq  10 iomem 0xd8000 vector edintr

options METEOR_ALLOC_PAGES=450
device		meteor0

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612102332.RAA04997>