#6922 closed bug (fixed)
OpenSound-232d0de71550 KDL's on boot (possible mtrr issue?)
Reported by: | mmadia | Owned by: | mmu_man |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Drivers/Audio/OpenSound | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #6849 | |
Platform: | All |
Description
This ticket is being split off from my comments made in #6849, as there may be possible confusion between the various OpenSound packages (which are not part of build/jam/OptionalPackages, due to concerns of known issues).
This package of opensound-232d0de71550 was built on hrev39567 with GCC4. It contains extra dprintf()'s to help pinpoint the exact location of failure.
The failure occurs when
- The above OpenSound package is installed
- /boot/system/add-ons/kernel/drivers/dev/audio/* is archived and the original files are removed
- On reboot, oss detects the hd audio chipset and triggers a KDL.
The failure is in os_beos.c oss_map_pci_mem()
caddr_t oss_map_pci_mem (oss_device_t * osdev, int nr, int phaddr, int size) { status_t err; void *va = NULL; FENTRYA("%p,%d,%u,%d", osdev, nr, phaddr, size); //XXX:align phaddr ? /* round up to page size */ size += B_PAGE_SIZE - 1; size &= ~(B_PAGE_SIZE - 1); dprintf("oss_map_pci_mem()\n"); err = map_physical_memory(OSS_PCI_AREA_NAME, (void *)phaddr, size, B_ANY_KERNEL_BLOCK_ADDRESS, 0, &va); dprintf("oss_map_pci_mem() -- past map_physical_memory\n"); if (err < B_OK) va = NULL; FEXITR((uint32)va); return (caddr_t)va; }
Serial output snippet (full log is attached)
Could not load kernel add-on "/boot/system/add-ons/kernel/drivers/dev/audio/hmulti.zip": Not an executable oss_load_options(): oss_core oss_load_options(): oss_core -- past load_driver_settings() exiting oss_load_options(): oss_core oss_common_init oss_register_device oss_register_device() OSS core services oss_register_device() OSS core services -- exiting past oss_register_device oss:init_osscore: 0x00000000 oss:init_driver(): calling gOSSCore->oss_load_drivers() oss_load_drivers() Last message repeated 13 times. oss: matching pci 10de,03f0 oss_load_options(): oss_hdaudio oss_load_options(): oss_hdaudio -- past load_driver_settings() exiting oss_load_options(): oss_hdaudio oss_hdaudio_attach() oss_map_pci_mem() add_memory_type_range(3636, 0xffffffffdde78000, 0x4000, 0) PANIC: Unexpected exception "General Protection Exception" occurred in kernel mode! Error code: 0x0 Welcome to Kernel Debugging Land... Thread 145 "media_addon_server" running on CPU 1 stack trace for thread 145 "media_addon_server" kernel stack: 0x818f7000 to 0x818fb000 user stack: 0x7efef000 to 0x7ffef000
Attachments (1)
Change History (9)
by , 14 years ago
Attachment: | minicom-opensound-oss-gcc4-39567-7.cap added |
---|
comment:1 by , 14 years ago
Blocking: | 6849 added |
---|
Setting this ticket as a blocker for #6849, as the current OpenSound package in build/jam/OptionalPackages (opensound-4.2-r1a2-x86-gcc2-2010-05-01.zip) does not contain the code to allow co-existence with native drivers.
comment:2 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | assigned → in-progress |
comment:4 by , 14 years ago
Blocking: | 7665 added |
---|
comment:5 by , 13 years ago
Component: | Drivers/Audio → Drivers/Audio/OpenSound |
---|
comment:6 by , 8 years ago
The current 4.2_git-2 package has a fix for this (the KDL on 64bit). I thought I upstreamed it but it doesn't seem to be in their git tree yet.
Please test on a recent nightly.
comment:7 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
No reply, assuming fixed.
comment:8 by , 6 years ago
Blocking: | 7665 removed |
---|
serial log of booting with opensound-232d0de71550-x86-gcc4-2010-11-26-built_on_r39567-with_extra_dprintf.zip installed