OSS 4.2 fails to load - Intel ICH9, 82801I

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby cesium » Wed Jun 02, 2010 9:19 pm

You get build errors when it links? Possibly due to rev. 736 which will need to be applied again. (You don't have to mess with the repo, since osscore.c is compiled later when the modules are loaded and the API didn't change. Copy osscore.c from the latest rev to /tmp, and then copy that to /usr/lib/oss/build after installing OSS but before starting it/linking the modules).
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby MadCatX » Wed Jun 02, 2010 11:12 pm

I tried what you suggested, copied the "setup/Linux/oss/build/osscore.c" from the latest rev to /usr/lib/oss after installing rev 586, but it's a no go. First the relinking script complained about some missing headers, I copied them too from build/kernel/framework/include. Then it complained about missin "ubuntu_hack something.inc" which I couldn't find anywhere in the sources, so I commented it out in osscore.c. I finally hit the wall with "No rule to make target osscore_mainline.o" error.
I used every possible method I could think of, I replaced the osscore.c before configuring, I tried to build either with AUR building script (Arch linux specific) and from the plain source directly. Results were always the same. I even tried rev 765 since you mentioned that the change occured in rev 736, surprisingly, it didn't work either.

I really appreciate all the help you're providing, if there is anything more I can try, let me know.
MadCatX
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby cesium » Thu Jun 03, 2010 12:42 am

Try this tarball. It doesn't report right version, but it's build 586. Extract it to '/' as root, and do 'cd /usr/lib/oss/build; sudo sh install.sh' followed by soundon. Hopefully you can test this...
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby MadCatX » Thu Jun 03, 2010 10:40 am

Nice, the tarball installed sucessfully, but when I run soundon, oss still crashes while loading "oss_hdaudio". I get this in dmesg
Code: Select all
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
nvidia 0000:01:00.0: irq 32 for MSI/MSI-X
oss_hdaudio 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
oss_hdaudio: Unknown HDA codec 0x10ec0272
oss_hdaudio: Unknown HDA codec 0x11c11040
oss_hdaudio: Unknown HDA codec 0x10ec0272
oss_hdaudio: Unknown HDA codec 0x11c11040
oss_hdaudio: Too many output endpoints
general protection fault: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/module/osscore/initstate
CPU 1
Modules linked in: oss_hdaudio(+) osscore ipv6 rfcomm sco bridge stp llc bnep l2cap btusb bluetooth ext2 uvcvideo videodev v4l1_compat v4l2_compat_ioctl32 cpufreq_powersave iwlagn iwlcore mac80211 sdhci_pci uhci_hcd sdhci video cfg80211 r8169 joydev toshiba_bluetooth battery ac output button thermal mmc_core ehci_hcd led_class usbcore mii cpufreq_ondemand rfkill firewire_ohci firewire_core crc_itu_t nvidia(P) i2c_i801 i2c_core intel_agp iTCO_wdt iTCO_vendor_support evdev jmb38x_ms memstick psmouse serio_raw pcspkr acpi_cpufreq freq_table processor thermal_sys coretemp rtc_cmos rtc_core rtc_lib

Pid: 2235, comm: modprobe Tainted: P           2.6.34-ck1-ARCHMOD #1 KSRAA/Qosmio X300
RIP: 0010:[<ffffffffa0b3f903>]  [<ffffffffa0b3f903>] hdaudio_mix_init+0x1f3/0x230 [oss_hdaudio]
RSP: 0018:ffff88013e313a08  EFLAGS: 00010206
RAX: 1010000400000000 RBX: ffffc90000060020 RCX: 0000000000000023
RDX: 0000000000000002 RSI: ffffc900100a7fc8 RDI: 0000000000000000
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
R10: 6db6db6db6db6db7 R11: 0000000000000000 R12: ffffc90000060010
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88013e313a18
FS:  00007fef47c27700(0000) GS:ffff880001900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00007fef47c25000 CR3: 000000013f38a000 CR4: 00000000000406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process modprobe (pid: 2235, threadinfo ffff88013e312000, task ffff88013ad22c30)
Stack:
0000000000000160 ffffffffa0acc520 0000000000000000 ffffc9001010b120
<0> 0000000000000000 0000000000000000 ffffc900100a6010 0000000000000000
<0> 000000000000001c 0000000000000000 ffffffffa0b14420 0000000000000000
Call Trace:
[<ffffffffa0acc520>] ? mixer_ext_create_control+0x190/0x390 [osscore]
[<ffffffffa0aca68d>] ? touch_mixer+0x2bd/0x430 [osscore]
[<ffffffffa0b418b7>] ? hdaudio_mixer_create+0x1f77/0x2890 [oss_hdaudio]
[<ffffffff81340b06>] ? retint_kernel+0x26/0x30
[<ffffffffa0b49e0c>] ? oss_hdaudio_attach+0xbcc/0x1580 [oss_hdaudio]
[<ffffffff811e013b>] ? acpi_pci_irq_enable+0x212/0x23c
[<ffffffff811b87f3>] ? pci_enable_resources+0x23/0x160
[<ffffffffa0b4af0e>] ? osspci_probe+0xd3/0x116 [oss_hdaudio]
[<ffffffff811b5b30>] ? pci_device_probe+0x80/0xb0
[<ffffffff8123443a>] ? driver_sysfs_add+0x5a/0x90
[<ffffffff812346e3>] ? driver_probe_device+0x93/0x190
[<ffffffff81234873>] ? __driver_attach+0x93/0xa0
[<ffffffff812347e0>] ? __driver_attach+0x0/0xa0
[<ffffffff8123380e>] ? bus_for_each_dev+0x4e/0x80
[<ffffffff81233f5a>] ? bus_add_driver+0xaa/0x260
[<ffffffff81234acc>] ? driver_register+0x6c/0x130
[<ffffffff811b5dcc>] ? __pci_register_driver+0x4c/0xc0
[<ffffffffa0b5e000>] ? pcidrv_init+0x0/0x35 [oss_hdaudio]
[<ffffffffa0b5e01e>] ? pcidrv_init+0x1e/0x35 [oss_hdaudio]
[<ffffffff810002e4>] ? do_one_initcall+0x34/0x1a0
[<ffffffff8106535c>] ? sys_init_module+0xdc/0x250
[<ffffffff81002dab>] ? system_call_fastpath+0x16/0x1b
Code: 31 c9 89 ea 4c 89 e6 44 89 f7 ff d0 85 c0 79 ad eb 88 66 0f 1f 44 00 00 49 8b 84 24 d8 0e 00 00 45 31 ed 48 85 c0 74 05 44 89 f7 <ff> d0 48 83 c4 38 44 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66
RIP  [<ffffffffa0b3f903>] hdaudio_mix_init+0x1f3/0x230 [oss_hdaudio]
RSP <ffff88013e313a08>
---[ end trace da97ae455009e675 ]---


Could you make a similar tarball with some earlier revision I can try?
MadCatX
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby cesium » Thu Jun 03, 2010 10:44 am

Yeah, I can. But first, how about we try this: copy the entire /usr/lib/oss/build subdir somewhere else, build an earlier rev, and copy the files from the subdir back overwriting previous files. I think this will allow you to test earlier revisions more easily.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby MadCatX » Thu Jun 03, 2010 10:46 am

OK, should I build them with any specific configure parameters except --regparm?
MadCatX
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby MadCatX » Thu Jun 03, 2010 11:22 am

Now this is awesome. I built rev 583 (make build && make tarball) and installed it according your instructions. Not only the driver loaded with no crash, but I have full sound! I haven't done much of an extensive testing, but KDE 4 sound system and mplayer seem to work just fine. Thanks for all the help you gave me...

ossinfo output is following
Code: Select all
Version info: OSS 4.2 (b 081213/201006031056) (0x00040100) OSS_HG
Hg revision: changeset: 583:245ad5ade43e, tag: tip, date: Wed Dec 24 00:16:29 2008 +0200, summary: Fixed license handling for the hg version
Platform: Linux/x86_64 2.6.34-ck1-ARCHMOD #1 SMP PREEMPT Wed May 26 13:42:00 CEST 2010 (Qosmio-X300)

Number of audio devices:        10
Number of audio engines:        14
Number of MIDI devices:         0
Number of mixer devices:        1


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=58302 (58302)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x1179ff00
     Codec  0: Unknown (0x10ec0272/0x1179ff78)
     Codec  1: Unknown (0x11c11040)

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio 0x10ec027 (Mixer 0 of device object 1)

Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play pcm3                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm5                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play pcm6                /dev/oss/oss_hdaudio0/pcm5  (device index 5)
HD Audio play pcm7                /dev/oss/oss_hdaudio0/pcm6  (device index 6)
HD Audio play pcm8                /dev/oss/oss_hdaudio0/pcm7  (device index 7)
HD Audio rec mix6                 /dev/oss/oss_hdaudio0/pcmin0  (device index 8)
HD Audio rec mix5                 /dev/oss/oss_hdaudio0/pcmin1  (device index 9)
MadCatX
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby cesium » Thu Jun 03, 2010 1:04 pm

Hi,

Can you try this diff with latest mercurial? It would help fixing the bug in trunk...
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby MadCatX » Thu Jun 03, 2010 1:53 pm

I'm pleased to inform that this fixes the crash on the latest mercurial:) Build and installation was 100% straightaway, no extra hacks and configure parameters needed. The only issue I have now is no sound when playing stuff in flashplayer (had that in 583 too) , but I guess that's a completely different story. Anyway, great work guys!
MadCatX
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby cesium » Thu Jun 03, 2010 2:54 pm

The Arch build removes libflashsupport from the source tree. I think it's a separate AUR, but you can also create it manually.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby MadCatX » Thu Jun 03, 2010 3:44 pm

I haven't been using AUR to make sure the build script doesn't screw something up. Now when everything seems to be solved I modified the AUR script to include flash support and the proposed hdaudio patch and everything is perfectly fine. It's great to have OSS up and running, thanx again...
MadCatX
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: OSS 4.2 fails to load - Intel ICH9, 82801I

Postby revel » Mon Jun 07, 2010 11:22 am

Hi,

I had problems with oss 4.2 and hardware described below. Just modprobing oss_hdaudio was causing immediate and total system freeze.
I tried latest mercurial version and everything works fine.
Many thanks!

Revel

Code: Select all
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1b.0 0403: 8086:3b56 (rev 06)
1: oss_hdaudio0 Intel HD Audio interrupts=4451 (4451)
    HD Audio controller Intel HD Audio
    Vendor ID    0x80863b56
    Subvendor ID 0x144dc06a
     Codec  0: Unknown (0x10ec0269/0x144dc06a)


for completeness, there is also some other audio device present (!?), ignored by ossdetect but possibly relevant to the previous freezes
Code: Select all
02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
02:00.1 0403: 10de:0be2 (rev a1)
revel
 
Posts: 1
Joined: Mon Jun 07, 2010 10:42 am

Previous

Return to Linux

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests