Re: snd_neomagic kldloads, then 5.2.1-p11 freezes
Nice, but please stop cross-posting! Cheers Thomas On Thu, 28 Oct 2004 00:32:48 +0200, Jan Stary [EMAIL PROTECTED] wrote: Hello, I am running FreeBSD 5.2.1-p11 on a Dell Latitude LS notebook. (See KERNCONF and dmesg at the end.) Nearly everything is working fine, except for the sound chip. I built the sound stuff as modules (sound/pcm + sound/driver/neomagic, resulting in snd_pcm + snd_neomagic). When I try to insert the module, I get # kldload snd_neomagic pcm0: NeoMagic 256AV mem 0xfea0-0xfeaf,0xf780-0xf7bf, irq 10, device 0.1 on pci1 and then the system freezes. If I compile pcm right into the kernel, the freeze occurs during bootime with the same message. I also have wi0 running at irq 10 (see dmesg); when I don't use it (no card in, no device attached to wi0, irq 10 not used by anything), the freeze ocuurs all the same. Suspecting some conflict between devices using irq 10, I said hint.pcm.0.irq=5 in /boot/device.hints (irq 5 is not used by anything), but kldloading snd_neomagic still tries to use irq 10 - why is that? What is the right way of telling a device which irq to use? Before I even found that it is a NeoMagic, I built all the sound modules and tried kldloading them. Some of them just loaded and nothing happened (I probably don't have any device they could serve), some resulted in # kldload snd_ad1816 sio1: configured irq 3 not in bitmap of probed irqs 0x4000 sio1: port may not be enabled # kldload snd_ess sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled # kldload snd_mss sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled # kldload speaker sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled speaker0 port0x61 on acpi0 Why does kldloading a sound module have to do anything with sio1? Where is irq 3 'configured' to be used? (by the sound module?) So I also disabled sio1 in device.hints (hint.sio.1.disabled=1) - there is only one sio at the machine anyway. I use ACPI - does it have anything to do with my problem? (with ACPI, devices are 'on acpi0', not on 'on isa0' etc.) Thanks Jan This is my KERNCONF: # DELL -- kernel configuration file for FreeBSD/i386 on Dell Latitude LS ident DELL machine i386 cpu I686_CPU #optionsCPU_SUSP_HALT # suspend on halt #optionsCPU_UPGRADE_HW_CACHE # eliminates unneeded cache flushes #optionsPERFMON #hints GENERIC.hints # Default places to look for devices. #makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols options SCHED_ULE # ULE scheduler options INET# InterNETworking options INET6 # IPv6 communications protocols options IPSEC options IPSEC_DEBUG options BRIDGE options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS# Pseudo-filesystem framework options GEOM_GPT# GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 #optionsSCSI_DELAY=15000# Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV# install a CDEV entry in /dev # Bus support. Do not remove isa, even if you have no isa slots device isa device eisa device pci # Floppy drives #device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives options ATA_STATIC_ID # Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device
snd_neomagic kldloads, then 5.2.1-p11 freezes
Hello, I am running FreeBSD 5.2.1-p11 on a Dell Latitude LS notebook. (See KERNCONF and dmesg at the end.) Nearly everything is working fine, except for the sound chip. I built the sound stuff as modules (sound/pcm + sound/driver/neomagic, resulting in snd_pcm + snd_neomagic). When I try to insert the module, I get # kldload snd_neomagic pcm0: NeoMagic 256AV mem 0xfea0-0xfeaf,0xf780-0xf7bf, irq 10, device 0.1 on pci1 and then the system freezes. If I compile pcm right into the kernel, the freeze occurs during bootime with the same message. I also have wi0 running at irq 10 (see dmesg); when I don't use it (no card in, no device attached to wi0, irq 10 not used by anything), the freeze ocuurs all the same. Suspecting some conflict between devices using irq 10, I said hint.pcm.0.irq=5 in /boot/device.hints (irq 5 is not used by anything), but kldloading snd_neomagic still tries to use irq 10 - why is that? What is the right way of telling a device which irq to use? Before I even found that it is a NeoMagic, I built all the sound modules and tried kldloading them. Some of them just loaded and nothing happened (I probably don't have any device they could serve), some resulted in # kldload snd_ad1816 sio1: configured irq 3 not in bitmap of probed irqs 0x4000 sio1: port may not be enabled # kldload snd_ess sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled # kldload snd_mss sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled # kldload speaker sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled speaker0 port0x61 on acpi0 Why does kldloading a sound module have to do anything with sio1? Where is irq 3 'configured' to be used? (by the sound module?) So I also disabled sio1 in device.hints (hint.sio.1.disabled=1) - there is only one sio at the machine anyway. I use ACPI - does it have anything to do with my problem? (with ACPI, devices are 'on acpi0', not on 'on isa0' etc.) Thanks Jan This is my KERNCONF: # DELL -- kernel configuration file for FreeBSD/i386 on Dell Latitude LS ident DELL machine i386 cpu I686_CPU #optionsCPU_SUSP_HALT # suspend on halt #optionsCPU_UPGRADE_HW_CACHE # eliminates unneeded cache flushes #optionsPERFMON #hints GENERIC.hints # Default places to look for devices. #makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols options SCHED_ULE # ULE scheduler options INET# InterNETworking options INET6 # IPv6 communications protocols options IPSEC options IPSEC_DEBUG options BRIDGE options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS# Pseudo-filesystem framework options GEOM_GPT# GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 #optionsSCSI_DELAY=15000# Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV# install a CDEV entry in /dev # Bus support. Do not remove isa, even if you have no isa slots device isa device eisa device pci # Floppy drives #device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives options ATA_STATIC_ID # Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver device agp # support several AGP chipsets #optionsVESA device splash # Splash screen and screen saver support device sc # syscons: the default console driver # Floating