Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 12:00:17 +0100 (CET)
From:      oliver.fromme@heim3.tu-clausthal.de
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/9515: ISA DMA memory problems if >= 512 MB RAM
Message-ID:  <199901151100.MAA44784@hermes.rz.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help

>Number:         9515
>Category:       kern
>Synopsis:       ISA DMA memory problems if >= 512 MB RAM
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 15 03:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Fromme
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Clausthal Technical University
>Environment:

        Any fairly recent 3.0-current.  The problem is
        reproducible on 3.0-RELEASE as well as on -current
        as of 1999-01-14 (yesterday).

>Description:

        This is a PentiumII-450 with 512 MB RAM, equipped with
        an SB AWE64 soundcard (ISA).  When using the Voxware
        drivers, we get:

        snd0: <SoundBlaster 16 4.16> 
        soundcard buffer alloc failed 
        snd: Unable to allocate 131072 bytes of buffer

        When using the new "Luigi" pcm driver, there is no such
        error message, but the soundcard still does not work --
        as soon as we try to play something, we get:

        panic: isa_dmacheck: no physical page present

        The soundcard is correctly configured.  As soon as we
        remove any one or more of the memory DIMMs (thus
        reducing the amount of RAM to less than 512 MB), the
        soundcard does work fine.

        I searched the mailing lists and found another one with
        the same problem (Soundcard DMA doesn't work with 512
        MB RAM), but neither a fix nor an "official" PR.

        The lnc NIC driver seems to be affected, too.  There's
        a 10Base-FL PCI card (based on some AMD chip) in that
        machine, which does not work with 512 MB RAM, but does
        work (although slow) with anything less than 512 MB.
        All other hardware works fine with 512 Mb:  Adaptec
        7890 U2W host adapter, 100Base-FX NIC (based on intel
        82557 chip, probed as EtherExpress Pro/100B), another
        EtherExpress which is onboard of the mainboard, Matrox
        Millenium G200 (AGP), floppy drive.

	Here's the boot output of that box, and the kernel
	config file.  Let me know if you need more information.

Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #2: Thu Jan 14 18:12:41 CET 1999
inof@hermes.rz.tu-clausthal.de:/usr/src/sys/compile/HERMES
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 451025116 Hz
CPU: Pentium II (quarter-micron) (451.03-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0x652  Stepping=2
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,<b24>>
real memory  = 536870912 (524288K bytes)
config> ls
Device   port       irq   drq   iomem   iosize   unit  flags      enab confl
fdc0     0x3f0      6     2     0       0        0     0          Yes  No 
atkbdc0  0x60       -1    -1    0       0        0     0          Yes  No 
atkbd0   0xffffffff 1     -1    0       0        0     0          Yes  No 
psm0     0xffffffff 12    -1    0       0        0     0          Yes  No 
sc0      0xffffffff -1    -1    0       0        0     0          Yes  No 
sio0     0x3f8      4     -1    0       0        0     0x10       Yes  No 
sio1     0x2f8      3     -1    0       0        1     0          Yes  No 
lpt0     0xffffffff 7     -1    0       0        0     0          Yes  No 
lnc0     0xffffffff -1    -1    0       0        0     0          Yes  No 
vga0     0xffffffff -1    -1    0       0        0     0          Yes  Yes
npx0     0xf0       13    -1    0       0        0     0          Yes  No 
sb0      0x220      5     1     0       0        0     0          Yes  No 
sbxvi0   0xffffffff -1    5     0       0        0     0          Yes  No 
sbmidi0  0x330      -1    -1    0       0        0     0          Yes  No 
awe0     0x620      -1    -1    0       0        0     0          Yes  No 
opl0     0x388      -1    -1    0       0        0     0          Yes  No 
CSN LDN conf en irqs  drqs others (PnP devices)
1   0 OS    Y  5 0   1 5  port 0x220 0x330 0x388 
1   1 OS    Y  0 0   0 0  port 0x208 
1   2 OS    Y  0 0   0 0  port 0x620 0xa20 0xe20 
config> quit
avail memory = 520179712 (507988K bytes)
Probing for devices on PCI bus 0:
chip0: <Intel 82443BX host to PCI bridge> rev 0x02 on pci0.0.0
chip1: <Intel 82443BX host to AGP bridge> rev 0x02 on pci0.1.0
chip2: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.4.0
chip3: <Intel 82371AB Power management controller> rev 0x02 on pci0.4.3
ahc0: <Adaptec aic7890/91 Ultra2 SCSI adapter> rev 0x00 int a irq 14 on pci0.6.0
ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x05 int a irq 15 on pci0.7.0
fxp0: Ethernet address 00:e0:18:90:90:82
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x02 int a irq 15 on pci0.10.0
fxp1: Ethernet address 00:00:f4:a2:59:a6
lnc1: <PCNet/PCI Ethernet adapter> rev 0x16 int a irq 10 on pci0.11.0
lnc1: PCnet-PCI II address 00:00:f4:c9:06:79
Probing for devices on PCI bus 1:
vga0: <Matrox model 0521 graphics accelerator> rev 0x01 int a irq 11 on pci1.0.0
Probing for PnP devices:
CSN 1 Vendor ID: CTL00e4 [0xe4008c0e] Serial 0x08f7f578 Comp ID: PNPb02f [0x2fb0d041]
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <10 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 irq 12 on isa
psm0: model Generic PS/2 mouse, device ID 0
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
lnc0 not found
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 5 drq 1 on isa
snd0: <SoundBlaster 16 4.16> 
sbxvi0 at drq 5 on isa
snd0: <SoundBlaster 16 4.16> 
soundcard buffer alloc failed 
snd: Unable to allocate 131072 bytes of buffer
sbmidi0 at 0x330 on isa
snd0: <SoundBlaster MPU-401> 
awe0 at 0x620 on isa
awe0: <SoundBlaster EMU8000 MIDI (RAM512k)>
opl0 at 0x388 on isa
snd0: <Yamaha OPL3 FM> 
Waiting 5 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 5 lun 0
sa0: <HP C1537A L708> Removable Sequential Access SCSI-2 device 
sa0: 3.300MB/s transfers
changing root device to da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device 
da0: 3.300MB/s transfers, Tagged Queueing Enabled
da0: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device 
da1: 3.300MB/s transfers, Tagged Queueing Enabled
da1: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da2 at ahc0 bus 0 target 2 lun 0
da2: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device 
da2: 3.300MB/s transfers, Tagged Queueing Enabled
da2: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
ffs_mountfs: superblock updated for soft updates
last message repeated 12 times



machine		"i386"
cpu		"I686_CPU"
ident		HERMES
maxusers	64

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		FFS_ROOT		#FFS usable as root device [keep this!]
options		MFS			#Memory Filesystem
options		MFS_ROOT		#MFS usable as root device, "MFS" req'ed
options		NFS			#Network Filesystem
options		NFS_ROOT		#NFS usable as root device, "NFS" req'ed
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		"CD9660_ROOT"		#CD-ROM usable as root. "CD9660" req'ed
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		SCSI_DELAY=5000		#Be pessimistic about Joe SCSI device
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

config		kernel	root on wd0

controller	isa0
controller	pci0

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

controller	ahc0
controller	scbus0
device		da0
device		sa0
device		pass0
device		cd0	#Only need one of these, the code dynamically grows

controller	atkbdc0	at isa? port IO_KBD tty
device		atkbd0	at isa? tty irq 1
device		psm0	at isa? tty irq 12
device		vga0	at isa? port ? conflicts
pseudo-device	splash
device		sc0	at isa? tty

device		npx0	at isa? port IO_NPX irq 13

device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4
device		sio1	at isa? port "IO_COM2" tty irq 3
device		lpt0	at isa? port? tty irq 7

device fxp0
device lnc0 at isa? port? net irq? drq?

pseudo-device	loop
pseudo-device	ether
pseudo-device	pty	256
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	bpfilter	4	#Berkeley packet filter

options		KTRACE		#kernel tracing
options		SYSVSHM

options		"MAXDSIZ=(512*1024*1024)"
options		"DFLDSIZ=(256*1024*1024)"

options         INCLUDE_CONFIG_FILE     # Include this file in kernel
options		"MD5"
options		SOFTUPDATES

pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	vn	16	#Vnode driver (turns a file into a device)

options		"MSGBUF_SIZE=40960"
options		"AUTO_EOI_1"
options		MAXCONS=10		# number of virtual consoles
options		SC_HISTORY_SIZE=400	# number of history buffer lines

controller	pnp0
# device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x15
controller	snd0
device sb0      at isa? port 0x220 irq 5 drq 1
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330
device awe0     at isa? port 0x620
device opl0     at isa? port 0x388

controller smbus0
device smb0	at smbus?

options         "ICMP_BANDLIM"



>How-To-Repeat:

	See above.  Put 512 MB RAM in a machine and try to get
	an SB AWE64 soundcard (or similar) working.

>Fix:

        Not known.	

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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