Ubuntu

Oops during snd_hda_intel init

Reported by kotique on 2012-10-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
David Henningsson

Bug Description

Occuring on init. Laptop's LG M1 Dual Express.
Used to work some time ago in 2.6 or so. Works in Windows.

Strack trace:

Oct 10 14:09:39 bentley2 kernel: [28736.755733] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
Oct 10 14:09:39 bentley2 kernel: [28736.755796] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
Oct 10 14:09:39 bentley2 kernel: [28736.824193] hda_codec: ALC883: BIOS auto-probing.
Oct 10 14:09:39 bentley2 kernel: [28736.824201] hda_codec: ALC883: SKU not ready 0x411111f0
Oct 10 14:09:39 bentley2 kernel: [28736.826133] BUG: unable to handle kernel NULL pointer dereference at 00000002
Oct 10 14:09:39 bentley2 kernel: [28736.826139] IP: [<c12a5025>] strcmp+0x15/0x30
Oct 10 14:09:39 bentley2 kernel: [28736.826150] *pde = 5e5e5067
Oct 10 14:09:39 bentley2 kernel: [28736.826154] Oops: 0000 [#1] SMP
Oct 10 14:09:39 bentley2 kernel: [28736.826159] Modules linked in: snd_hda_codec_realtek snd_hda_intel(+) snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore snd_page_alloc btrfs zlib_deflate libcrc32c ufs qnx4 hfsplus hfs minix ntfs vfat msdos fat jfs xfs reiserfs ext2 usbhid hid rfcomm parport_pc ppdev bnep dm_crypt nfsd nfs binfmt_misc lockd fscache auth_rpcgss nfs_acl sunrpc nvidia(P) tifm_sd tifm_7xx1 btusb arc4 tifm_core pcmcia joydev iwl3945 bluetooth iwl_legacy yenta_socket pcmcia_rsrc mac80211 et131x(C) cfg80211 pcmcia_core psmouse serio_raw wmi mac_hid coretemp lp parport uvesafb firewire_ohci firewire_core crc_itu_t sdhci_pci sdhci video [last unloaded: hid]
Oct 10 14:09:39 bentley2 kernel: [28736.826236]
Oct 10 14:09:39 bentley2 kernel: [28736.826240] Pid: 25245, comm: modprobe Tainted: P C O 3.2.0-25-generic #40-Ubuntu LG Electronics M1-KP65R1/ROCKY
Oct 10 14:09:39 bentley2 kernel: [28736.826247] EIP: 0060:[<c12a5025>] EFLAGS: 00010282 CPU: 0
Oct 10 14:09:39 bentley2 kernel: [28736.826251] EIP is at strcmp+0x15/0x30
Oct 10 14:09:39 bentley2 kernel: [28736.826254] EAX: 00000002 EBX: 00000002 ECX: 00000004 EDX: fbedd898
Oct 10 14:09:39 bentley2 kernel: [28736.826257] ESI: 00000002 EDI: fbedd898 EBP: dc51dd6c ESP: dc51dd64
Oct 10 14:09:39 bentley2 kernel: [28736.826260] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Oct 10 14:09:39 bentley2 kernel: [28736.826264] Process modprobe (pid: 25245, ti=dc51c000 task=d52cd860 task.ti=dc51c000)
Oct 10 14:09:39 bentley2 kernel: [28736.826266] Stack:
Oct 10 14:09:39 bentley2 kernel: [28736.826269] 00000004 f32ff000 dc51dda4 fbec1b56 00000018 00000003 f32ff2c0 d5134870
Oct 10 14:09:39 bentley2 kernel: [28736.826278] 0019e000 00000005 d5134800 00000026 00000000 f32ff000 d5134800 fbec6b24
Oct 10 14:09:39 bentley2 kernel: [28736.826288] dc51ddc4 fbec2b55 00000000 d50952c0 f32ff2c0 d5134800 f32ff000 00000000
Oct 10 14:09:39 bentley2 kernel: [28736.826297] Call Trace:
Oct 10 14:09:39 bentley2 kernel: [28736.826307] [<fbec1b56>] alc_auto_create_multi_out_ctls+0x96/0x1c0 [snd_hda_codec_realtek]
Oct 10 14:09:39 bentley2 kernel: [28736.826316] [<fbec2b55>] alc_parse_auto_config+0x85/0x280 [snd_hda_codec_realtek]
Oct 10 14:09:39 bentley2 kernel: [28736.826324] [<fbec38be>] patch_alc882+0x21e/0x320 [snd_hda_codec_realtek]
Oct 10 14:09:39 bentley2 kernel: [28736.826334] [<fa9a7a4f>] snd_hda_codec_configure+0x5f/0x190 [snd_hda_codec]
Oct 10 14:09:39 bentley2 kernel: [28736.826342] [<f92ff610>] ? azx_get_response+0x30/0x30 [snd_hda_intel]
Oct 10 14:09:39 bentley2 kernel: [28736.826348] [<f92ff010>] ? azx_power_notify+0x70/0x70 [snd_hda_intel]
Oct 10 14:09:39 bentley2 kernel: [28736.826354] [<f92fefa0>] ? azx_stop_chip+0x20/0x20 [snd_hda_intel]
Oct 10 14:09:39 bentley2 kernel: [28736.826360] [<f9300282>] azx_probe+0x14e/0x212 [snd_hda_intel]
Oct 10 14:09:39 bentley2 kernel: [28736.826366] [<c12bdff7>] local_pci_probe+0x47/0xb0
Oct 10 14:09:39 bentley2 kernel: [28736.826371] [<c12bf4b8>] pci_device_probe+0x68/0x90
Oct 10 14:09:39 bentley2 kernel: [28736.826376] [<c1196487>] ? sysfs_create_link+0x17/0x20
Oct 10 14:09:39 bentley2 kernel: [28736.826382] [<c136532d>] really_probe+0x4d/0x150
Oct 10 14:09:39 bentley2 kernel: [28736.826387] [<c136ea09>] ? pm_runtime_barrier+0x49/0xb0
Oct 10 14:09:39 bentley2 kernel: [28736.826391] [<c136556a>] driver_probe_device+0x3a/0x60
Oct 10 14:09:39 bentley2 kernel: [28736.826395] [<c1365621>] __driver_attach+0x91/0xa0
Oct 10 14:09:39 bentley2 kernel: [28736.826399] [<c1365590>] ? driver_probe_device+0x60/0x60
Oct 10 14:09:39 bentley2 kernel: [28736.826403] [<c13646a9>] bus_for_each_dev+0x49/0x70
Oct 10 14:09:39 bentley2 kernel: [28736.826407] [<c1365161>] driver_attach+0x21/0x30
Oct 10 14:09:39 bentley2 kernel: [28736.826411] [<c1365590>] ? driver_probe_device+0x60/0x60
Oct 10 14:09:39 bentley2 kernel: [28736.826415] [<c1364e3f>] bus_add_driver+0x17f/0x260
Oct 10 14:09:39 bentley2 kernel: [28736.826420] [<c12bf4e0>] ? pci_device_probe+0x90/0x90
Oct 10 14:09:39 bentley2 kernel: [28736.826424] [<c1365af6>] driver_register+0x66/0x110
Oct 10 14:09:39 bentley2 kernel: [28736.826428] [<c12bf262>] __pci_register_driver+0x42/0xc0
Oct 10 14:09:39 bentley2 kernel: [28736.826434] [<f911a017>] alsa_card_azx_init+0x17/0x1000 [snd_hda_intel]
Oct 10 14:09:39 bentley2 kernel: [28736.826439] [<c1001125>] do_one_initcall+0x35/0x170
Oct 10 14:09:39 bentley2 kernel: [28736.826444] [<f911a000>] ? 0xf9119fff
Oct 10 14:09:39 bentley2 kernel: [28736.826450] [<c108660d>] sys_init_module+0xad/0x210
Oct 10 14:09:39 bentley2 kernel: [28736.826455] [<c1130fe3>] ? sys_close+0x73/0xc0
Oct 10 14:09:39 bentley2 kernel: [28736.826461] [<c1577674>] syscall_call+0x7/0xb
Oct 10 14:09:39 bentley2 kernel: [28736.826466] [<c1570000>] ? scsi_unregister_device_handler.part.10+0x5b/0x8f
Oct 10 14:09:39 bentley2 kernel: [28736.826469] Code: 5d f4 8b 7d fc 89 ec 5d c3 8d b6 00 00 00 00 8d bc 27 00 00 00 00 55 89 e5 83 ec 08 89 75 f8 89 7d fc 3e 8d 74 26 00 89 c6 89 d7 <ac> ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 8b 75 f8 8b 7d
Oct 10 14:09:39 bentley2 kernel: [28736.826527] EIP: [<c12a5025>] strcmp+0x15/0x30 SS:ESP 0068:dc51dd64
Oct 10 14:09:39 bentley2 kernel: [28736.826533] CR2: 0000000000000002
Oct 10 14:09:39 bentley2 kernel: [28736.826537] ---[ end trace ce403daec6b212e1 ]---

Allegedly, no additional options to snd-hda-intel were supplied.

The device:

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
        Subsystem: LG Electronics, Inc. Device 0040
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at da400000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000 Data: 0000
        Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100 v1] Virtual Channel
                Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb: Fixed- WRR32- WRR64- WRR128-
                Ctrl: ArbSelect=Fixed
                Status: InProgress-
                VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=01
                        Status: NegoPending- InProgress-
                VC1: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl: Enable+ ID=1 ArbSelect=Fixed TC/VC=80
                        Status: NegoPending- InProgress-
        Capabilities: [130 v1] Root Complex Link
                Desc: PortNumber=0f ComponentID=02 EltType=Config
                Link0: Desc: TargetPort=00 TargetComponent=02 AssocRCRB- LinkType=MemMapped LinkValid+
                        Addr: 00000000fed1c000
        Kernel modules: snd-hda-intel

Forward to upstream or whatever. I'd like to bring the sound back on my Bentley.

Thanks.

kotique (kotique) wrote :
David Henningsson (diwic) wrote :

Hi kotqiue and thanks for reporting this bug!

Could you help me by confirming that this still occurs with the latest updates, in particular, the latest released kernel (3.2.0-32)? If so, could you please supply an alsa-info according to https://wiki.ubuntu.com/Audio/AlsaInfo

Thanks!

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Raymond (superquad-vortex2) wrote :

there.was a model lg but your pci subsystem id don't match

if it work on 2.6 kernel, try to boot with 2.6 live cd and obtain the output of alsa-info.sh

http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=commitdiff;h=ae6b813a4dbba2713df497c032798b845289653f;hp=b3b0abe11d606fa2344793edd3d69b98b430b0d4

kotique (kotique) wrote :

I booted 11.04 and collected the info. One small thing - sound doesn't go through built-in speakers on laptop, but plays when I connect headphone into green jack. Anyways, that's a progress -- at least the driver doesn't oops there...

http://www.alsa-project.org/db/?f=7f46be549e688b0e9217022de35113db663c6cda

Raymond, I tried modprobe snd_hda_intel model=lg, same result, it just sticks to "autoprobing". Maybe I could add pci id to LG model there?
Oh, and btw, why is it selecting ALC883 when " lg LG laptop (m1 express dual)" is in ALC880 section?

Thanks!

Raymond (superquad-vortex2) wrote :
Download full text (3.8 KiB)

i guess there are too many input pin complexes and you need to send email to <email address hidden>

imple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Internal Mic' 'Mic' 'Mic 1' 'Line' 'Line 1'
  Item0: 'Internal Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Internal Mic' 'Mic' 'Mic 1' 'Line' 'Line 1'
  Item0: 'Internal Mic'
Simple mixer control 'Internal Mic',0

Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000003e: IN OUT HP Detect Trigger
  Pin Default 0x01813c30: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000003e: IN OUT HP Detect Trigger
  Pin Default 0x99a30931: [Fixed] Mic at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x1
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c 0x0d* 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0000003e: IN OUT HP Detect Trigger
  Pin Default 0x01014014: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x4
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c 0x0d 0x0e* 0x0f 0x2

Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000173e: IN OUT HP Detect Trigger
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x01a19c32: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x2
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Mic Boost Volume", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000173e: IN OUT HP Detect Trigger
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x01a19c3f: [Jack] Mic at Ext Rear
    Co...

Read more...

Changed in alsa-driver (Ubuntu):
status: Incomplete → In Progress
assignee: nobody → David Henningsson (diwic)
David Henningsson (diwic) wrote :

Analysis:

Under the 3.2 kernel, the Realtek codec driver tries to generate some kind of 10-channel surround output mode, out of your two mic input jacks and your two line input jacks. Do you really have so many jacks, btw?

The code is generating an OOPS because SND_CONFIG_DEBUG is not set, causing snd_BUG_ON() not to evaluate in alc_get_line_out_pfx:

 if (snd_BUG_ON(ch >= ARRAY_SIZE(channel_name)))
  return "PCM";

David Henningsson (diwic) wrote :

Committed:

http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=commit;h=71aa5ebe36a4e936eff281b375a4707b6a8320f2

We might need an additional patch to take away the extra mic & line if you don't have them, but this should fix the oops at least.

With cc to stable it should reach 12.04 in some time, but if you want to fix it for yourself before that, you can follow this procedure: https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS

Changed in alsa-driver (Ubuntu):
status: In Progress → Fix Committed
affects: alsa-driver (Ubuntu) → linux (Ubuntu)
kotique (kotique) wrote :

here you go with jack photo: https://picasaweb.google.com/lh/photo/qYuSii25N6W7_rxTd7xwgipMqeOizf5syumxy3i3sww?feat=directlink
So 2 jacks on laptop + internal speakers and internal microphone.

David, I'll try the patched module soon.

David Henningsson (diwic) wrote :

Thanks. It could be that the headphone takes a TRRS headset jack also, and that would be the extra mic, and that you have dual arrays of internal mic. But it could also be that BIOS is wrong when it advertises an extra mic and an extra internal mic.

Changed in linux (Ubuntu):
importance: Undecided → Medium
kotique (kotique) wrote :

David, noah, it's a notebook from 2006, it won't have dual mics. The green jack outputs s/pdif laser beam when digital output isn't muted. I just tried your change to latest dkms-alsa from that page and it worked perfectly. I can hear sound from internal speakers in default config. I get sound through headphones when connected to green socket, so everything works as expected.

Though I heard very distorted sound from VLC when trying to play music in default config (directly to alsa?), but changed it to play through pulseaudio and now everything's fine.

Thanks for fixing this!

[ 4433.847826] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 4433.847895] snd_hda_intel 0000:00:1b.0: irq 45 for MSI/MSI-X
[ 4433.847931] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[ 4433.882977] hda_codec: ALC883: SKU not ready 0x411111f0
[ 4433.892431] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 4433.892577] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 4433.892680] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 4433.892783] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 4433.892882] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 4433.892979] input: HDA Intel Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 5164.946002] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.

Raymond (superquad-vortex2) wrote :

post the output of alsa-info.sh after you plugged in headphone and ext mic

the value of the hda jack kcontrol is true in the asound.state when the jack is plugged, so you can find out which pin complex is headphone / ext mic

need a pin fixup to make some pin complexes as [N/A]

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers