All of lore.kernel.org
 help / color / mirror / Atom feed
* Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
@ 2015-03-03  3:37 Alnie
  2015-03-03  6:10 ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-03  3:37 UTC (permalink / raw)
  To: alsa-devel, Takashi Iwai

At Wed, 25 Feb 2015 00:21:15 -0800,
Alnie wrote:
 >
 >
 >
 > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
 > > At Tue, 24 Feb 2015 23:55:25 -0800,
 > > Alnie wrote:
 > >>
 > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
 > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
 > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
 > >> slot(3): already powering off
 > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
 > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
 > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
 > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
 > >> slot(3): already powering on
 > >
 > > pciehp reacted power off and on here, and...
 > >
 > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
 > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
 > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
 > >> 00-00]), reconfiguring
 > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
 > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
 > >
 > > .... and something failed here for the PCI bridge device.
 > >
 > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
 > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
 > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
 > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
 > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
 > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem 
0x00000000-0x000fffff]
 > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
 > >> 0x00000000-0x000fffff 64bit pref]
 > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is 
updated to 06
 > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
 > >> 0xf4300000-0xf43fffff]
 > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
 > >> 0xf4000000-0xf40fffff 64bit pref]
 > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
 > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem 
0xf4300000-0xf4303fff]
 > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
 > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
 > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem 
0xf4300000-0xf43fffff]
 > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
 > >> 0xf4000000-0xf40fffff 64bit pref]
 > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
 > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io 
0x2000-0x2fff]
 > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
 > >> 0xf4300000-0xf7efffff]
 > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
 > >> 0xf4000000-0xf40fffff 64bit pref]
 > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
 > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000 
-> 0002)
 > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
 > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
 > >> disabling it...
 > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
 > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
 > >
 > > What if you once unload snd-hda-intel module and reload again while
 > > keeping the card plugged?  I guess it still doesn't work, but just to
 > > be sure...
 > >
 > > Overall, this look more like a problem of PCI core stuff.  Better to
 > > toss the issue to PCI people.
 > >
 > >
 > > Takashi
 > >
 >
 > I did alsa force-reload and the same error comes up. Do you know of a
 > good starting point for presenting PCI issues?
 >
 >Ask on linux-pci at vger.kernel.org ?
 >
 >
 >Takashi


Bjorn has suggested it is not a PCI issue... 
http://article.gmane.org/gmane.linux.kernel.pci/39492
Any other ideas in regards to this?

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03  3:37 Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG Alnie
@ 2015-03-03  6:10 ` Takashi Iwai
  2015-03-03  7:22   ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-03  6:10 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Mon, 02 Mar 2015 19:37:12 -0800,
Alnie wrote:
> 
> At Wed, 25 Feb 2015 00:21:15 -0800,
> Alnie wrote:
>  >
>  >
>  >
>  > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
>  > > At Tue, 24 Feb 2015 23:55:25 -0800,
>  > > Alnie wrote:
>  > >>
>  > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
>  > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
>  > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
>  > >> slot(3): already powering off
>  > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
>  > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
>  > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
>  > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
>  > >> slot(3): already powering on
>  > >
>  > > pciehp reacted power off and on here, and...
>  > >
>  > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
>  > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>  > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
>  > >> 00-00]), reconfiguring
>  > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
>  > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>  > >
>  > > .... and something failed here for the PCI bridge device.
>  > >
>  > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
>  > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
>  > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>  > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>  > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
>  > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem 
> 0x00000000-0x000fffff]
>  > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>  > >> 0x00000000-0x000fffff 64bit pref]
>  > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is 
> updated to 06
>  > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>  > >> 0xf4300000-0xf43fffff]
>  > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>  > >> 0xf4000000-0xf40fffff 64bit pref]
>  > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
>  > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem 
> 0xf4300000-0xf4303fff]
>  > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>  > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
>  > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem 
> 0xf4300000-0xf43fffff]
>  > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>  > >> 0xf4000000-0xf40fffff 64bit pref]
>  > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
>  > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io 
> 0x2000-0x2fff]
>  > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>  > >> 0xf4300000-0xf7efffff]
>  > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>  > >> 0xf4000000-0xf40fffff 64bit pref]
>  > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
>  > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000 
> -> 0002)
>  > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
>  > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>  > >> disabling it...
>  > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>  > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
>  > >
>  > > What if you once unload snd-hda-intel module and reload again while
>  > > keeping the card plugged?  I guess it still doesn't work, but just to
>  > > be sure...
>  > >
>  > > Overall, this look more like a problem of PCI core stuff.  Better to
>  > > toss the issue to PCI people.
>  > >
>  > >
>  > > Takashi
>  > >
>  >
>  > I did alsa force-reload and the same error comes up. Do you know of a
>  > good starting point for presenting PCI issues?
>  >
>  >Ask on linux-pci at vger.kernel.org ?
>  >
>  >
>  >Takashi
> 
> 
> Bjorn has suggested it is not a PCI issue... 
> http://article.gmane.org/gmane.linux.kernel.pci/39492
> Any other ideas in regards to this?

After re-inserting the card, try to reload the driver module again.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03  6:10 ` Takashi Iwai
@ 2015-03-03  7:22   ` Alnie
  2015-03-03  7:48     ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-03  7:22 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/02/2015 10:10 PM, Takashi Iwai wrote:
> At Mon, 02 Mar 2015 19:37:12 -0800,
> Alnie wrote:
>>
>> At Wed, 25 Feb 2015 00:21:15 -0800,
>> Alnie wrote:
>>   >
>>   >
>>   >
>>   > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
>>   > > At Tue, 24 Feb 2015 23:55:25 -0800,
>>   > > Alnie wrote:
>>   > >>
>>   > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
>>   > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
>>   > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
>>   > >> slot(3): already powering off
>>   > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
>>   > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
>>   > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
>>   > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
>>   > >> slot(3): already powering on
>>   > >
>>   > > pciehp reacted power off and on here, and...
>>   > >
>>   > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
>>   > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>>   > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
>>   > >> 00-00]), reconfiguring
>>   > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
>>   > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>>   > >
>>   > > .... and something failed here for the PCI bridge device.
>>   > >
>>   > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
>>   > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
>>   > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>>   > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>>   > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
>>   > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
>> 0x00000000-0x000fffff]
>>   > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>>   > >> 0x00000000-0x000fffff 64bit pref]
>>   > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
>> updated to 06
>>   > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>>   > >> 0xf4300000-0xf43fffff]
>>   > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>>   > >> 0xf4000000-0xf40fffff 64bit pref]
>>   > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
>>   > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
>> 0xf4300000-0xf4303fff]
>>   > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>>   > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
>>   > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
>> 0xf4300000-0xf43fffff]
>>   > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>>   > >> 0xf4000000-0xf40fffff 64bit pref]
>>   > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
>>   > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
>> 0x2000-0x2fff]
>>   > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>>   > >> 0xf4300000-0xf7efffff]
>>   > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>>   > >> 0xf4000000-0xf40fffff 64bit pref]
>>   > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
>>   > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000
>> -> 0002)
>>   > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
>>   > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>>   > >> disabling it...
>>   > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>>   > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
>>   > >
>>   > > What if you once unload snd-hda-intel module and reload again while
>>   > > keeping the card plugged?  I guess it still doesn't work, but just to
>>   > > be sure...
>>   > >
>>   > > Overall, this look more like a problem of PCI core stuff.  Better to
>>   > > toss the issue to PCI people.
>>   > >
>>   > >
>>   > > Takashi
>>   > >
>>   >
>>   > I did alsa force-reload and the same error comes up. Do you know of a
>>   > good starting point for presenting PCI issues?
>>   >
>>   >Ask on linux-pci at vger.kernel.org ?
>>   >
>>   >
>>   >Takashi
>>
>>
>> Bjorn has suggested it is not a PCI issue...
>> http://article.gmane.org/gmane.linux.kernel.pci/39492
>> Any other ideas in regards to this?
>
> After re-inserting the card, try to reload the driver module again.
>
>
> Takashi
>

Okay, booted with card not inserted and with hda-intel driver 
blacklisted. Inserted card & loaded driver and same complaint came up...
here is dmesg output http://pastebin.com/myBT23G1

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03  7:22   ` Alnie
@ 2015-03-03  7:48     ` Takashi Iwai
  2015-03-03  9:21       ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-03  7:48 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Mon, 02 Mar 2015 23:22:52 -0800,
Alnie wrote:
> 
> On 03/02/2015 10:10 PM, Takashi Iwai wrote:
> > At Mon, 02 Mar 2015 19:37:12 -0800,
> > Alnie wrote:
> >>
> >> At Wed, 25 Feb 2015 00:21:15 -0800,
> >> Alnie wrote:
> >>   >
> >>   >
> >>   >
> >>   > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
> >>   > > At Tue, 24 Feb 2015 23:55:25 -0800,
> >>   > > Alnie wrote:
> >>   > >>
> >>   > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
> >>   > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
> >>   > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
> >>   > >> slot(3): already powering off
> >>   > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
> >>   > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
> >>   > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
> >>   > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
> >>   > >> slot(3): already powering on
> >>   > >
> >>   > > pciehp reacted power off and on here, and...
> >>   > >
> >>   > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
> >>   > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
> >>   > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
> >>   > >> 00-00]), reconfiguring
> >>   > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
> >>   > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
> >>   > >
> >>   > > .... and something failed here for the PCI bridge device.
> >>   > >
> >>   > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
> >>   > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
> >>   > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
> >>   > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
> >>   > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
> >>   > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
> >> 0x00000000-0x000fffff]
> >>   > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
> >>   > >> 0x00000000-0x000fffff 64bit pref]
> >>   > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
> >> updated to 06
> >>   > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
> >>   > >> 0xf4300000-0xf43fffff]
> >>   > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
> >>   > >> 0xf4000000-0xf40fffff 64bit pref]
> >>   > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
> >>   > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
> >> 0xf4300000-0xf4303fff]
> >>   > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
> >>   > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
> >>   > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
> >> 0xf4300000-0xf43fffff]
> >>   > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
> >>   > >> 0xf4000000-0xf40fffff 64bit pref]
> >>   > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
> >>   > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
> >> 0x2000-0x2fff]
> >>   > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
> >>   > >> 0xf4300000-0xf7efffff]
> >>   > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
> >>   > >> 0xf4000000-0xf40fffff 64bit pref]
> >>   > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
> >>   > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000
> >> -> 0002)
> >>   > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
> >>   > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> >>   > >> disabling it...
> >>   > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >>   > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>   > >
> >>   > > What if you once unload snd-hda-intel module and reload again while
> >>   > > keeping the card plugged?  I guess it still doesn't work, but just to
> >>   > > be sure...
> >>   > >
> >>   > > Overall, this look more like a problem of PCI core stuff.  Better to
> >>   > > toss the issue to PCI people.
> >>   > >
> >>   > >
> >>   > > Takashi
> >>   > >
> >>   >
> >>   > I did alsa force-reload and the same error comes up. Do you know of a
> >>   > good starting point for presenting PCI issues?
> >>   >
> >>   >Ask on linux-pci at vger.kernel.org ?
> >>   >
> >>   >
> >>   >Takashi
> >>
> >>
> >> Bjorn has suggested it is not a PCI issue...
> >> http://article.gmane.org/gmane.linux.kernel.pci/39492
> >> Any other ideas in regards to this?
> >
> > After re-inserting the card, try to reload the driver module again.
> >
> >
> > Takashi
> >
> 
> Okay, booted with card not inserted and with hda-intel driver 
> blacklisted. Inserted card & loaded driver and same complaint came up...
> here is dmesg output http://pastebin.com/myBT23G1

I meant reloading the module again without reinserting the device.
Though, I don't expect this would work, but just to be sure.

Other than that, I have no much clue.  You might put some delay in
each probe procedure and debug prints.  Check the values of
azx_read*() and azx_write*().  Especially if azx_read*() reads 0xff,
it means that the mapped PCI registers are wrong, which usually
indicates still some PCI errors (e.g. the device isn't powered up
properly).


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03  7:48     ` Takashi Iwai
@ 2015-03-03  9:21       ` Alnie
  2015-03-03 21:51         ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-03  9:21 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/02/2015 11:48 PM, Takashi Iwai wrote:
> At Mon, 02 Mar 2015 23:22:52 -0800,
> Alnie wrote:
>>
>> On 03/02/2015 10:10 PM, Takashi Iwai wrote:
>>> At Mon, 02 Mar 2015 19:37:12 -0800,
>>> Alnie wrote:
>>>>
>>>> At Wed, 25 Feb 2015 00:21:15 -0800,
>>>> Alnie wrote:
>>>>    >
>>>>    >
>>>>    >
>>>>    > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
>>>>    > > At Tue, 24 Feb 2015 23:55:25 -0800,
>>>>    > > Alnie wrote:
>>>>    > >>
>>>>    > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
>>>>    > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
>>>>    > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
>>>>    > >> slot(3): already powering off
>>>>    > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
>>>>    > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
>>>>    > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
>>>>    > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
>>>>    > >> slot(3): already powering on
>>>>    > >
>>>>    > > pciehp reacted power off and on here, and...
>>>>    > >
>>>>    > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
>>>>    > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>>>>    > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
>>>>    > >> 00-00]), reconfiguring
>>>>    > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
>>>>    > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>>>>    > >
>>>>    > > .... and something failed here for the PCI bridge device.
>>>>    > >
>>>>    > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
>>>>    > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
>>>>    > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>>>>    > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>>>>    > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
>>>>    > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
>>>> 0x00000000-0x000fffff]
>>>>    > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>>>>    > >> 0x00000000-0x000fffff 64bit pref]
>>>>    > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
>>>> updated to 06
>>>>    > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>>>>    > >> 0xf4300000-0xf43fffff]
>>>>    > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>    > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
>>>>    > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
>>>> 0xf4300000-0xf4303fff]
>>>>    > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>>>>    > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
>>>>    > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
>>>> 0xf4300000-0xf43fffff]
>>>>    > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>    > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
>>>>    > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
>>>> 0x2000-0x2fff]
>>>>    > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>>>>    > >> 0xf4300000-0xf7efffff]
>>>>    > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>    > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
>>>>    > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000
>>>> -> 0002)
>>>>    > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
>>>>    > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>>>>    > >> disabling it...
>>>>    > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>>>>    > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
>>>>    > >
>>>>    > > What if you once unload snd-hda-intel module and reload again while
>>>>    > > keeping the card plugged?  I guess it still doesn't work, but just to
>>>>    > > be sure...
>>>>    > >
>>>>    > > Overall, this look more like a problem of PCI core stuff.  Better to
>>>>    > > toss the issue to PCI people.
>>>>    > >
>>>>    > >
>>>>    > > Takashi
>>>>    > >
>>>>    >
>>>>    > I did alsa force-reload and the same error comes up. Do you know of a
>>>>    > good starting point for presenting PCI issues?
>>>>    >
>>>>    >Ask on linux-pci at vger.kernel.org ?
>>>>    >
>>>>    >
>>>>    >Takashi
>>>>
>>>>
>>>> Bjorn has suggested it is not a PCI issue...
>>>> http://article.gmane.org/gmane.linux.kernel.pci/39492
>>>> Any other ideas in regards to this?
>>>
>>> After re-inserting the card, try to reload the driver module again.
>>>
>>>
>>> Takashi
>>>
>>
>> Okay, booted with card not inserted and with hda-intel driver
>> blacklisted. Inserted card & loaded driver and same complaint came up...
>> here is dmesg output http://pastebin.com/myBT23G1
>
> I meant reloading the module again without reinserting the device.
> Though, I don't expect this would work, but just to be sure.
>

is alsa force-reload sufficient?

> Other than that, I have no much clue.  You might put some delay in
> each probe procedure and debug prints.  Check the values of
> azx_read*() and azx_write*().  Especially if azx_read*() reads 0xff,
> it means that the mapped PCI registers are wrong, which usually
> indicates still some PCI errors (e.g. the device isn't powered up
> properly).
>
>
> Takashi
>

Bjorn asked this question I'm not sure if you ever saw it...

On Thu, Feb 26, 2015 at 09:20:59AM +0100, Takashi Iwai wrote:

 >> FYI, during the previous debug sessions, we found that the sound
 >> driver gets only 0xff for mapped register accesses, so I suggested to
 >> report to PCI devs.  IIRC, the non-hotplug board with this chip worked
 >> in the past.

 >I skimmed the previous emails but I missed this part.  Did you add
 >instrumentation to the driver, or is it just obvious from the way the
 >driver behaves that we're getting 0xff?

 >Bjorn


Also, in regards to debug prints and azx read write values. How do I do 
this? I have searched around I can't find anything.

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03  9:21       ` Alnie
@ 2015-03-03 21:51         ` Alnie
  2015-03-03 21:58           ` Alnie
  2015-03-03 22:07           ` Takashi Iwai
  0 siblings, 2 replies; 47+ messages in thread
From: Alnie @ 2015-03-03 21:51 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/03/2015 01:21 AM, Alnie wrote:
> On 03/02/2015 11:48 PM, Takashi Iwai wrote:
>> At Mon, 02 Mar 2015 23:22:52 -0800,
>> Alnie wrote:
>>>
>>> On 03/02/2015 10:10 PM, Takashi Iwai wrote:
>>>> At Mon, 02 Mar 2015 19:37:12 -0800,
>>>> Alnie wrote:
>>>>>
>>>>> At Wed, 25 Feb 2015 00:21:15 -0800,
>>>>> Alnie wrote:
>>>>>    >
>>>>>    >
>>>>>    >
>>>>>    > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
>>>>>    > > At Tue, 24 Feb 2015 23:55:25 -0800,
>>>>>    > > Alnie wrote:
>>>>>    > >>
>>>>>    > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present
>>>>> on Slot(3)
>>>>>    > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link
>>>>> Down event
>>>>>    > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event
>>>>> ignored on
>>>>>    > >> slot(3): already powering off
>>>>>    > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is
>>>>> released
>>>>>    > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on
>>>>> Slot(3)
>>>>>    > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up
>>>>> event
>>>>>    > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event
>>>>> ignored on
>>>>>    > >> slot(3): already powering on
>>>>>    > >
>>>>>    > > pciehp reacted power off and on here, and...
>>>>>    > >
>>>>>    > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class
>>>>> 0x060400
>>>>>    > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>>>>>    > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration
>>>>> invalid ([bus
>>>>>    > >> 00-00]), reconfiguring
>>>>>    > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert
>>>>> [bus 06-ff]
>>>>>    > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>>>>>    > >
>>>>>    > > .... and something failed here for the PCI bridge device.
>>>>>    > >
>>>>>    > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class
>>>>> 0x040300
>>>>>    > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem
>>>>> 0x00000000-0x00003fff]
>>>>>    > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>>>>>    > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>>>>>    > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io
>>>>> 0x0000-0x0fff]
>>>>>    > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
>>>>> 0x00000000-0x000fffff]
>>>>>    > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>>>>>    > >> 0x00000000-0x000fffff 64bit pref]
>>>>>    > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
>>>>> updated to 06
>>>>>    > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>>>>>    > >> 0xf4300000-0xf43fffff]
>>>>>    > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>    > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io
>>>>> 0x2000-0x2fff]
>>>>>    > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
>>>>> 0xf4300000-0xf4303fff]
>>>>>    > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>>>>>    > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io
>>>>> 0x2000-0x2fff]
>>>>>    > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
>>>>> 0xf4300000-0xf43fffff]
>>>>>    > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>    > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus
>>>>> 05-0c]
>>>>>    > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
>>>>> 0x2000-0x2fff]
>>>>>    > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>>>>>    > >> 0xf4300000-0xf7efffff]
>>>>>    > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>    > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 ->
>>>>> 0003)
>>>>>    > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device
>>>>> (0000
>>>>> -> 0002)
>>>>>    > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks
>>>>> suppressed
>>>>>    > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe
>>>>> error;
>>>>>    > >> disabling it...
>>>>>    > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG
>>>>> node found
>>>>>    > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs
>>>>> initialized
>>>>>    > >
>>>>>    > > What if you once unload snd-hda-intel module and reload
>>>>> again while
>>>>>    > > keeping the card plugged?  I guess it still doesn't work,
>>>>> but just to
>>>>>    > > be sure...
>>>>>    > >
>>>>>    > > Overall, this look more like a problem of PCI core stuff.
>>>>> Better to
>>>>>    > > toss the issue to PCI people.
>>>>>    > >
>>>>>    > >
>>>>>    > > Takashi
>>>>>    > >
>>>>>    >
>>>>>    > I did alsa force-reload and the same error comes up. Do you
>>>>> know of a
>>>>>    > good starting point for presenting PCI issues?
>>>>>    >
>>>>>    >Ask on linux-pci at vger.kernel.org ?
>>>>>    >
>>>>>    >
>>>>>    >Takashi
>>>>>
>>>>>
>>>>> Bjorn has suggested it is not a PCI issue...
>>>>> http://article.gmane.org/gmane.linux.kernel.pci/39492
>>>>> Any other ideas in regards to this?
>>>>
>>>> After re-inserting the card, try to reload the driver module again.
>>>>
>>>>
>>>> Takashi
>>>>
>>>
>>> Okay, booted with card not inserted and with hda-intel driver
>>> blacklisted. Inserted card & loaded driver and same complaint came up...
>>> here is dmesg output http://pastebin.com/myBT23G1
>>
>> I meant reloading the module again without reinserting the device.
>> Though, I don't expect this would work, but just to be sure.
>>
>
> is alsa force-reload sufficient?
>
>> Other than that, I have no much clue.  You might put some delay in
>> each probe procedure and debug prints.  Check the values of
>> azx_read*() and azx_write*().  Especially if azx_read*() reads 0xff,
>> it means that the mapped PCI registers are wrong, which usually
>> indicates still some PCI errors (e.g. the device isn't powered up
>> properly).
>>
>>
>> Takashi
>>
>
> Bjorn asked this question I'm not sure if you ever saw it...
>
> On Thu, Feb 26, 2015 at 09:20:59AM +0100, Takashi Iwai wrote:
>
>  >> FYI, during the previous debug sessions, we found that the sound
>  >> driver gets only 0xff for mapped register accesses, so I suggested to
>  >> report to PCI devs.  IIRC, the non-hotplug board with this chip worked
>  >> in the past.
>
>  >I skimmed the previous emails but I missed this part.  Did you add
>  >instrumentation to the driver, or is it just obvious from the way the
>  >driver behaves that we're getting 0xff?
>
>  >Bjorn
>
>
> Also, in regards to debug prints and azx read write values. How do I do
> this? I have searched around I can't find anything.
>

Please bear with me. Much of this is very new to me. I compiled a new 
kernel with the following debug settings enabled. Am I moving in the 
right direction?

CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_VERBOSE=y

CONFIG_PCI_DEBUG=y


Here is the dmesg (i also do a force-reload)... http://pastebin.com/giRsPCUe
More output, but not sure if it has the information you are looking for.
and this... 
http://www.alsa-project.org/db/?f=c69bc32b2795cc9cee2aa3cf205c8dab7583638d

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03 21:51         ` Alnie
@ 2015-03-03 21:58           ` Alnie
  2015-03-03 22:07           ` Takashi Iwai
  1 sibling, 0 replies; 47+ messages in thread
From: Alnie @ 2015-03-03 21:58 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/03/2015 01:51 PM, Alnie wrote:
> On 03/03/2015 01:21 AM, Alnie wrote:
>> On 03/02/2015 11:48 PM, Takashi Iwai wrote:
>>> At Mon, 02 Mar 2015 23:22:52 -0800,
>>> Alnie wrote:
>>>>
>>>> On 03/02/2015 10:10 PM, Takashi Iwai wrote:
>>>>> At Mon, 02 Mar 2015 19:37:12 -0800,
>>>>> Alnie wrote:
>>>>>>
>>>>>> At Wed, 25 Feb 2015 00:21:15 -0800,
>>>>>> Alnie wrote:
>>>>>>    >
>>>>>>    >
>>>>>>    >
>>>>>>    > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
>>>>>>    > > At Tue, 24 Feb 2015 23:55:25 -0800,
>>>>>>    > > Alnie wrote:
>>>>>>    > >>
>>>>>>    > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present
>>>>>> on Slot(3)
>>>>>>    > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link
>>>>>> Down event
>>>>>>    > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event
>>>>>> ignored on
>>>>>>    > >> slot(3): already powering off
>>>>>>    > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is
>>>>>> released
>>>>>>    > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on
>>>>>> Slot(3)
>>>>>>    > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up
>>>>>> event
>>>>>>    > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event
>>>>>> ignored on
>>>>>>    > >> slot(3): already powering on
>>>>>>    > >
>>>>>>    > > pciehp reacted power off and on here, and...
>>>>>>    > >
>>>>>>    > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class
>>>>>> 0x060400
>>>>>>    > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>>>>>>    > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration
>>>>>> invalid ([bus
>>>>>>    > >> 00-00]), reconfiguring
>>>>>>    > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert
>>>>>> [bus 06-ff]
>>>>>>    > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>>>>>>    > >
>>>>>>    > > .... and something failed here for the PCI bridge device.
>>>>>>    > >
>>>>>>    > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class
>>>>>> 0x040300
>>>>>>    > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem
>>>>>> 0x00000000-0x00003fff]
>>>>>>    > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>>>>>>    > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>>>>>>    > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io
>>>>>> 0x0000-0x0fff]
>>>>>>    > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
>>>>>> 0x00000000-0x000fffff]
>>>>>>    > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>>>>>>    > >> 0x00000000-0x000fffff 64bit pref]
>>>>>>    > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
>>>>>> updated to 06
>>>>>>    > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>>>>>>    > >> 0xf4300000-0xf43fffff]
>>>>>>    > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>>>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>>    > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io
>>>>>> 0x2000-0x2fff]
>>>>>>    > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
>>>>>> 0xf4300000-0xf4303fff]
>>>>>>    > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>>>>>>    > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io
>>>>>> 0x2000-0x2fff]
>>>>>>    > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
>>>>>> 0xf4300000-0xf43fffff]
>>>>>>    > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>>>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>>    > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus
>>>>>> 05-0c]
>>>>>>    > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
>>>>>> 0x2000-0x2fff]
>>>>>>    > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>>>>>>    > >> 0xf4300000-0xf7efffff]
>>>>>>    > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>>>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>>    > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 ->
>>>>>> 0003)
>>>>>>    > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device
>>>>>> (0000
>>>>>> -> 0002)
>>>>>>    > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks
>>>>>> suppressed
>>>>>>    > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe
>>>>>> error;
>>>>>>    > >> disabling it...
>>>>>>    > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG
>>>>>> node found
>>>>>>    > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs
>>>>>> initialized
>>>>>>    > >
>>>>>>    > > What if you once unload snd-hda-intel module and reload
>>>>>> again while
>>>>>>    > > keeping the card plugged?  I guess it still doesn't work,
>>>>>> but just to
>>>>>>    > > be sure...
>>>>>>    > >
>>>>>>    > > Overall, this look more like a problem of PCI core stuff.
>>>>>> Better to
>>>>>>    > > toss the issue to PCI people.
>>>>>>    > >
>>>>>>    > >
>>>>>>    > > Takashi
>>>>>>    > >
>>>>>>    >
>>>>>>    > I did alsa force-reload and the same error comes up. Do you
>>>>>> know of a
>>>>>>    > good starting point for presenting PCI issues?
>>>>>>    >
>>>>>>    >Ask on linux-pci at vger.kernel.org ?
>>>>>>    >
>>>>>>    >
>>>>>>    >Takashi
>>>>>>
>>>>>>
>>>>>> Bjorn has suggested it is not a PCI issue...
>>>>>> http://article.gmane.org/gmane.linux.kernel.pci/39492
>>>>>> Any other ideas in regards to this?
>>>>>
>>>>> After re-inserting the card, try to reload the driver module again.
>>>>>
>>>>>
>>>>> Takashi
>>>>>
>>>>
>>>> Okay, booted with card not inserted and with hda-intel driver
>>>> blacklisted. Inserted card & loaded driver and same complaint came
>>>> up...
>>>> here is dmesg output http://pastebin.com/myBT23G1
>>>
>>> I meant reloading the module again without reinserting the device.
>>> Though, I don't expect this would work, but just to be sure.
>>>
>>
>> is alsa force-reload sufficient?
>>
>>> Other than that, I have no much clue.  You might put some delay in
>>> each probe procedure and debug prints.  Check the values of
>>> azx_read*() and azx_write*().  Especially if azx_read*() reads 0xff,
>>> it means that the mapped PCI registers are wrong, which usually
>>> indicates still some PCI errors (e.g. the device isn't powered up
>>> properly).
>>>
>>>
>>> Takashi
>>>
>>
>> Bjorn asked this question I'm not sure if you ever saw it...
>>
>> On Thu, Feb 26, 2015 at 09:20:59AM +0100, Takashi Iwai wrote:
>>
>>  >> FYI, during the previous debug sessions, we found that the sound
>>  >> driver gets only 0xff for mapped register accesses, so I suggested to
>>  >> report to PCI devs.  IIRC, the non-hotplug board with this chip
>> worked
>>  >> in the past.
>>
>>  >I skimmed the previous emails but I missed this part.  Did you add
>>  >instrumentation to the driver, or is it just obvious from the way the
>>  >driver behaves that we're getting 0xff?
>>
>>  >Bjorn
>>
>>
>> Also, in regards to debug prints and azx read write values. How do I do
>> this? I have searched around I can't find anything.
>>
>
> Please bear with me. Much of this is very new to me. I compiled a new
> kernel with the following debug settings enabled. Am I moving in the
> right direction?
>
> CONFIG_SND_VERBOSE_PRINTK=y
> CONFIG_SND_DEBUG=y
> CONFIG_SND_DEBUG_VERBOSE=y
>
> CONFIG_PCI_DEBUG=y
>
>
> Here is the dmesg (i also do a force-reload)...
> http://pastebin.com/giRsPCUe
> More output, but not sure if it has the information you are looking for.
> and this...
> http://www.alsa-project.org/db/?f=c69bc32b2795cc9cee2aa3cf205c8dab7583638d
>
Also, just re-inserted the card and did a force-reload and same issue 
comes up.

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03 21:51         ` Alnie
  2015-03-03 21:58           ` Alnie
@ 2015-03-03 22:07           ` Takashi Iwai
  2015-03-04  2:12             ` Alnie
  1 sibling, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-03 22:07 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 03 Mar 2015 13:51:24 -0800,
Alnie wrote:
> 
> On 03/03/2015 01:21 AM, Alnie wrote:
> > On 03/02/2015 11:48 PM, Takashi Iwai wrote:
> >> At Mon, 02 Mar 2015 23:22:52 -0800,
> >> Alnie wrote:
> >>>
> >>> On 03/02/2015 10:10 PM, Takashi Iwai wrote:
> >>>> At Mon, 02 Mar 2015 19:37:12 -0800,
> >>>> Alnie wrote:
> >>>>>
> >>>>> At Wed, 25 Feb 2015 00:21:15 -0800,
> >>>>> Alnie wrote:
> >>>>>    >
> >>>>>    >
> >>>>>    >
> >>>>>    > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
> >>>>>    > > At Tue, 24 Feb 2015 23:55:25 -0800,
> >>>>>    > > Alnie wrote:
> >>>>>    > >>
> >>>>>    > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present
> >>>>> on Slot(3)
> >>>>>    > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link
> >>>>> Down event
> >>>>>    > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event
> >>>>> ignored on
> >>>>>    > >> slot(3): already powering off
> >>>>>    > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is
> >>>>> released
> >>>>>    > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on
> >>>>> Slot(3)
> >>>>>    > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up
> >>>>> event
> >>>>>    > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event
> >>>>> ignored on
> >>>>>    > >> slot(3): already powering on
> >>>>>    > >
> >>>>>    > > pciehp reacted power off and on here, and...
> >>>>>    > >
> >>>>>    > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class
> >>>>> 0x060400
> >>>>>    > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
> >>>>>    > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration
> >>>>> invalid ([bus
> >>>>>    > >> 00-00]), reconfiguring
> >>>>>    > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert
> >>>>> [bus 06-ff]
> >>>>>    > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
> >>>>>    > >
> >>>>>    > > .... and something failed here for the PCI bridge device.
> >>>>>    > >
> >>>>>    > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class
> >>>>> 0x040300
> >>>>>    > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem
> >>>>> 0x00000000-0x00003fff]
> >>>>>    > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
> >>>>>    > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
> >>>>>    > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io
> >>>>> 0x0000-0x0fff]
> >>>>>    > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
> >>>>> 0x00000000-0x000fffff]
> >>>>>    > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
> >>>>>    > >> 0x00000000-0x000fffff 64bit pref]
> >>>>>    > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
> >>>>> updated to 06
> >>>>>    > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
> >>>>>    > >> 0xf4300000-0xf43fffff]
> >>>>>    > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
> >>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
> >>>>>    > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io
> >>>>> 0x2000-0x2fff]
> >>>>>    > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
> >>>>> 0xf4300000-0xf4303fff]
> >>>>>    > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
> >>>>>    > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io
> >>>>> 0x2000-0x2fff]
> >>>>>    > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
> >>>>> 0xf4300000-0xf43fffff]
> >>>>>    > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
> >>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
> >>>>>    > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus
> >>>>> 05-0c]
> >>>>>    > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
> >>>>> 0x2000-0x2fff]
> >>>>>    > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
> >>>>>    > >> 0xf4300000-0xf7efffff]
> >>>>>    > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
> >>>>>    > >> 0xf4000000-0xf40fffff 64bit pref]
> >>>>>    > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 ->
> >>>>> 0003)
> >>>>>    > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device
> >>>>> (0000
> >>>>> -> 0002)
> >>>>>    > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks
> >>>>> suppressed
> >>>>>    > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe
> >>>>> error;
> >>>>>    > >> disabling it...
> >>>>>    > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG
> >>>>> node found
> >>>>>    > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs
> >>>>> initialized
> >>>>>    > >
> >>>>>    > > What if you once unload snd-hda-intel module and reload
> >>>>> again while
> >>>>>    > > keeping the card plugged?  I guess it still doesn't work,
> >>>>> but just to
> >>>>>    > > be sure...
> >>>>>    > >
> >>>>>    > > Overall, this look more like a problem of PCI core stuff.
> >>>>> Better to
> >>>>>    > > toss the issue to PCI people.
> >>>>>    > >
> >>>>>    > >
> >>>>>    > > Takashi
> >>>>>    > >
> >>>>>    >
> >>>>>    > I did alsa force-reload and the same error comes up. Do you
> >>>>> know of a
> >>>>>    > good starting point for presenting PCI issues?
> >>>>>    >
> >>>>>    >Ask on linux-pci at vger.kernel.org ?
> >>>>>    >
> >>>>>    >
> >>>>>    >Takashi
> >>>>>
> >>>>>
> >>>>> Bjorn has suggested it is not a PCI issue...
> >>>>> http://article.gmane.org/gmane.linux.kernel.pci/39492
> >>>>> Any other ideas in regards to this?
> >>>>
> >>>> After re-inserting the card, try to reload the driver module again.
> >>>>
> >>>>
> >>>> Takashi
> >>>>
> >>>
> >>> Okay, booted with card not inserted and with hda-intel driver
> >>> blacklisted. Inserted card & loaded driver and same complaint came up...
> >>> here is dmesg output http://pastebin.com/myBT23G1
> >>
> >> I meant reloading the module again without reinserting the device.
> >> Though, I don't expect this would work, but just to be sure.
> >>
> >
> > is alsa force-reload sufficient?
> >
> >> Other than that, I have no much clue.  You might put some delay in
> >> each probe procedure and debug prints.  Check the values of
> >> azx_read*() and azx_write*().  Especially if azx_read*() reads 0xff,
> >> it means that the mapped PCI registers are wrong, which usually
> >> indicates still some PCI errors (e.g. the device isn't powered up
> >> properly).
> >>
> >>
> >> Takashi
> >>
> >
> > Bjorn asked this question I'm not sure if you ever saw it...
> >
> > On Thu, Feb 26, 2015 at 09:20:59AM +0100, Takashi Iwai wrote:
> >
> >  >> FYI, during the previous debug sessions, we found that the sound
> >  >> driver gets only 0xff for mapped register accesses, so I suggested to
> >  >> report to PCI devs.  IIRC, the non-hotplug board with this chip worked
> >  >> in the past.
> >
> >  >I skimmed the previous emails but I missed this part.  Did you add
> >  >instrumentation to the driver, or is it just obvious from the way the
> >  >driver behaves that we're getting 0xff?
> >
> >  >Bjorn
> >
> >
> > Also, in regards to debug prints and azx read write values. How do I do
> > this? I have searched around I can't find anything.
> >
> 
> Please bear with me. Much of this is very new to me. I compiled a new 
> kernel with the following debug settings enabled. Am I moving in the 
> right direction?
> 
> CONFIG_SND_VERBOSE_PRINTK=y
> CONFIG_SND_DEBUG=y
> CONFIG_SND_DEBUG_VERBOSE=y
> 
> CONFIG_PCI_DEBUG=y
> 
> 
> Here is the dmesg (i also do a force-reload)... http://pastebin.com/giRsPCUe
> More output, but not sure if it has the information you are looking for.
> and this... 
> http://www.alsa-project.org/db/?f=c69bc32b2795cc9cee2aa3cf205c8dab7583638d

My suggestion isn't about a compile option but that you add some debug
printk() calls manually around some codes.  We need to know the value
written and read by azx_write*() and azx_read*() calls.  Especially
the value read in pci_azx_read*() is more interesting. You can try to
modify sound/pci/hda/hda_intel.c and add a printk() to each
pci_azx_read*() function for printing the value to be returned.
Beware that this will likely flood many messages, so just try once.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-03 22:07           ` Takashi Iwai
@ 2015-03-04  2:12             ` Alnie
  2015-03-04  8:00               ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-04  2:12 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/03/2015 02:07 PM, Takashi Iwai wrote:
> At Tue, 03 Mar 2015 13:51:24 -0800,
> Alnie wrote:
>>
>> On 03/03/2015 01:21 AM, Alnie wrote:
>>> On 03/02/2015 11:48 PM, Takashi Iwai wrote:
>>>> At Mon, 02 Mar 2015 23:22:52 -0800,
>>>> Alnie wrote:
>>>>>
>>>>> On 03/02/2015 10:10 PM, Takashi Iwai wrote:
>>>>>> At Mon, 02 Mar 2015 19:37:12 -0800,
>>>>>> Alnie wrote:
>>>>>>>
>>>>>>> At Wed, 25 Feb 2015 00:21:15 -0800,
>>>>>>> Alnie wrote:
>>>>>>>     >
>>>>>>>     >
>>>>>>>     >
>>>>>>>     > On 02/25/2015 12:06 AM, Takashi Iwai wrote:
>>>>>>>     > > At Tue, 24 Feb 2015 23:55:25 -0800,
>>>>>>>     > > Alnie wrote:
>>>>>>>     > >>
>>>>>>>     > >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present
>>>>>>> on Slot(3)
>>>>>>>     > >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link
>>>>>>> Down event
>>>>>>>     > >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event
>>>>>>> ignored on
>>>>>>>     > >> slot(3): already powering off
>>>>>>>     > >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is
>>>>>>> released
>>>>>>>     > >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on
>>>>>>> Slot(3)
>>>>>>>     > >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up
>>>>>>> event
>>>>>>>     > >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event
>>>>>>> ignored on
>>>>>>>     > >> slot(3): already powering on
>>>>>>>     > >
>>>>>>>     > > pciehp reacted power off and on here, and...
>>>>>>>     > >
>>>>>>>     > >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class
>>>>>>> 0x060400
>>>>>>>     > >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>>>>>>>     > >> [ 2620.876719] pci 0000:05:00.0: bridge configuration
>>>>>>> invalid ([bus
>>>>>>>     > >> 00-00]), reconfiguring
>>>>>>>     > >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert
>>>>>>> [bus 06-ff]
>>>>>>>     > >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>>>>>>>     > >
>>>>>>>     > > .... and something failed here for the PCI bridge device.
>>>>>>>     > >
>>>>>>>     > >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class
>>>>>>> 0x040300
>>>>>>>     > >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem
>>>>>>> 0x00000000-0x00003fff]
>>>>>>>     > >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>>>>>>>     > >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>>>>>>>     > >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io
>>>>>>> 0x0000-0x0fff]
>>>>>>>     > >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem
>>>>>>> 0x00000000-0x000fffff]
>>>>>>>     > >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>>>>>>>     > >> 0x00000000-0x000fffff 64bit pref]
>>>>>>>     > >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is
>>>>>>> updated to 06
>>>>>>>     > >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>>>>>>>     > >> 0xf4300000-0xf43fffff]
>>>>>>>     > >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>>>>>>>     > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>>>     > >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io
>>>>>>> 0x2000-0x2fff]
>>>>>>>     > >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem
>>>>>>> 0xf4300000-0xf4303fff]
>>>>>>>     > >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>>>>>>>     > >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io
>>>>>>> 0x2000-0x2fff]
>>>>>>>     > >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem
>>>>>>> 0xf4300000-0xf43fffff]
>>>>>>>     > >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>>>>>>>     > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>>>     > >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus
>>>>>>> 05-0c]
>>>>>>>     > >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io
>>>>>>> 0x2000-0x2fff]
>>>>>>>     > >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>>>>>>>     > >> 0xf4300000-0xf7efffff]
>>>>>>>     > >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>>>>>>>     > >> 0xf4000000-0xf40fffff 64bit pref]
>>>>>>>     > >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 ->
>>>>>>> 0003)
>>>>>>>     > >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device
>>>>>>> (0000
>>>>>>> -> 0002)
>>>>>>>     > >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks
>>>>>>> suppressed
>>>>>>>     > >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe
>>>>>>> error;
>>>>>>>     > >> disabling it...
>>>>>>>     > >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG
>>>>>>> node found
>>>>>>>     > >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs
>>>>>>> initialized
>>>>>>>     > >
>>>>>>>     > > What if you once unload snd-hda-intel module and reload
>>>>>>> again while
>>>>>>>     > > keeping the card plugged?  I guess it still doesn't work,
>>>>>>> but just to
>>>>>>>     > > be sure...
>>>>>>>     > >
>>>>>>>     > > Overall, this look more like a problem of PCI core stuff.
>>>>>>> Better to
>>>>>>>     > > toss the issue to PCI people.
>>>>>>>     > >
>>>>>>>     > >
>>>>>>>     > > Takashi
>>>>>>>     > >
>>>>>>>     >
>>>>>>>     > I did alsa force-reload and the same error comes up. Do you
>>>>>>> know of a
>>>>>>>     > good starting point for presenting PCI issues?
>>>>>>>     >
>>>>>>>     >Ask on linux-pci at vger.kernel.org ?
>>>>>>>     >
>>>>>>>     >
>>>>>>>     >Takashi
>>>>>>>
>>>>>>>
>>>>>>> Bjorn has suggested it is not a PCI issue...
>>>>>>> http://article.gmane.org/gmane.linux.kernel.pci/39492
>>>>>>> Any other ideas in regards to this?
>>>>>>
>>>>>> After re-inserting the card, try to reload the driver module again.
>>>>>>
>>>>>>
>>>>>> Takashi
>>>>>>
>>>>>
>>>>> Okay, booted with card not inserted and with hda-intel driver
>>>>> blacklisted. Inserted card & loaded driver and same complaint came up...
>>>>> here is dmesg output http://pastebin.com/myBT23G1
>>>>
>>>> I meant reloading the module again without reinserting the device.
>>>> Though, I don't expect this would work, but just to be sure.
>>>>
>>>
>>> is alsa force-reload sufficient?
>>>
>>>> Other than that, I have no much clue.  You might put some delay in
>>>> each probe procedure and debug prints.  Check the values of
>>>> azx_read*() and azx_write*().  Especially if azx_read*() reads 0xff,
>>>> it means that the mapped PCI registers are wrong, which usually
>>>> indicates still some PCI errors (e.g. the device isn't powered up
>>>> properly).
>>>>
>>>>
>>>> Takashi
>>>>
>>>
>>> Bjorn asked this question I'm not sure if you ever saw it...
>>>
>>> On Thu, Feb 26, 2015 at 09:20:59AM +0100, Takashi Iwai wrote:
>>>
>>>   >> FYI, during the previous debug sessions, we found that the sound
>>>   >> driver gets only 0xff for mapped register accesses, so I suggested to
>>>   >> report to PCI devs.  IIRC, the non-hotplug board with this chip worked
>>>   >> in the past.
>>>
>>>   >I skimmed the previous emails but I missed this part.  Did you add
>>>   >instrumentation to the driver, or is it just obvious from the way the
>>>   >driver behaves that we're getting 0xff?
>>>
>>>   >Bjorn
>>>
>>>
>>> Also, in regards to debug prints and azx read write values. How do I do
>>> this? I have searched around I can't find anything.
>>>
>>
>> Please bear with me. Much of this is very new to me. I compiled a new
>> kernel with the following debug settings enabled. Am I moving in the
>> right direction?
>>
>> CONFIG_SND_VERBOSE_PRINTK=y
>> CONFIG_SND_DEBUG=y
>> CONFIG_SND_DEBUG_VERBOSE=y
>>
>> CONFIG_PCI_DEBUG=y
>>
>>
>> Here is the dmesg (i also do a force-reload)... http://pastebin.com/giRsPCUe
>> More output, but not sure if it has the information you are looking for.
>> and this...
>> http://www.alsa-project.org/db/?f=c69bc32b2795cc9cee2aa3cf205c8dab7583638d
>
> My suggestion isn't about a compile option but that you add some debug
> printk() calls manually around some codes.  We need to know the value
> written and read by azx_write*() and azx_read*() calls.  Especially
> the value read in pci_azx_read*() is more interesting. You can try to
> modify sound/pci/hda/hda_intel.c and add a printk() to each
> pci_azx_read*() function for printing the value to be returned.
> Beware that this will likely flood many messages, so just try once.
>
>
> Takashi
>

I can not find any reference to pci_azx_read in hda_intel.c

Take this for example...

/* receive a response */
static int azx_single_wait_for_response(struct azx *chip, unsigned int addr)
{
	int timeout = 50;

	while (timeout--) {
		/* check IRV busy bit */
		if (azx_readw(chip, IRS) & ICH6_IRS_VALID) {
			/* reuse rirb.res as the response return value */
			chip->rirb.res[addr] = azx_readl(chip, IR);
			return 0;
		}
		udelay(1);
	}
	if (printk_ratelimit())
		snd_printd(SFX "%s: get_response timeout: IRS=0x%x\n",
			   pci_name(chip->pci), azx_readw(chip, IRS));
	chip->rirb.res[addr] = -1;
	return -EIO;
}

can you please show me how to insert the printk command without breaking 
things?

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-04  2:12             ` Alnie
@ 2015-03-04  8:00               ` Takashi Iwai
  2015-03-04  9:01                 ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-04  8:00 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 03 Mar 2015 18:12:31 -0800,
Alnie wrote:
> 
> > My suggestion isn't about a compile option but that you add some debug
> > printk() calls manually around some codes.  We need to know the value
> > written and read by azx_write*() and azx_read*() calls.  Especially
> > the value read in pci_azx_read*() is more interesting. You can try to
> > modify sound/pci/hda/hda_intel.c and add a printk() to each
> > pci_azx_read*() function for printing the value to be returned.
> > Beware that this will likely flood many messages, so just try once.
> >
> >
> > Takashi
> >
> 
> I can not find any reference to pci_azx_read in hda_intel.c

You must be using a too old kernel, then.  Please use the latest
kernel for debugging. 


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-04  8:00               ` Takashi Iwai
@ 2015-03-04  9:01                 ` Alnie
  2015-03-04  9:35                   ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-04  9:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel



On 03/04/2015 12:00 AM, Takashi Iwai wrote:
> At Tue, 03 Mar 2015 18:12:31 -0800,
> Alnie wrote:
>>
>>> My suggestion isn't about a compile option but that you add some debug
>>> printk() calls manually around some codes.  We need to know the value
>>> written and read by azx_write*() and azx_read*() calls.  Especially
>>> the value read in pci_azx_read*() is more interesting. You can try to
>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>> pci_azx_read*() function for printing the value to be returned.
>>> Beware that this will likely flood many messages, so just try once.
>>>
>>>
>>> Takashi
>>>
>>
>> I can not find any reference to pci_azx_read in hda_intel.c
>
> You must be using a too old kernel, then.  Please use the latest
> kernel for debugging.
>
>
> Takashi
>

Ok. I now have latest kernel.

Here is a small portion...

/* PCI register access. */
static void pci_azx_writel(u32 value, u32 __iomem *addr)
{
	writel(value, addr);
}

static u32 pci_azx_readl(u32 __iomem *addr)
{
	return readl(addr);
}

Can you show me how I can properly place printk without breaking things 
and produce relevant messages?

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-04  9:01                 ` Alnie
@ 2015-03-04  9:35                   ` Takashi Iwai
  2015-03-06 22:38                     ` Alnie
  2015-03-06 23:31                     ` Alnie
  0 siblings, 2 replies; 47+ messages in thread
From: Takashi Iwai @ 2015-03-04  9:35 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Wed, 04 Mar 2015 01:01:32 -0800,
Alnie wrote:
> 
> 
> 
> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
> > At Tue, 03 Mar 2015 18:12:31 -0800,
> > Alnie wrote:
> >>
> >>> My suggestion isn't about a compile option but that you add some debug
> >>> printk() calls manually around some codes.  We need to know the value
> >>> written and read by azx_write*() and azx_read*() calls.  Especially
> >>> the value read in pci_azx_read*() is more interesting. You can try to
> >>> modify sound/pci/hda/hda_intel.c and add a printk() to each
> >>> pci_azx_read*() function for printing the value to be returned.
> >>> Beware that this will likely flood many messages, so just try once.
> >>>
> >>>
> >>> Takashi
> >>>
> >>
> >> I can not find any reference to pci_azx_read in hda_intel.c
> >
> > You must be using a too old kernel, then.  Please use the latest
> > kernel for debugging.
> >
> >
> > Takashi
> >
> 
> Ok. I now have latest kernel.
> 
> Here is a small portion...
> 
> /* PCI register access. */
> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> {
> 	writel(value, addr);
> }
> 
> static u32 pci_azx_readl(u32 __iomem *addr)
> {
> 	return readl(addr);
> }
> 
> Can you show me how I can properly place printk without breaking things 
> and produce relevant messages?

Something like:

static u32 pci_azx_readl(u32 __iomem *addr)
{
	u32 val = readl(addr);
	pr_info("XXX readl %p %x\n", addr, val);
	return val;
}

But since there are quite lots of accesses, it might be safer to use
the ratelimited version.  Use like the following:
	pr_info_ratelimited("XXX readl %p %x\n", addr, val);

Also there are variants pci_azx_readw() and _readb().


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-04  9:35                   ` Takashi Iwai
@ 2015-03-06 22:38                     ` Alnie
  2015-03-06 22:50                       ` Alnie
  2015-03-06 23:31                     ` Alnie
  1 sibling, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-06 22:38 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/04/2015 01:35 AM, Takashi Iwai wrote:
> At Wed, 04 Mar 2015 01:01:32 -0800,
> Alnie wrote:
>>
>>
>>
>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>> Alnie wrote:
>>>>
>>>>> My suggestion isn't about a compile option but that you add some debug
>>>>> printk() calls manually around some codes.  We need to know the value
>>>>> written and read by azx_write*() and azx_read*() calls.  Especially
>>>>> the value read in pci_azx_read*() is more interesting. You can try to
>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>> Beware that this will likely flood many messages, so just try once.
>>>>>
>>>>>
>>>>> Takashi
>>>>>
>>>>
>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>
>>> You must be using a too old kernel, then.  Please use the latest
>>> kernel for debugging.
>>>
>>>
>>> Takashi
>>>
>>
>> Ok. I now have latest kernel.
>>
>> Here is a small portion...
>>
>> /* PCI register access. */
>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>> {
>> 	writel(value, addr);
>> }
>>
>> static u32 pci_azx_readl(u32 __iomem *addr)
>> {
>> 	return readl(addr);
>> }
>>
>> Can you show me how I can properly place printk without breaking things
>> and produce relevant messages?
>
> Something like:
>
> static u32 pci_azx_readl(u32 __iomem *addr)
> {
> 	u32 val = readl(addr);
> 	pr_info("XXX readl %p %x\n", addr, val);
> 	return val;
> }
>
> But since there are quite lots of accesses, it might be safer to use
> the ratelimited version.  Use like the following:
> 	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>
> Also there are variants pci_azx_readw() and _readb().
>
>
> Takashi
>

These are the mods I made...

/* PCI register access. */
static void pci_azx_writel(u32 value, u32 __iomem *addr)
{
	writel(value, addr);
	pr_info_ratelimited("XXX writel %p %x\n", addr, val);
	return val;
}

static u32 pci_azx_readl(u32 __iomem *addr)
{
	return readl(addr);
	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
	return val;
}

static void pci_azx_writew(u16 value, u16 __iomem *addr)
{
	writew(value, addr);
	pr_info_ratelimited("XXX writew %p %x\n", addr, val);
	return val;
}

static u16 pci_azx_readw(u16 __iomem *addr)
{
	return readw(addr);
	pr_info_ratelimited("XXX readw %p %x\n", addr, val);
	return val;
}

static void pci_azx_writeb(u8 value, u8 __iomem *addr)
{
	writeb(value, addr);
	pr_info_ratelimited("XXX writeb %p %x\n", addr, val);
	return val;
}

static u8 pci_azx_readb(u8 __iomem *addr)
{
	return readb(addr);
	pr_info_ratelimited("XXX readb %p %x\n", addr, val);
	return val;
}

But I am getting errors for each pci_azx value...

In file included from include/linux/kernel.h:13:0,
                  from include/linux/delay.h:10,
                  from sound/pci/hda/hda_intel.c:37:
sound/pci/hda/hda_intel.c: In function ‘pci_azx_writel’:
sound/pci/hda/hda_intel.c:1701:50: error: ‘val’ undeclared (first use in 
this function)
   pr_info_ratelimited("XXX writel %p %x\n", addr, val);
                                                   ^
include/linux/printk.h:361:17: note: in definition of macro 
‘printk_ratelimited’
    printk(fmt, ##__VA_ARGS__);    \
                  ^
sound/pci/hda/hda_intel.c:1701:2: note: in expansion of macro 
‘pr_info_ratelimited’
   pr_info_ratelimited("XXX writel %p %x\n", addr, val);
   ^
sound/pci/hda/hda_intel.c:1701:50: note: each undeclared identifier is 
reported only once for each function it appears in
   pr_info_ratelimited("XXX writel %p %x\n", addr, val);
                                                   ^
include/linux/printk.h:361:17: note: in definition of macro 
‘printk_ratelimited’
    printk(fmt, ##__VA_ARGS__);    \
                  ^
sound/pci/hda/hda_intel.c:1701:2: note: in expansion of macro 
‘pr_info_ratelimited’
   pr_info_ratelimited("XXX writel %p %x\n", addr, val);
   ^
sound/pci/hda/hda_intel.c:1702:2: warning: ‘return’ with a value, in 
function returning void [enabled by default]
   return val;
   ^

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-06 22:38                     ` Alnie
@ 2015-03-06 22:50                       ` Alnie
  0 siblings, 0 replies; 47+ messages in thread
From: Alnie @ 2015-03-06 22:50 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/06/2015 02:38 PM, Alnie wrote:
> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
>> At Wed, 04 Mar 2015 01:01:32 -0800,
>> Alnie wrote:
>>>
>>>
>>>
>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>>> Alnie wrote:
>>>>>
>>>>>> My suggestion isn't about a compile option but that you add some
>>>>>> debug
>>>>>> printk() calls manually around some codes.  We need to know the value
>>>>>> written and read by azx_write*() and azx_read*() calls.  Especially
>>>>>> the value read in pci_azx_read*() is more interesting. You can try to
>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>>> Beware that this will likely flood many messages, so just try once.
>>>>>>
>>>>>>
>>>>>> Takashi
>>>>>>
>>>>>
>>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>>
>>>> You must be using a too old kernel, then.  Please use the latest
>>>> kernel for debugging.
>>>>
>>>>
>>>> Takashi
>>>>
>>>
>>> Ok. I now have latest kernel.
>>>
>>> Here is a small portion...
>>>
>>> /* PCI register access. */
>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>> {
>>>     writel(value, addr);
>>> }
>>>
>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>> {
>>>     return readl(addr);
>>> }
>>>
>>> Can you show me how I can properly place printk without breaking things
>>> and produce relevant messages?
>>
>> Something like:
>>
>> static u32 pci_azx_readl(u32 __iomem *addr)
>> {
>>     u32 val = readl(addr);
>>     pr_info("XXX readl %p %x\n", addr, val);
>>     return val;
>> }
>>
>> But since there are quite lots of accesses, it might be safer to use
>> the ratelimited version.  Use like the following:
>>     pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>
>> Also there are variants pci_azx_readw() and _readb().
>>
>>
>> Takashi
>>
>
> These are the mods I made...
>
> /* PCI register access. */
> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> {
>      writel(value, addr);
>      pr_info_ratelimited("XXX writel %p %x\n", addr, val);
>      return val;
> }
>
> static u32 pci_azx_readl(u32 __iomem *addr)
> {
>      return readl(addr);
>      pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>      return val;
> }
>
> static void pci_azx_writew(u16 value, u16 __iomem *addr)
> {
>      writew(value, addr);
>      pr_info_ratelimited("XXX writew %p %x\n", addr, val);
>      return val;
> }
>
> static u16 pci_azx_readw(u16 __iomem *addr)
> {
>      return readw(addr);
>      pr_info_ratelimited("XXX readw %p %x\n", addr, val);
>      return val;
> }
>
> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
> {
>      writeb(value, addr);
>      pr_info_ratelimited("XXX writeb %p %x\n", addr, val);
>      return val;
> }
>
> static u8 pci_azx_readb(u8 __iomem *addr)
> {
>      return readb(addr);
>      pr_info_ratelimited("XXX readb %p %x\n", addr, val);
>      return val;
> }
>
> But I am getting errors for each pci_azx value...
>
> In file included from include/linux/kernel.h:13:0,
>                   from include/linux/delay.h:10,
>                   from sound/pci/hda/hda_intel.c:37:
> sound/pci/hda/hda_intel.c: In function ‘pci_azx_writel’:
> sound/pci/hda/hda_intel.c:1701:50: error: ‘val’ undeclared (first use in
> this function)
>    pr_info_ratelimited("XXX writel %p %x\n", addr, val);
>                                                    ^
> include/linux/printk.h:361:17: note: in definition of macro
> ‘printk_ratelimited’
>     printk(fmt, ##__VA_ARGS__);    \
>                   ^
> sound/pci/hda/hda_intel.c:1701:2: note: in expansion of macro
> ‘pr_info_ratelimited’
>    pr_info_ratelimited("XXX writel %p %x\n", addr, val);
>    ^
> sound/pci/hda/hda_intel.c:1701:50: note: each undeclared identifier is
> reported only once for each function it appears in
>    pr_info_ratelimited("XXX writel %p %x\n", addr, val);
>                                                    ^
> include/linux/printk.h:361:17: note: in definition of macro
> ‘printk_ratelimited’
>     printk(fmt, ##__VA_ARGS__);    \
>                   ^
> sound/pci/hda/hda_intel.c:1701:2: note: in expansion of macro
> ‘pr_info_ratelimited’
>    pr_info_ratelimited("XXX writel %p %x\n", addr, val);
>    ^
> sound/pci/hda/hda_intel.c:1702:2: warning: ‘return’ with a value, in
> function returning void [enabled by default]
>    return val;
>    ^
>

Ack! Premature post. Already seeing where I made mistakes. Sorry, very 
unfamiliar with C :(

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-04  9:35                   ` Takashi Iwai
  2015-03-06 22:38                     ` Alnie
@ 2015-03-06 23:31                     ` Alnie
  2015-03-07  7:56                       ` Takashi Iwai
  1 sibling, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-06 23:31 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/04/2015 01:35 AM, Takashi Iwai wrote:
> At Wed, 04 Mar 2015 01:01:32 -0800,
> Alnie wrote:
>>
>>
>>
>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>> Alnie wrote:
>>>>
>>>>> My suggestion isn't about a compile option but that you add some debug
>>>>> printk() calls manually around some codes.  We need to know the value
>>>>> written and read by azx_write*() and azx_read*() calls.  Especially
>>>>> the value read in pci_azx_read*() is more interesting. You can try to
>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>> Beware that this will likely flood many messages, so just try once.
>>>>>
>>>>>
>>>>> Takashi
>>>>>
>>>>
>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>
>>> You must be using a too old kernel, then.  Please use the latest
>>> kernel for debugging.
>>>
>>>
>>> Takashi
>>>
>>
>> Ok. I now have latest kernel.
>>
>> Here is a small portion...
>>
>> /* PCI register access. */
>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>> {
>> 	writel(value, addr);
>> }
>>
>> static u32 pci_azx_readl(u32 __iomem *addr)
>> {
>> 	return readl(addr);
>> }
>>
>> Can you show me how I can properly place printk without breaking things
>> and produce relevant messages?
>
> Something like:
>
> static u32 pci_azx_readl(u32 __iomem *addr)
> {
> 	u32 val = readl(addr);
> 	pr_info("XXX readl %p %x\n", addr, val);
> 	return val;
> }
>
> But since there are quite lots of accesses, it might be safer to use
> the ratelimited version.  Use like the following:
> 	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>
> Also there are variants pci_azx_readw() and _readb().
>
>
> Takashi
>


Ok, I was only able to guess through the code for the read values. If 
you need write information too please show me how.
here are the mods I made...

/* PCI register access. */
static void pci_azx_writel(u32 value, u32 __iomem *addr)
{
	writel(value, addr);
}

static u32 pci_azx_readl(u32 __iomem *addr)
{
     u32 val = readl(addr);
     pr_info_ratelimited("XXX readl %p %x\n", addr, val);
     return val;
}

static void pci_azx_writew(u16 value, u16 __iomem *addr)
{
	writew(value, addr);
}

static u16 pci_azx_readw(u16 __iomem *addr)
{
	u16 val = readw(addr);
	pr_info_ratelimited("XXX readw %p %x\n", addr, val);
	return val;
}

static void pci_azx_writeb(u8 value, u8 __iomem *addr)
{
	writeb(value, addr);
}

static u8 pci_azx_readb(u8 __iomem *addr)
{
	u8 val = readb(addr);
	pr_info_ratelimited("XXX readb %p %x\n", addr, val);
	return val;
}

and i was able to produce this...

dmesg | grep -i read
[    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to 
read a pcr value
[    0.769674] Write protecting the kernel read-only data: 12288k
[    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly 
filesystem
[    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
[    4.662442] XXX readw ffffc90004f30000 4401
[    4.662466] XXX readl ffffc90004f30008 1
[    4.662468] XXX readb ffffc90004f30008 1
[    4.662609] XXX readw ffffc90004f70000 3300
[    4.662631] XXX readl ffffc90004f70008 0
[    4.662635] XXX readb ffffc90004f70008 0
[    4.663483] XXX readb ffffc90004f30008 0
[    4.663492] XXX readb ffffc90004f70008 0
[    4.663496] XXX readb ffffc90004f70008 0
[    4.664138] XXX readb ffffc90004f30008 0
[    4.664142] XXX readb ffffc90004f30008 0
[    4.664150] XXX readb ffffc90004f70008 1
[    4.665173] XXX readb ffffc90004f30008 1
[    4.665368] XXX readb ffffc90004f70008 1
[    4.665372] XXX readw ffffc90004f7000e 2
[    4.665378] XXX readl ffffc90004f70020 0
[    4.666389] XXX readw ffffc90004f3000e 1
[    4.666394] XXX readl ffffc90004f30020 0
[    4.668203] XXX readw ffffc90004f70068 0
[    4.668209] XXX readw ffffc90004f70068 0
[    4.668213] XXX readw ffffc90004f70068 0
[    4.668216] XXX readw ffffc90004f70068 0
[    4.668221] XXX readw ffffc90004f70068 0
[    4.668226] XXX readw ffffc90004f70068 0
[    4.668412] XXX readl ffffc90004f70020 c0000000
[    4.668420] XXX readl ffffc90004f70008 1
[    4.671683] XXX readl ffffc90004f70020 0
[    4.674569] XXX readl ffffc90004f30064 14f15051
[    4.674608] XXX readl ffffc90004f30064 14f15051
[    4.674651] XXX readl ffffc90004f30064 0
[    5.624194] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.297049] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.003841] pci_azx_readl: 160 callbacks suppressed
[   15.003845] XXX readl ffffc90004f30024 0
[   15.003911] XXX readl ffffc90004f30024 0
[   16.334821] pci_azx_readb: 12 callbacks suppressed
[   16.334826] XXX readb ffffc90004f30080 0
[   16.334829] XXX readb ffffc90004f30080 0
[   16.334834] XXX readb ffffc90004f30080 1
[   16.334839] XXX readb ffffc90004f30080 0
[   16.334844] XXX readb ffffc90004f30080 0
[   16.334846] XXX readl ffffc90004f30080 40000
[   16.334849] XXX readl ffffc90004f30070 31303000
[   16.334852] XXX readl ffffc90004f30080 140000
[   16.334857] pci_azx_readw: 3599 callbacks suppressed
[   16.334858] XXX readw ffffc90004f30068 2
[   16.334860] XXX readw ffffc90004f30068 2
[   16.334862] XXX readw ffffc90004f30068 0
[   16.334864] XXX readw ffffc90004f30068 1
[   16.334868] XXX readw ffffc90004f30068 1
[   16.334871] XXX readw ffffc90004f30068 1
[   16.334874] XXX readw ffffc90004f30068 1
[   16.334877] XXX readw ffffc90004f30068 1
[   16.334880] XXX readw ffffc90004f30068 1
[   16.334884] XXX readw ffffc90004f30068 1
[   16.334902] XXX readl ffffc90004f30064 0
[   16.334943] XXX readl ffffc90004f30064 0
[   16.334985] XXX readl ffffc90004f30064 11
[   16.340093] XXX readl ffffc90004f30064 0
[   16.340115] XXX readb ffffc90004f30080 1c
[   16.340118] XXX readb ffffc90004f30080 0
[   16.340123] XXX readb ffffc90004f30080 1
[   16.340128] XXX readb ffffc90004f30080 0
[   16.340132] XXX readb ffffc90004f30080 0
[   16.340134] XXX readl ffffc90004f30080 40000
[   20.018443] pci_azx_readl: 148 callbacks suppressed
[   20.018448] XXX readl ffffc90004f30030 15f6582b
[   20.018709] XXX readl ffffc90004f30030 15f6715a
[   20.018716] XXX readl ffffc90004f30030 15f67203
[   20.370026] XXX readl ffffc90004f30030 16770835
[   20.370737] XXX readl ffffc90004f30030 16774b57
[   20.370752] XXX readl ffffc90004f30030 16774cd3
[   20.721866] XXX readl ffffc90004f30030 16f7d0db
[   20.722577] XXX readl ffffc90004f30030 16f813de
[   20.722592] XXX readl ffffc90004f30030 16f81544
[   21.073497] XXX readl ffffc90004f30030 17788616
[   21.447607] pci_azx_readb: 75 callbacks suppressed
[   21.447617] XXX readb ffffc90004f30100 1e
[   21.447624] XXX readb ffffc90004f30100 2
[   21.447629] XXX readb ffffc90004f30100 2
[   21.447633] XXX readb ffffc90004f30100 2
[   21.447637] XXX readb ffffc90004f30100 0
[   21.879992] XXX readb ffffc90004f30100 0
[   21.879998] XXX readb ffffc90004f30100 0
[   21.880032] XXX readb ffffc90004f30100 1
[   21.880039] XXX readb ffffc90004f30100 0
[   21.880043] XXX readb ffffc90004f30100 0
[   21.880051] pci_azx_readw: 855 callbacks suppressed
[   21.880052] XXX readw ffffc90004f30110 bf
[   21.880075] XXX readw ffffc90004f30110 bf
[   25.032271] pci_azx_readl: 896 callbacks suppressed
[   25.032281] XXX readl ffffc90004f30030 1d218b30
[   25.033006] XXX readl ffffc90004f30030 1d21d08e
[   25.033021] XXX readl ffffc90004f30030 1d21d1f9
[   25.393756] XXX readl ffffc90004f30030 1da5db6d
[   25.394488] XXX readl ffffc90004f30030 1da62083
[   25.394503] XXX readl ffffc90004f30030 1da62206
[   25.755381] XXX readl ffffc90004f30030 1e2a394b
[   25.755746] XXX readl ffffc90004f30030 1e2a5bab
[   25.755754] XXX readl ffffc90004f30030 1e2a5c65
[   26.116985] XXX readl ffffc90004f30030 1eae9483
[   29.677529] pci_azx_readb: 11 callbacks suppressed
[   29.677540] XXX readb ffffc90004f30100 1e
[   29.677547] XXX readb ffffc90004f30100 2
[   29.677551] XXX readb ffffc90004f30100 2
[   29.677556] XXX readb ffffc90004f30100 2
[   29.677560] XXX readb ffffc90004f30100 2
[   29.677565] XXX readb ffffc90004f30100 0

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-06 23:31                     ` Alnie
@ 2015-03-07  7:56                       ` Takashi Iwai
  2015-03-07 16:28                         ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-07  7:56 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Fri, 06 Mar 2015 15:31:32 -0800,
Alnie wrote:
> 
> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
> > At Wed, 04 Mar 2015 01:01:32 -0800,
> > Alnie wrote:
> >>
> >>
> >>
> >> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
> >>> At Tue, 03 Mar 2015 18:12:31 -0800,
> >>> Alnie wrote:
> >>>>
> >>>>> My suggestion isn't about a compile option but that you add some debug
> >>>>> printk() calls manually around some codes.  We need to know the value
> >>>>> written and read by azx_write*() and azx_read*() calls.  Especially
> >>>>> the value read in pci_azx_read*() is more interesting. You can try to
> >>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
> >>>>> pci_azx_read*() function for printing the value to be returned.
> >>>>> Beware that this will likely flood many messages, so just try once.
> >>>>>
> >>>>>
> >>>>> Takashi
> >>>>>
> >>>>
> >>>> I can not find any reference to pci_azx_read in hda_intel.c
> >>>
> >>> You must be using a too old kernel, then.  Please use the latest
> >>> kernel for debugging.
> >>>
> >>>
> >>> Takashi
> >>>
> >>
> >> Ok. I now have latest kernel.
> >>
> >> Here is a small portion...
> >>
> >> /* PCI register access. */
> >> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >> {
> >> 	writel(value, addr);
> >> }
> >>
> >> static u32 pci_azx_readl(u32 __iomem *addr)
> >> {
> >> 	return readl(addr);
> >> }
> >>
> >> Can you show me how I can properly place printk without breaking things
> >> and produce relevant messages?
> >
> > Something like:
> >
> > static u32 pci_azx_readl(u32 __iomem *addr)
> > {
> > 	u32 val = readl(addr);
> > 	pr_info("XXX readl %p %x\n", addr, val);
> > 	return val;
> > }
> >
> > But since there are quite lots of accesses, it might be safer to use
> > the ratelimited version.  Use like the following:
> > 	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >
> > Also there are variants pci_azx_readw() and _readb().
> >
> >
> > Takashi
> >
> 
> 
> Ok, I was only able to guess through the code for the read values. If 
> you need write information too please show me how.
> here are the mods I made...
> 
> /* PCI register access. */
> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> {
> 	writel(value, addr);
> }
> 
> static u32 pci_azx_readl(u32 __iomem *addr)
> {
>      u32 val = readl(addr);
>      pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>      return val;
> }
> 
> static void pci_azx_writew(u16 value, u16 __iomem *addr)
> {
> 	writew(value, addr);
> }
> 
> static u16 pci_azx_readw(u16 __iomem *addr)
> {
> 	u16 val = readw(addr);
> 	pr_info_ratelimited("XXX readw %p %x\n", addr, val);
> 	return val;
> }
> 
> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
> {
> 	writeb(value, addr);
> }
> 
> static u8 pci_azx_readb(u8 __iomem *addr)
> {
> 	u8 val = readb(addr);
> 	pr_info_ratelimited("XXX readb %p %x\n", addr, val);
> 	return val;
> }
> 
> and i was able to produce this...
> 
> dmesg | grep -i read
> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to 
> read a pcr value
> [    0.769674] Write protecting the kernel read-only data: 12288k
> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
> enabled, doesn't support DPO or FUA
> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: 
> enabled, doesn't support DPO or FUA
> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly 
> filesystem
> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
> [    4.662442] XXX readw ffffc90004f30000 4401

This reads good, but I thought you have two sound devices (onboard and
Creative)?  If so, disable the onboard one via enable=0 option (if the
onboard one is assigned first).  Otherwise the all good and bad
results are mixed up.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-07  7:56                       ` Takashi Iwai
@ 2015-03-07 16:28                         ` Alnie
  2015-03-07 16:32                           ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-07 16:28 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/06/2015 11:56 PM, Takashi Iwai wrote:
> At Fri, 06 Mar 2015 15:31:32 -0800,
> Alnie wrote:
>>
>> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
>>> At Wed, 04 Mar 2015 01:01:32 -0800,
>>> Alnie wrote:
>>>>
>>>>
>>>>
>>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>>>> Alnie wrote:
>>>>>>
>>>>>>> My suggestion isn't about a compile option but that you add some debug
>>>>>>> printk() calls manually around some codes.  We need to know the value
>>>>>>> written and read by azx_write*() and azx_read*() calls.  Especially
>>>>>>> the value read in pci_azx_read*() is more interesting. You can try to
>>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>>>> Beware that this will likely flood many messages, so just try once.
>>>>>>>
>>>>>>>
>>>>>>> Takashi
>>>>>>>
>>>>>>
>>>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>>>
>>>>> You must be using a too old kernel, then.  Please use the latest
>>>>> kernel for debugging.
>>>>>
>>>>>
>>>>> Takashi
>>>>>
>>>>
>>>> Ok. I now have latest kernel.
>>>>
>>>> Here is a small portion...
>>>>
>>>> /* PCI register access. */
>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>> {
>>>> 	writel(value, addr);
>>>> }
>>>>
>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>> {
>>>> 	return readl(addr);
>>>> }
>>>>
>>>> Can you show me how I can properly place printk without breaking things
>>>> and produce relevant messages?
>>>
>>> Something like:
>>>
>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>> {
>>> 	u32 val = readl(addr);
>>> 	pr_info("XXX readl %p %x\n", addr, val);
>>> 	return val;
>>> }
>>>
>>> But since there are quite lots of accesses, it might be safer to use
>>> the ratelimited version.  Use like the following:
>>> 	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>
>>> Also there are variants pci_azx_readw() and _readb().
>>>
>>>
>>> Takashi
>>>
>>
>>
>> Ok, I was only able to guess through the code for the read values. If
>> you need write information too please show me how.
>> here are the mods I made...
>>
>> /* PCI register access. */
>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>> {
>> 	writel(value, addr);
>> }
>>
>> static u32 pci_azx_readl(u32 __iomem *addr)
>> {
>>       u32 val = readl(addr);
>>       pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>       return val;
>> }
>>
>> static void pci_azx_writew(u16 value, u16 __iomem *addr)
>> {
>> 	writew(value, addr);
>> }
>>
>> static u16 pci_azx_readw(u16 __iomem *addr)
>> {
>> 	u16 val = readw(addr);
>> 	pr_info_ratelimited("XXX readw %p %x\n", addr, val);
>> 	return val;
>> }
>>
>> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
>> {
>> 	writeb(value, addr);
>> }
>>
>> static u8 pci_azx_readb(u8 __iomem *addr)
>> {
>> 	u8 val = readb(addr);
>> 	pr_info_ratelimited("XXX readb %p %x\n", addr, val);
>> 	return val;
>> }
>>
>> and i was able to produce this...
>>
>> dmesg | grep -i read
>> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
>> read a pcr value
>> [    0.769674] Write protecting the kernel read-only data: 12288k
>> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
>> enabled, doesn't support DPO or FUA
>> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
>> enabled, doesn't support DPO or FUA
>> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
>> filesystem
>> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
>> [    4.662442] XXX readw ffffc90004f30000 4401
>
> This reads good, but I thought you have two sound devices (onboard and
> Creative)?  If so, disable the onboard one via enable=0 option (if the
> onboard one is assigned first).  Otherwise the all good and bad
> results are mixed up.
>
>
> Takashi
>

I included options snd-hda-intel enable=0 index=0

This is dmesg output (1b is onboard)...
dmesg | grep -i hda
[    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
[   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 -> 0002)
[   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
[   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
[   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error; 
disabling it...
[   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
[   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
[   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized

dmesg | grep -i XXX
[   37.729723] XXX readw ffffc90005188000 3300
[   37.729768] XXX readl ffffc90005188008 0
[   37.729774] XXX readb ffffc90005188008 0
[   37.730803] XXX readb ffffc90005188008 0
[   37.730812] XXX readb ffffc90005188008 0
[   37.731839] XXX readb ffffc90005188008 1
[   37.733060] XXX readb ffffc90005188008 1
[   37.733065] XXX readl ffffc90005188008 1
[   37.733069] XXX readw ffffc9000518800e 2
[   37.733075] XXX readl ffffc90005188020 0
[   37.733081] XXX readw ffffc9000518804a 0
[   37.733086] XXX readw ffffc9000518804a 0
[   37.733090] XXX readw ffffc9000518804a 0
[   37.733095] XXX readw ffffc9000518804a 0
[   37.733099] XXX readw ffffc9000518804a 0
[   37.733104] XXX readw ffffc9000518804a 0
[   37.733108] XXX readw ffffc9000518804a 0
[   37.733113] XXX readw ffffc9000518804a 0
[   37.736839] XXX readl ffffc90005188024 c0000000
[   37.736844] XXX readb ffffc9000518805d 1
[   38.740103] XXX readb ffffc90005188080 0
[   38.740110] XXX readb ffffc900051880a0 0
[   38.740116] XXX readb ffffc900051880c0 0
[   38.740122] XXX readb ffffc900051880e0 0
[   38.740134] XXX readl ffffc90005188020 c0000000
[   38.740144] XXX readl ffffc90005188008 101
[   38.743555] XXX readl ffffc90005188008 1
[   38.743567] XXX readl ffffc90005188020 0
[   38.747380] XXX readl ffffc90005188024 c0000000
[   39.752132] XXX readl ffffc90005188024 c0000000
[   42.768069] XXX readw ffffc90005188048 4
[   42.768073] XXX readw ffffc9000518804a 4
[   42.768113] XXX readl ffffc90005188024 c0000000
[   42.768119] XXX readb ffffc9000518805d 1
[   42.768201] XXX readw ffffc90005188058 0

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-07 16:28                         ` Alnie
@ 2015-03-07 16:32                           ` Takashi Iwai
  2015-03-07 18:06                             ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-07 16:32 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Sat, 07 Mar 2015 08:28:29 -0800,
Alnie wrote:
> 
> On 03/06/2015 11:56 PM, Takashi Iwai wrote:
> > At Fri, 06 Mar 2015 15:31:32 -0800,
> > Alnie wrote:
> >>
> >> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
> >>> At Wed, 04 Mar 2015 01:01:32 -0800,
> >>> Alnie wrote:
> >>>>
> >>>>
> >>>>
> >>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
> >>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
> >>>>> Alnie wrote:
> >>>>>>
> >>>>>>> My suggestion isn't about a compile option but that you add some debug
> >>>>>>> printk() calls manually around some codes.  We need to know the value
> >>>>>>> written and read by azx_write*() and azx_read*() calls.  Especially
> >>>>>>> the value read in pci_azx_read*() is more interesting. You can try to
> >>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
> >>>>>>> pci_azx_read*() function for printing the value to be returned.
> >>>>>>> Beware that this will likely flood many messages, so just try once.
> >>>>>>>
> >>>>>>>
> >>>>>>> Takashi
> >>>>>>>
> >>>>>>
> >>>>>> I can not find any reference to pci_azx_read in hda_intel.c
> >>>>>
> >>>>> You must be using a too old kernel, then.  Please use the latest
> >>>>> kernel for debugging.
> >>>>>
> >>>>>
> >>>>> Takashi
> >>>>>
> >>>>
> >>>> Ok. I now have latest kernel.
> >>>>
> >>>> Here is a small portion...
> >>>>
> >>>> /* PCI register access. */
> >>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >>>> {
> >>>> 	writel(value, addr);
> >>>> }
> >>>>
> >>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>> {
> >>>> 	return readl(addr);
> >>>> }
> >>>>
> >>>> Can you show me how I can properly place printk without breaking things
> >>>> and produce relevant messages?
> >>>
> >>> Something like:
> >>>
> >>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>> {
> >>> 	u32 val = readl(addr);
> >>> 	pr_info("XXX readl %p %x\n", addr, val);
> >>> 	return val;
> >>> }
> >>>
> >>> But since there are quite lots of accesses, it might be safer to use
> >>> the ratelimited version.  Use like the following:
> >>> 	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >>>
> >>> Also there are variants pci_azx_readw() and _readb().
> >>>
> >>>
> >>> Takashi
> >>>
> >>
> >>
> >> Ok, I was only able to guess through the code for the read values. If
> >> you need write information too please show me how.
> >> here are the mods I made...
> >>
> >> /* PCI register access. */
> >> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >> {
> >> 	writel(value, addr);
> >> }
> >>
> >> static u32 pci_azx_readl(u32 __iomem *addr)
> >> {
> >>       u32 val = readl(addr);
> >>       pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >>       return val;
> >> }
> >>
> >> static void pci_azx_writew(u16 value, u16 __iomem *addr)
> >> {
> >> 	writew(value, addr);
> >> }
> >>
> >> static u16 pci_azx_readw(u16 __iomem *addr)
> >> {
> >> 	u16 val = readw(addr);
> >> 	pr_info_ratelimited("XXX readw %p %x\n", addr, val);
> >> 	return val;
> >> }
> >>
> >> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
> >> {
> >> 	writeb(value, addr);
> >> }
> >>
> >> static u8 pci_azx_readb(u8 __iomem *addr)
> >> {
> >> 	u8 val = readb(addr);
> >> 	pr_info_ratelimited("XXX readb %p %x\n", addr, val);
> >> 	return val;
> >> }
> >>
> >> and i was able to produce this...
> >>
> >> dmesg | grep -i read
> >> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
> >> read a pcr value
> >> [    0.769674] Write protecting the kernel read-only data: 12288k
> >> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
> >> enabled, doesn't support DPO or FUA
> >> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
> >> enabled, doesn't support DPO or FUA
> >> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
> >> filesystem
> >> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
> >> [    4.662442] XXX readw ffffc90004f30000 4401
> >
> > This reads good, but I thought you have two sound devices (onboard and
> > Creative)?  If so, disable the onboard one via enable=0 option (if the
> > onboard one is assigned first).  Otherwise the all good and bad
> > results are mixed up.
> >
> >
> > Takashi
> >
> 
> I included options snd-hda-intel enable=0 index=0
> 
> This is dmesg output (1b is onboard)...
> dmesg | grep -i hda
> [    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
> [   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 -> 0002)
> [   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
> [   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> [   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error; 
> disabling it...
> [   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> [   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> [   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized
> 
> dmesg | grep -i XXX
> [   37.729723] XXX readw ffffc90005188000 3300
> [   37.729768] XXX readl ffffc90005188008 0

OK, so all read look fine.  Right now we saw a bug report with git
bisection showing a bad commit in HD-audio controller code.  This
might be your issue, too.  Could you try the following oneliner?


thanks,

Takashi

diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
index 7b4377265b25..57c4575fac26 100644
--- a/sound/pci/hda/hda_controller.c
+++ b/sound/pci/hda/hda_controller.c
@@ -1194,7 +1194,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus,
 		}
 	}
 
-	if (!bus->no_response_fallback)
+	if (bus->no_response_fallback)
 		return -1;
 
 	if (!chip->polling_mode && chip->poll_count < 2) {

^ permalink raw reply related	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-07 16:32                           ` Takashi Iwai
@ 2015-03-07 18:06                             ` Alnie
  2015-03-09 15:22                               ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-07 18:06 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/07/2015 08:32 AM, Takashi Iwai wrote:
> At Sat, 07 Mar 2015 08:28:29 -0800,
> Alnie wrote:
>>
>> On 03/06/2015 11:56 PM, Takashi Iwai wrote:
>>> At Fri, 06 Mar 2015 15:31:32 -0800,
>>> Alnie wrote:
>>>>
>>>> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
>>>>> At Wed, 04 Mar 2015 01:01:32 -0800,
>>>>> Alnie wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>>>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>>>>>> Alnie wrote:
>>>>>>>>
>>>>>>>>> My suggestion isn't about a compile option but that you add some debug
>>>>>>>>> printk() calls manually around some codes.  We need to know the value
>>>>>>>>> written and read by azx_write*() and azx_read*() calls.  Especially
>>>>>>>>> the value read in pci_azx_read*() is more interesting. You can try to
>>>>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>>>>>> Beware that this will likely flood many messages, so just try once.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Takashi
>>>>>>>>>
>>>>>>>>
>>>>>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>>>>>
>>>>>>> You must be using a too old kernel, then.  Please use the latest
>>>>>>> kernel for debugging.
>>>>>>>
>>>>>>>
>>>>>>> Takashi
>>>>>>>
>>>>>>
>>>>>> Ok. I now have latest kernel.
>>>>>>
>>>>>> Here is a small portion...
>>>>>>
>>>>>> /* PCI register access. */
>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>>>> {
>>>>>> 	writel(value, addr);
>>>>>> }
>>>>>>
>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>>> {
>>>>>> 	return readl(addr);
>>>>>> }
>>>>>>
>>>>>> Can you show me how I can properly place printk without breaking things
>>>>>> and produce relevant messages?
>>>>>
>>>>> Something like:
>>>>>
>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>> {
>>>>> 	u32 val = readl(addr);
>>>>> 	pr_info("XXX readl %p %x\n", addr, val);
>>>>> 	return val;
>>>>> }
>>>>>
>>>>> But since there are quite lots of accesses, it might be safer to use
>>>>> the ratelimited version.  Use like the following:
>>>>> 	pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>>>
>>>>> Also there are variants pci_azx_readw() and _readb().
>>>>>
>>>>>
>>>>> Takashi
>>>>>
>>>>
>>>>
>>>> Ok, I was only able to guess through the code for the read values. If
>>>> you need write information too please show me how.
>>>> here are the mods I made...
>>>>
>>>> /* PCI register access. */
>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>> {
>>>> 	writel(value, addr);
>>>> }
>>>>
>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>> {
>>>>        u32 val = readl(addr);
>>>>        pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>>        return val;
>>>> }
>>>>
>>>> static void pci_azx_writew(u16 value, u16 __iomem *addr)
>>>> {
>>>> 	writew(value, addr);
>>>> }
>>>>
>>>> static u16 pci_azx_readw(u16 __iomem *addr)
>>>> {
>>>> 	u16 val = readw(addr);
>>>> 	pr_info_ratelimited("XXX readw %p %x\n", addr, val);
>>>> 	return val;
>>>> }
>>>>
>>>> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
>>>> {
>>>> 	writeb(value, addr);
>>>> }
>>>>
>>>> static u8 pci_azx_readb(u8 __iomem *addr)
>>>> {
>>>> 	u8 val = readb(addr);
>>>> 	pr_info_ratelimited("XXX readb %p %x\n", addr, val);
>>>> 	return val;
>>>> }
>>>>
>>>> and i was able to produce this...
>>>>
>>>> dmesg | grep -i read
>>>> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
>>>> read a pcr value
>>>> [    0.769674] Write protecting the kernel read-only data: 12288k
>>>> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
>>>> enabled, doesn't support DPO or FUA
>>>> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
>>>> enabled, doesn't support DPO or FUA
>>>> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
>>>> filesystem
>>>> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
>>>> [    4.662442] XXX readw ffffc90004f30000 4401
>>>
>>> This reads good, but I thought you have two sound devices (onboard and
>>> Creative)?  If so, disable the onboard one via enable=0 option (if the
>>> onboard one is assigned first).  Otherwise the all good and bad
>>> results are mixed up.
>>>
>>>
>>> Takashi
>>>
>>
>> I included options snd-hda-intel enable=0 index=0
>>
>> This is dmesg output (1b is onboard)...
>> dmesg | grep -i hda
>> [    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
>> [   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 -> 0002)
>> [   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
>> [   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
>> [   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>> disabling it...
>> [   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
>> [   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>> [   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized
>>
>> dmesg | grep -i XXX
>> [   37.729723] XXX readw ffffc90005188000 3300
>> [   37.729768] XXX readl ffffc90005188008 0
>
> OK, so all read look fine.  Right now we saw a bug report with git
> bisection showing a bad commit in HD-audio controller code.  This
> might be your issue, too.  Could you try the following oneliner?
>
>
> thanks,
>
> Takashi
>
> diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
> index 7b4377265b25..57c4575fac26 100644
> --- a/sound/pci/hda/hda_controller.c
> +++ b/sound/pci/hda/hda_controller.c
> @@ -1194,7 +1194,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus,
>   		}
>   	}
>
> -	if (!bus->no_response_fallback)
> +	if (bus->no_response_fallback)
>   		return -1;
>
>   	if (!chip->polling_mode && chip->poll_count < 2) {
>


I believe I applied the patch correctly... if you would like to double 
check here is the hda_controller.c file (http://pastebin.com/NA7AV2n1)

Same complaint comes up, after reinsert and force-reload as well...

[  419.344572] snd_hda_intel 0000:06:00.0: enabling bus mastering
[  419.350967] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
[  422.360107] snd_hda_intel 0000:06:00.0: azx_get_response timeout, 
switching to polling mode: last cmd=0x100f0000
[  423.364094] snd_hda_intel 0000:06:00.0: Codec #1 probe error; 
disabling it...
[  423.371128] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
[  424.376098] snd_hda_intel 0000:06:00.0: azx_get_response timeout, 
switching to single_cmd mode: last cmd=0x100f0000
[  424.377052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
[  424.377067] snd_hda_intel 0000:06:00.0: no codecs initialized

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-07 18:06                             ` Alnie
@ 2015-03-09 15:22                               ` Alnie
  2015-03-09 16:00                                 ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-09 15:22 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 03/07/2015 10:06 AM, Alnie wrote:
> On 03/07/2015 08:32 AM, Takashi Iwai wrote:
>> At Sat, 07 Mar 2015 08:28:29 -0800,
>> Alnie wrote:
>>>
>>> On 03/06/2015 11:56 PM, Takashi Iwai wrote:
>>>> At Fri, 06 Mar 2015 15:31:32 -0800,
>>>> Alnie wrote:
>>>>>
>>>>> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
>>>>>> At Wed, 04 Mar 2015 01:01:32 -0800,
>>>>>> Alnie wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>>>>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>>>>>>> Alnie wrote:
>>>>>>>>>
>>>>>>>>>> My suggestion isn't about a compile option but that you add
>>>>>>>>>> some debug
>>>>>>>>>> printk() calls manually around some codes.  We need to know
>>>>>>>>>> the value
>>>>>>>>>> written and read by azx_write*() and azx_read*() calls.
>>>>>>>>>> Especially
>>>>>>>>>> the value read in pci_azx_read*() is more interesting. You can
>>>>>>>>>> try to
>>>>>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>>>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>>>>>>> Beware that this will likely flood many messages, so just try
>>>>>>>>>> once.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Takashi
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>>>>>>
>>>>>>>> You must be using a too old kernel, then.  Please use the latest
>>>>>>>> kernel for debugging.
>>>>>>>>
>>>>>>>>
>>>>>>>> Takashi
>>>>>>>>
>>>>>>>
>>>>>>> Ok. I now have latest kernel.
>>>>>>>
>>>>>>> Here is a small portion...
>>>>>>>
>>>>>>> /* PCI register access. */
>>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>>>>> {
>>>>>>>     writel(value, addr);
>>>>>>> }
>>>>>>>
>>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>>>> {
>>>>>>>     return readl(addr);
>>>>>>> }
>>>>>>>
>>>>>>> Can you show me how I can properly place printk without breaking
>>>>>>> things
>>>>>>> and produce relevant messages?
>>>>>>
>>>>>> Something like:
>>>>>>
>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>>> {
>>>>>>     u32 val = readl(addr);
>>>>>>     pr_info("XXX readl %p %x\n", addr, val);
>>>>>>     return val;
>>>>>> }
>>>>>>
>>>>>> But since there are quite lots of accesses, it might be safer to use
>>>>>> the ratelimited version.  Use like the following:
>>>>>>     pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>>>>
>>>>>> Also there are variants pci_azx_readw() and _readb().
>>>>>>
>>>>>>
>>>>>> Takashi
>>>>>>
>>>>>
>>>>>
>>>>> Ok, I was only able to guess through the code for the read values. If
>>>>> you need write information too please show me how.
>>>>> here are the mods I made...
>>>>>
>>>>> /* PCI register access. */
>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>>> {
>>>>>     writel(value, addr);
>>>>> }
>>>>>
>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>> {
>>>>>        u32 val = readl(addr);
>>>>>        pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>>>        return val;
>>>>> }
>>>>>
>>>>> static void pci_azx_writew(u16 value, u16 __iomem *addr)
>>>>> {
>>>>>     writew(value, addr);
>>>>> }
>>>>>
>>>>> static u16 pci_azx_readw(u16 __iomem *addr)
>>>>> {
>>>>>     u16 val = readw(addr);
>>>>>     pr_info_ratelimited("XXX readw %p %x\n", addr, val);
>>>>>     return val;
>>>>> }
>>>>>
>>>>> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
>>>>> {
>>>>>     writeb(value, addr);
>>>>> }
>>>>>
>>>>> static u8 pci_azx_readb(u8 __iomem *addr)
>>>>> {
>>>>>     u8 val = readb(addr);
>>>>>     pr_info_ratelimited("XXX readb %p %x\n", addr, val);
>>>>>     return val;
>>>>> }
>>>>>
>>>>> and i was able to produce this...
>>>>>
>>>>> dmesg | grep -i read
>>>>> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
>>>>> read a pcr value
>>>>> [    0.769674] Write protecting the kernel read-only data: 12288k
>>>>> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
>>>>> enabled, doesn't support DPO or FUA
>>>>> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
>>>>> enabled, doesn't support DPO or FUA
>>>>> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
>>>>> filesystem
>>>>> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
>>>>> [    4.662442] XXX readw ffffc90004f30000 4401
>>>>
>>>> This reads good, but I thought you have two sound devices (onboard and
>>>> Creative)?  If so, disable the onboard one via enable=0 option (if the
>>>> onboard one is assigned first).  Otherwise the all good and bad
>>>> results are mixed up.
>>>>
>>>>
>>>> Takashi
>>>>
>>>
>>> I included options snd-hda-intel enable=0 index=0
>>>
>>> This is dmesg output (1b is onboard)...
>>> dmesg | grep -i hda
>>> [    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
>>> [   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 ->
>>> 0002)
>>> [   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
>>> [   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
>>> CORBRP = 0
>>> [   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>>> disabling it...
>>> [   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
>>> CORBRP = 0
>>> [   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>>> [   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized
>>>
>>> dmesg | grep -i XXX
>>> [   37.729723] XXX readw ffffc90005188000 3300
>>> [   37.729768] XXX readl ffffc90005188008 0
>>
>> OK, so all read look fine.  Right now we saw a bug report with git
>> bisection showing a bad commit in HD-audio controller code.  This
>> might be your issue, too.  Could you try the following oneliner?
>>
>>
>> thanks,
>>
>> Takashi
>>
>> diff --git a/sound/pci/hda/hda_controller.c
>> b/sound/pci/hda/hda_controller.c
>> index 7b4377265b25..57c4575fac26 100644
>> --- a/sound/pci/hda/hda_controller.c
>> +++ b/sound/pci/hda/hda_controller.c
>> @@ -1194,7 +1194,7 @@ static unsigned int azx_rirb_get_response(struct
>> hda_bus *bus,
>>           }
>>       }
>>
>> -    if (!bus->no_response_fallback)
>> +    if (bus->no_response_fallback)
>>           return -1;
>>
>>       if (!chip->polling_mode && chip->poll_count < 2) {
>>
>
>
> I believe I applied the patch correctly... if you would like to double
> check here is the hda_controller.c file (http://pastebin.com/NA7AV2n1)
>
> Same complaint comes up, after reinsert and force-reload as well...
>
> [  419.344572] snd_hda_intel 0000:06:00.0: enabling bus mastering
> [  419.350967] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> [  422.360107] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
> switching to polling mode: last cmd=0x100f0000
> [  423.364094] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> disabling it...
> [  423.371128] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> [  424.376098] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
> switching to single_cmd mode: last cmd=0x100f0000
> [  424.377052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> [  424.377067] snd_hda_intel 0000:06:00.0: no codecs initialized
>

I'm assuming we've exhausted our options for now. It seems probable this 
model card (ExpressCard/54) never worked in Linux to begin with. I 
looked over the forum posts from those claiming they had it operational 
(in 2.6 kernel), but it was for the PCI-E version. I greatly appreciate 
your assistance with this. Thank you.


-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-09 15:22                               ` Alnie
@ 2015-03-09 16:00                                 ` Takashi Iwai
  2015-03-12  3:59                                   ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-09 16:00 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Mon, 09 Mar 2015 08:22:34 -0700,
Alnie wrote:
> 
> On 03/07/2015 10:06 AM, Alnie wrote:
> > On 03/07/2015 08:32 AM, Takashi Iwai wrote:
> >> At Sat, 07 Mar 2015 08:28:29 -0800,
> >> Alnie wrote:
> >>>
> >>> On 03/06/2015 11:56 PM, Takashi Iwai wrote:
> >>>> At Fri, 06 Mar 2015 15:31:32 -0800,
> >>>> Alnie wrote:
> >>>>>
> >>>>> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
> >>>>>> At Wed, 04 Mar 2015 01:01:32 -0800,
> >>>>>> Alnie wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
> >>>>>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
> >>>>>>>> Alnie wrote:
> >>>>>>>>>
> >>>>>>>>>> My suggestion isn't about a compile option but that you add
> >>>>>>>>>> some debug
> >>>>>>>>>> printk() calls manually around some codes.  We need to know
> >>>>>>>>>> the value
> >>>>>>>>>> written and read by azx_write*() and azx_read*() calls.
> >>>>>>>>>> Especially
> >>>>>>>>>> the value read in pci_azx_read*() is more interesting. You can
> >>>>>>>>>> try to
> >>>>>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
> >>>>>>>>>> pci_azx_read*() function for printing the value to be returned.
> >>>>>>>>>> Beware that this will likely flood many messages, so just try
> >>>>>>>>>> once.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Takashi
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> I can not find any reference to pci_azx_read in hda_intel.c
> >>>>>>>>
> >>>>>>>> You must be using a too old kernel, then.  Please use the latest
> >>>>>>>> kernel for debugging.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Takashi
> >>>>>>>>
> >>>>>>>
> >>>>>>> Ok. I now have latest kernel.
> >>>>>>>
> >>>>>>> Here is a small portion...
> >>>>>>>
> >>>>>>> /* PCI register access. */
> >>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >>>>>>> {
> >>>>>>>     writel(value, addr);
> >>>>>>> }
> >>>>>>>
> >>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>>>>> {
> >>>>>>>     return readl(addr);
> >>>>>>> }
> >>>>>>>
> >>>>>>> Can you show me how I can properly place printk without breaking
> >>>>>>> things
> >>>>>>> and produce relevant messages?
> >>>>>>
> >>>>>> Something like:
> >>>>>>
> >>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>>>> {
> >>>>>>     u32 val = readl(addr);
> >>>>>>     pr_info("XXX readl %p %x\n", addr, val);
> >>>>>>     return val;
> >>>>>> }
> >>>>>>
> >>>>>> But since there are quite lots of accesses, it might be safer to use
> >>>>>> the ratelimited version.  Use like the following:
> >>>>>>     pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >>>>>>
> >>>>>> Also there are variants pci_azx_readw() and _readb().
> >>>>>>
> >>>>>>
> >>>>>> Takashi
> >>>>>>
> >>>>>
> >>>>>
> >>>>> Ok, I was only able to guess through the code for the read values. If
> >>>>> you need write information too please show me how.
> >>>>> here are the mods I made...
> >>>>>
> >>>>> /* PCI register access. */
> >>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >>>>> {
> >>>>>     writel(value, addr);
> >>>>> }
> >>>>>
> >>>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>>> {
> >>>>>        u32 val = readl(addr);
> >>>>>        pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >>>>>        return val;
> >>>>> }
> >>>>>
> >>>>> static void pci_azx_writew(u16 value, u16 __iomem *addr)
> >>>>> {
> >>>>>     writew(value, addr);
> >>>>> }
> >>>>>
> >>>>> static u16 pci_azx_readw(u16 __iomem *addr)
> >>>>> {
> >>>>>     u16 val = readw(addr);
> >>>>>     pr_info_ratelimited("XXX readw %p %x\n", addr, val);
> >>>>>     return val;
> >>>>> }
> >>>>>
> >>>>> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
> >>>>> {
> >>>>>     writeb(value, addr);
> >>>>> }
> >>>>>
> >>>>> static u8 pci_azx_readb(u8 __iomem *addr)
> >>>>> {
> >>>>>     u8 val = readb(addr);
> >>>>>     pr_info_ratelimited("XXX readb %p %x\n", addr, val);
> >>>>>     return val;
> >>>>> }
> >>>>>
> >>>>> and i was able to produce this...
> >>>>>
> >>>>> dmesg | grep -i read
> >>>>> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
> >>>>> read a pcr value
> >>>>> [    0.769674] Write protecting the kernel read-only data: 12288k
> >>>>> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
> >>>>> enabled, doesn't support DPO or FUA
> >>>>> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
> >>>>> enabled, doesn't support DPO or FUA
> >>>>> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
> >>>>> filesystem
> >>>>> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
> >>>>> [    4.662442] XXX readw ffffc90004f30000 4401
> >>>>
> >>>> This reads good, but I thought you have two sound devices (onboard and
> >>>> Creative)?  If so, disable the onboard one via enable=0 option (if the
> >>>> onboard one is assigned first).  Otherwise the all good and bad
> >>>> results are mixed up.
> >>>>
> >>>>
> >>>> Takashi
> >>>>
> >>>
> >>> I included options snd-hda-intel enable=0 index=0
> >>>
> >>> This is dmesg output (1b is onboard)...
> >>> dmesg | grep -i hda
> >>> [    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
> >>> [   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 ->
> >>> 0002)
> >>> [   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
> >>> [   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
> >>> CORBRP = 0
> >>> [   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> >>> disabling it...
> >>> [   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
> >>> CORBRP = 0
> >>> [   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >>> [   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>>
> >>> dmesg | grep -i XXX
> >>> [   37.729723] XXX readw ffffc90005188000 3300
> >>> [   37.729768] XXX readl ffffc90005188008 0
> >>
> >> OK, so all read look fine.  Right now we saw a bug report with git
> >> bisection showing a bad commit in HD-audio controller code.  This
> >> might be your issue, too.  Could you try the following oneliner?
> >>
> >>
> >> thanks,
> >>
> >> Takashi
> >>
> >> diff --git a/sound/pci/hda/hda_controller.c
> >> b/sound/pci/hda/hda_controller.c
> >> index 7b4377265b25..57c4575fac26 100644
> >> --- a/sound/pci/hda/hda_controller.c
> >> +++ b/sound/pci/hda/hda_controller.c
> >> @@ -1194,7 +1194,7 @@ static unsigned int azx_rirb_get_response(struct
> >> hda_bus *bus,
> >>           }
> >>       }
> >>
> >> -    if (!bus->no_response_fallback)
> >> +    if (bus->no_response_fallback)
> >>           return -1;
> >>
> >>       if (!chip->polling_mode && chip->poll_count < 2) {
> >>
> >
> >
> > I believe I applied the patch correctly... if you would like to double
> > check here is the hda_controller.c file (http://pastebin.com/NA7AV2n1)
> >
> > Same complaint comes up, after reinsert and force-reload as well...
> >
> > [  419.344572] snd_hda_intel 0000:06:00.0: enabling bus mastering
> > [  419.350967] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> > [  422.360107] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
> > switching to polling mode: last cmd=0x100f0000
> > [  423.364094] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> > disabling it...
> > [  423.371128] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> > [  424.376098] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
> > switching to single_cmd mode: last cmd=0x100f0000
> > [  424.377052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> > [  424.377067] snd_hda_intel 0000:06:00.0: no codecs initialized
> >
> 
> I'm assuming we've exhausted our options for now. It seems probable this 
> model card (ExpressCard/54) never worked in Linux to begin with. I 
> looked over the forum posts from those claiming they had it operational 
> (in 2.6 kernel), but it was for the PCI-E version. I greatly appreciate 
> your assistance with this. Thank you.

Yes, some PCI-e version has worked, I personally tested it once.
But yours is apparently a different one, and we finally go back to the
starting point again.

What you need to do from now on is to analyze why the codec probe
fails.  It failed even with single_cmd mode.  This is strange, but it
might be that the board is never 100% compliant, so it might not
support that mode.

There are some workarounds done specific to the Creative devices.  For
example, azx_init_cmd_io() in hda_controller.c has a special handling
to set RIRB interrupt count to 0xc0.  I guess this needs to be set
normally.  That is, disable the following if () check, and run always
azx_writew(chip, RINTCNT, 1) instead:

	if (chip->driver_caps & AZX_DCAPS_CTX_WORKAROUND)
		azx_writew(chip, RINTCNT, 0xc0);
	else
		azx_writew(chip, RINTCNT, 1);

There is another workaround in azx_pcm_prepare() for the capture
streams, but this is irrelevant as of now -- we're concentrating only
on the codec probe issue.

If modifying above still doesn't work, you may try to force continuing
the probe by removing -EIO return from probe_codec() in
hda_controller.c.  That is, remove the following line from that
function:

	if (res == -1)
		return -EIO;

Of course, it doesn't mean this would work, but we can see whether the
board reacts somehow better.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-09 16:00                                 ` Takashi Iwai
@ 2015-03-12  3:59                                   ` Alnie
  2015-03-12  6:19                                     ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-03-12  3:59 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel



On 03/09/2015 09:00 AM, Takashi Iwai wrote:
> At Mon, 09 Mar 2015 08:22:34 -0700,
> Alnie wrote:
>>
>> On 03/07/2015 10:06 AM, Alnie wrote:
>>> On 03/07/2015 08:32 AM, Takashi Iwai wrote:
>>>> At Sat, 07 Mar 2015 08:28:29 -0800,
>>>> Alnie wrote:
>>>>>
>>>>> On 03/06/2015 11:56 PM, Takashi Iwai wrote:
>>>>>> At Fri, 06 Mar 2015 15:31:32 -0800,
>>>>>> Alnie wrote:
>>>>>>>
>>>>>>> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
>>>>>>>> At Wed, 04 Mar 2015 01:01:32 -0800,
>>>>>>>> Alnie wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
>>>>>>>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
>>>>>>>>>> Alnie wrote:
>>>>>>>>>>>
>>>>>>>>>>>> My suggestion isn't about a compile option but that you add
>>>>>>>>>>>> some debug
>>>>>>>>>>>> printk() calls manually around some codes.  We need to know
>>>>>>>>>>>> the value
>>>>>>>>>>>> written and read by azx_write*() and azx_read*() calls.
>>>>>>>>>>>> Especially
>>>>>>>>>>>> the value read in pci_azx_read*() is more interesting. You can
>>>>>>>>>>>> try to
>>>>>>>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
>>>>>>>>>>>> pci_azx_read*() function for printing the value to be returned.
>>>>>>>>>>>> Beware that this will likely flood many messages, so just try
>>>>>>>>>>>> once.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Takashi
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I can not find any reference to pci_azx_read in hda_intel.c
>>>>>>>>>>
>>>>>>>>>> You must be using a too old kernel, then.  Please use the latest
>>>>>>>>>> kernel for debugging.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Takashi
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Ok. I now have latest kernel.
>>>>>>>>>
>>>>>>>>> Here is a small portion...
>>>>>>>>>
>>>>>>>>> /* PCI register access. */
>>>>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>>>>>>> {
>>>>>>>>>      writel(value, addr);
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>>>>>> {
>>>>>>>>>      return readl(addr);
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> Can you show me how I can properly place printk without breaking
>>>>>>>>> things
>>>>>>>>> and produce relevant messages?
>>>>>>>>
>>>>>>>> Something like:
>>>>>>>>
>>>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>>>>> {
>>>>>>>>      u32 val = readl(addr);
>>>>>>>>      pr_info("XXX readl %p %x\n", addr, val);
>>>>>>>>      return val;
>>>>>>>> }
>>>>>>>>
>>>>>>>> But since there are quite lots of accesses, it might be safer to use
>>>>>>>> the ratelimited version.  Use like the following:
>>>>>>>>      pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>>>>>>
>>>>>>>> Also there are variants pci_azx_readw() and _readb().
>>>>>>>>
>>>>>>>>
>>>>>>>> Takashi
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Ok, I was only able to guess through the code for the read values. If
>>>>>>> you need write information too please show me how.
>>>>>>> here are the mods I made...
>>>>>>>
>>>>>>> /* PCI register access. */
>>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
>>>>>>> {
>>>>>>>      writel(value, addr);
>>>>>>> }
>>>>>>>
>>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
>>>>>>> {
>>>>>>>         u32 val = readl(addr);
>>>>>>>         pr_info_ratelimited("XXX readl %p %x\n", addr, val);
>>>>>>>         return val;
>>>>>>> }
>>>>>>>
>>>>>>> static void pci_azx_writew(u16 value, u16 __iomem *addr)
>>>>>>> {
>>>>>>>      writew(value, addr);
>>>>>>> }
>>>>>>>
>>>>>>> static u16 pci_azx_readw(u16 __iomem *addr)
>>>>>>> {
>>>>>>>      u16 val = readw(addr);
>>>>>>>      pr_info_ratelimited("XXX readw %p %x\n", addr, val);
>>>>>>>      return val;
>>>>>>> }
>>>>>>>
>>>>>>> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
>>>>>>> {
>>>>>>>      writeb(value, addr);
>>>>>>> }
>>>>>>>
>>>>>>> static u8 pci_azx_readb(u8 __iomem *addr)
>>>>>>> {
>>>>>>>      u8 val = readb(addr);
>>>>>>>      pr_info_ratelimited("XXX readb %p %x\n", addr, val);
>>>>>>>      return val;
>>>>>>> }
>>>>>>>
>>>>>>> and i was able to produce this...
>>>>>>>
>>>>>>> dmesg | grep -i read
>>>>>>> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
>>>>>>> read a pcr value
>>>>>>> [    0.769674] Write protecting the kernel read-only data: 12288k
>>>>>>> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
>>>>>>> enabled, doesn't support DPO or FUA
>>>>>>> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
>>>>>>> enabled, doesn't support DPO or FUA
>>>>>>> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
>>>>>>> filesystem
>>>>>>> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
>>>>>>> [    4.662442] XXX readw ffffc90004f30000 4401
>>>>>>
>>>>>> This reads good, but I thought you have two sound devices (onboard and
>>>>>> Creative)?  If so, disable the onboard one via enable=0 option (if the
>>>>>> onboard one is assigned first).  Otherwise the all good and bad
>>>>>> results are mixed up.
>>>>>>
>>>>>>
>>>>>> Takashi
>>>>>>
>>>>>
>>>>> I included options snd-hda-intel enable=0 index=0
>>>>>
>>>>> This is dmesg output (1b is onboard)...
>>>>> dmesg | grep -i hda
>>>>> [    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
>>>>> [   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 ->
>>>>> 0002)
>>>>> [   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
>>>>> [   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
>>>>> CORBRP = 0
>>>>> [   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>>>>> disabling it...
>>>>> [   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
>>>>> CORBRP = 0
>>>>> [   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>>>>> [   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized
>>>>>
>>>>> dmesg | grep -i XXX
>>>>> [   37.729723] XXX readw ffffc90005188000 3300
>>>>> [   37.729768] XXX readl ffffc90005188008 0
>>>>
>>>> OK, so all read look fine.  Right now we saw a bug report with git
>>>> bisection showing a bad commit in HD-audio controller code.  This
>>>> might be your issue, too.  Could you try the following oneliner?
>>>>
>>>>
>>>> thanks,
>>>>
>>>> Takashi
>>>>
>>>> diff --git a/sound/pci/hda/hda_controller.c
>>>> b/sound/pci/hda/hda_controller.c
>>>> index 7b4377265b25..57c4575fac26 100644
>>>> --- a/sound/pci/hda/hda_controller.c
>>>> +++ b/sound/pci/hda/hda_controller.c
>>>> @@ -1194,7 +1194,7 @@ static unsigned int azx_rirb_get_response(struct
>>>> hda_bus *bus,
>>>>            }
>>>>        }
>>>>
>>>> -    if (!bus->no_response_fallback)
>>>> +    if (bus->no_response_fallback)
>>>>            return -1;
>>>>
>>>>        if (!chip->polling_mode && chip->poll_count < 2) {
>>>>
>>>
>>>
>>> I believe I applied the patch correctly... if you would like to double
>>> check here is the hda_controller.c file (http://pastebin.com/NA7AV2n1)
>>>
>>> Same complaint comes up, after reinsert and force-reload as well...
>>>
>>> [  419.344572] snd_hda_intel 0000:06:00.0: enabling bus mastering
>>> [  419.350967] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
>>> [  422.360107] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
>>> switching to polling mode: last cmd=0x100f0000
>>> [  423.364094] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>>> disabling it...
>>> [  423.371128] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
>>> [  424.376098] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
>>> switching to single_cmd mode: last cmd=0x100f0000
>>> [  424.377052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>>> [  424.377067] snd_hda_intel 0000:06:00.0: no codecs initialized
>>>
>>
>> I'm assuming we've exhausted our options for now. It seems probable this
>> model card (ExpressCard/54) never worked in Linux to begin with. I
>> looked over the forum posts from those claiming they had it operational
>> (in 2.6 kernel), but it was for the PCI-E version. I greatly appreciate
>> your assistance with this. Thank you.
>
> Yes, some PCI-e version has worked, I personally tested it once.
> But yours is apparently a different one, and we finally go back to the
> starting point again.
>
> What you need to do from now on is to analyze why the codec probe
> fails.  It failed even with single_cmd mode.  This is strange, but it
> might be that the board is never 100% compliant, so it might not
> support that mode.
>
> There are some workarounds done specific to the Creative devices.  For
> example, azx_init_cmd_io() in hda_controller.c has a special handling
> to set RIRB interrupt count to 0xc0.  I guess this needs to be set
> normally.  That is, disable the following if () check, and run always
> azx_writew(chip, RINTCNT, 1) instead:
>
> 	if (chip->driver_caps & AZX_DCAPS_CTX_WORKAROUND)
> 		azx_writew(chip, RINTCNT, 0xc0);
> 	else
> 		azx_writew(chip, RINTCNT, 1);

This modification alone produced the same complaint. These are the edits 
I made...

	/* set N=1, get RIRB response interrupt for new entry */
	//if (chip->driver_caps & AZX_DCAPS_CTX_WORKAROUND)
		//azx_writew(chip, RINTCNT, 0xc0);
	//else
	azx_writew(chip, RINTCNT, 1);

>
> There is another workaround in azx_pcm_prepare() for the capture
> streams, but this is irrelevant as of now -- we're concentrating only
> on the codec probe issue.
>
> If modifying above still doesn't work, you may try to force continuing
> the probe by removing -EIO return from probe_codec() in
> hda_controller.c.  That is, remove the following line from that
> function:
>
> 	if (res == -1)
> 		return -EIO;

This is the edit I made...

	mutex_unlock(&chip->bus->cmd_mutex);
	//if (res == -1)
		//return -EIO;
	dev_dbg(chip->card->dev, "codec #%d probed OK\n", addr);

I assume I did this correctly, but here is the full hda_controller.c I 
compiled if you would like to double check http://pastebin.com/fvVVA1Ew

>
> Of course, it doesn't mean this would work, but we can see whether the
> board reacts somehow better.
>

Same complaint comes up.

[    7.600051] snd_hda_intel 0000:06:00.0: azx_get_response timeout, 
switching to polling mode: last cmd=0x100f0000
[    9.608050] snd_hda_intel 0000:06:00.0: azx_get_response timeout, 
switching to single_cmd mode: last cmd=0x100f0000
[    9.609976] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
[    9.611023] snd_hda_intel 0000:06:00.0: no codecs initialized
[   10.776445] init: alsa-restore main process (1461) terminated with 
status 19

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-12  3:59                                   ` Alnie
@ 2015-03-12  6:19                                     ` Takashi Iwai
  2015-03-13  2:41                                       ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-03-12  6:19 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Wed, 11 Mar 2015 20:59:58 -0700,
Alnie wrote:
> 
> 
> 
> On 03/09/2015 09:00 AM, Takashi Iwai wrote:
> > At Mon, 09 Mar 2015 08:22:34 -0700,
> > Alnie wrote:
> >>
> >> On 03/07/2015 10:06 AM, Alnie wrote:
> >>> On 03/07/2015 08:32 AM, Takashi Iwai wrote:
> >>>> At Sat, 07 Mar 2015 08:28:29 -0800,
> >>>> Alnie wrote:
> >>>>>
> >>>>> On 03/06/2015 11:56 PM, Takashi Iwai wrote:
> >>>>>> At Fri, 06 Mar 2015 15:31:32 -0800,
> >>>>>> Alnie wrote:
> >>>>>>>
> >>>>>>> On 03/04/2015 01:35 AM, Takashi Iwai wrote:
> >>>>>>>> At Wed, 04 Mar 2015 01:01:32 -0800,
> >>>>>>>> Alnie wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On 03/04/2015 12:00 AM, Takashi Iwai wrote:
> >>>>>>>>>> At Tue, 03 Mar 2015 18:12:31 -0800,
> >>>>>>>>>> Alnie wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> My suggestion isn't about a compile option but that you add
> >>>>>>>>>>>> some debug
> >>>>>>>>>>>> printk() calls manually around some codes.  We need to know
> >>>>>>>>>>>> the value
> >>>>>>>>>>>> written and read by azx_write*() and azx_read*() calls.
> >>>>>>>>>>>> Especially
> >>>>>>>>>>>> the value read in pci_azx_read*() is more interesting. You can
> >>>>>>>>>>>> try to
> >>>>>>>>>>>> modify sound/pci/hda/hda_intel.c and add a printk() to each
> >>>>>>>>>>>> pci_azx_read*() function for printing the value to be returned.
> >>>>>>>>>>>> Beware that this will likely flood many messages, so just try
> >>>>>>>>>>>> once.
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> Takashi
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> I can not find any reference to pci_azx_read in hda_intel.c
> >>>>>>>>>>
> >>>>>>>>>> You must be using a too old kernel, then.  Please use the latest
> >>>>>>>>>> kernel for debugging.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Takashi
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Ok. I now have latest kernel.
> >>>>>>>>>
> >>>>>>>>> Here is a small portion...
> >>>>>>>>>
> >>>>>>>>> /* PCI register access. */
> >>>>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >>>>>>>>> {
> >>>>>>>>>      writel(value, addr);
> >>>>>>>>> }
> >>>>>>>>>
> >>>>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>>>>>>> {
> >>>>>>>>>      return readl(addr);
> >>>>>>>>> }
> >>>>>>>>>
> >>>>>>>>> Can you show me how I can properly place printk without breaking
> >>>>>>>>> things
> >>>>>>>>> and produce relevant messages?
> >>>>>>>>
> >>>>>>>> Something like:
> >>>>>>>>
> >>>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>>>>>> {
> >>>>>>>>      u32 val = readl(addr);
> >>>>>>>>      pr_info("XXX readl %p %x\n", addr, val);
> >>>>>>>>      return val;
> >>>>>>>> }
> >>>>>>>>
> >>>>>>>> But since there are quite lots of accesses, it might be safer to use
> >>>>>>>> the ratelimited version.  Use like the following:
> >>>>>>>>      pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >>>>>>>>
> >>>>>>>> Also there are variants pci_azx_readw() and _readb().
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Takashi
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Ok, I was only able to guess through the code for the read values. If
> >>>>>>> you need write information too please show me how.
> >>>>>>> here are the mods I made...
> >>>>>>>
> >>>>>>> /* PCI register access. */
> >>>>>>> static void pci_azx_writel(u32 value, u32 __iomem *addr)
> >>>>>>> {
> >>>>>>>      writel(value, addr);
> >>>>>>> }
> >>>>>>>
> >>>>>>> static u32 pci_azx_readl(u32 __iomem *addr)
> >>>>>>> {
> >>>>>>>         u32 val = readl(addr);
> >>>>>>>         pr_info_ratelimited("XXX readl %p %x\n", addr, val);
> >>>>>>>         return val;
> >>>>>>> }
> >>>>>>>
> >>>>>>> static void pci_azx_writew(u16 value, u16 __iomem *addr)
> >>>>>>> {
> >>>>>>>      writew(value, addr);
> >>>>>>> }
> >>>>>>>
> >>>>>>> static u16 pci_azx_readw(u16 __iomem *addr)
> >>>>>>> {
> >>>>>>>      u16 val = readw(addr);
> >>>>>>>      pr_info_ratelimited("XXX readw %p %x\n", addr, val);
> >>>>>>>      return val;
> >>>>>>> }
> >>>>>>>
> >>>>>>> static void pci_azx_writeb(u8 value, u8 __iomem *addr)
> >>>>>>> {
> >>>>>>>      writeb(value, addr);
> >>>>>>> }
> >>>>>>>
> >>>>>>> static u8 pci_azx_readb(u8 __iomem *addr)
> >>>>>>> {
> >>>>>>>      u8 val = readb(addr);
> >>>>>>>      pr_info_ratelimited("XXX readb %p %x\n", addr, val);
> >>>>>>>      return val;
> >>>>>>> }
> >>>>>>>
> >>>>>>> and i was able to produce this...
> >>>>>>>
> >>>>>>> dmesg | grep -i read
> >>>>>>> [    0.764102] tpm_tis 00:05: A TPM error (7) occurred attempting to
> >>>>>>> read a pcr value
> >>>>>>> [    0.769674] Write protecting the kernel read-only data: 12288k
> >>>>>>> [    1.729952] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
> >>>>>>> enabled, doesn't support DPO or FUA
> >>>>>>> [    2.071100] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
> >>>>>>> enabled, doesn't support DPO or FUA
> >>>>>>> [    2.778875] EXT4-fs (sda5): INFO: recovery required on readonly
> >>>>>>> filesystem
> >>>>>>> [    2.817982] EXT4-fs (sda5): orphan cleanup on readonly fs
> >>>>>>> [    4.662442] XXX readw ffffc90004f30000 4401
> >>>>>>
> >>>>>> This reads good, but I thought you have two sound devices (onboard and
> >>>>>> Creative)?  If so, disable the onboard one via enable=0 option (if the
> >>>>>> onboard one is assigned first).  Otherwise the all good and bad
> >>>>>> results are mixed up.
> >>>>>>
> >>>>>>
> >>>>>> Takashi
> >>>>>>
> >>>>>
> >>>>> I included options snd-hda-intel enable=0 index=0
> >>>>>
> >>>>> This is dmesg output (1b is onboard)...
> >>>>> dmesg | grep -i hda
> >>>>> [    3.700213] snd_hda_intel: probe of 0000:00:1b.0 failed with error -2
> >>>>> [   37.729507] snd_hda_intel 0000:06:00.0: enabling device (0000 ->
> >>>>> 0002)
> >>>>> [   37.729703] snd_hda_intel 0000:06:00.0: enabling bus mastering
> >>>>> [   37.736026] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
> >>>>> CORBRP = 0
> >>>>> [   38.740090] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> >>>>> disabling it...
> >>>>> [   38.747292] snd_hda_intel 0000:06:00.0: CORB reset timeout#1,
> >>>>> CORBRP = 0
> >>>>> [   43.776089] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >>>>> [   43.776111] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>>>>
> >>>>> dmesg | grep -i XXX
> >>>>> [   37.729723] XXX readw ffffc90005188000 3300
> >>>>> [   37.729768] XXX readl ffffc90005188008 0
> >>>>
> >>>> OK, so all read look fine.  Right now we saw a bug report with git
> >>>> bisection showing a bad commit in HD-audio controller code.  This
> >>>> might be your issue, too.  Could you try the following oneliner?
> >>>>
> >>>>
> >>>> thanks,
> >>>>
> >>>> Takashi
> >>>>
> >>>> diff --git a/sound/pci/hda/hda_controller.c
> >>>> b/sound/pci/hda/hda_controller.c
> >>>> index 7b4377265b25..57c4575fac26 100644
> >>>> --- a/sound/pci/hda/hda_controller.c
> >>>> +++ b/sound/pci/hda/hda_controller.c
> >>>> @@ -1194,7 +1194,7 @@ static unsigned int azx_rirb_get_response(struct
> >>>> hda_bus *bus,
> >>>>            }
> >>>>        }
> >>>>
> >>>> -    if (!bus->no_response_fallback)
> >>>> +    if (bus->no_response_fallback)
> >>>>            return -1;
> >>>>
> >>>>        if (!chip->polling_mode && chip->poll_count < 2) {
> >>>>
> >>>
> >>>
> >>> I believe I applied the patch correctly... if you would like to double
> >>> check here is the hda_controller.c file (http://pastebin.com/NA7AV2n1)
> >>>
> >>> Same complaint comes up, after reinsert and force-reload as well...
> >>>
> >>> [  419.344572] snd_hda_intel 0000:06:00.0: enabling bus mastering
> >>> [  419.350967] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >>> [  422.360107] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
> >>> switching to polling mode: last cmd=0x100f0000
> >>> [  423.364094] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> >>> disabling it...
> >>> [  423.371128] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >>> [  424.376098] snd_hda_intel 0000:06:00.0: azx_get_response timeout,
> >>> switching to single_cmd mode: last cmd=0x100f0000
> >>> [  424.377052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >>> [  424.377067] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>>
> >>
> >> I'm assuming we've exhausted our options for now. It seems probable this
> >> model card (ExpressCard/54) never worked in Linux to begin with. I
> >> looked over the forum posts from those claiming they had it operational
> >> (in 2.6 kernel), but it was for the PCI-E version. I greatly appreciate
> >> your assistance with this. Thank you.
> >
> > Yes, some PCI-e version has worked, I personally tested it once.
> > But yours is apparently a different one, and we finally go back to the
> > starting point again.
> >
> > What you need to do from now on is to analyze why the codec probe
> > fails.  It failed even with single_cmd mode.  This is strange, but it
> > might be that the board is never 100% compliant, so it might not
> > support that mode.
> >
> > There are some workarounds done specific to the Creative devices.  For
> > example, azx_init_cmd_io() in hda_controller.c has a special handling
> > to set RIRB interrupt count to 0xc0.  I guess this needs to be set
> > normally.  That is, disable the following if () check, and run always
> > azx_writew(chip, RINTCNT, 1) instead:
> >
> > 	if (chip->driver_caps & AZX_DCAPS_CTX_WORKAROUND)
> > 		azx_writew(chip, RINTCNT, 0xc0);
> > 	else
> > 		azx_writew(chip, RINTCNT, 1);
> 
> This modification alone produced the same complaint. These are the edits 
> I made...
> 
> 	/* set N=1, get RIRB response interrupt for new entry */
> 	//if (chip->driver_caps & AZX_DCAPS_CTX_WORKAROUND)
> 		//azx_writew(chip, RINTCNT, 0xc0);
> 	//else
> 	azx_writew(chip, RINTCNT, 1);
> 
> >
> > There is another workaround in azx_pcm_prepare() for the capture
> > streams, but this is irrelevant as of now -- we're concentrating only
> > on the codec probe issue.
> >
> > If modifying above still doesn't work, you may try to force continuing
> > the probe by removing -EIO return from probe_codec() in
> > hda_controller.c.  That is, remove the following line from that
> > function:
> >
> > 	if (res == -1)
> > 		return -EIO;
> 
> This is the edit I made...
> 
> 	mutex_unlock(&chip->bus->cmd_mutex);
> 	//if (res == -1)
> 		//return -EIO;
> 	dev_dbg(chip->card->dev, "codec #%d probed OK\n", addr);
> 
> I assume I did this correctly, but here is the full hda_controller.c I 
> compiled if you would like to double check http://pastebin.com/fvVVA1Ew
> 
> >
> > Of course, it doesn't mean this would work, but we can see whether the
> > board reacts somehow better.
> >
> 
> Same complaint comes up.
> 
> [    7.600051] snd_hda_intel 0000:06:00.0: azx_get_response timeout, 
> switching to polling mode: last cmd=0x100f0000
> [    9.608050] snd_hda_intel 0000:06:00.0: azx_get_response timeout, 
> switching to single_cmd mode: last cmd=0x100f0000
> [    9.609976] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> [    9.611023] snd_hda_intel 0000:06:00.0: no codecs initialized
> [   10.776445] init: alsa-restore main process (1461) terminated with 
> status 19

Then there is little hope at this point.  We can analyze more, but
it's difficult without the hardware locally, or you'll need to have a
deeper knowledge of HD-audio.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-03-12  6:19                                     ` Takashi Iwai
@ 2015-03-13  2:41                                       ` Alnie
  0 siblings, 0 replies; 47+ messages in thread
From: Alnie @ 2015-03-13  2:41 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

>
> Then there is little hope at this point.  We can analyze more, but
> it's difficult without the hardware locally, or you'll need to have a
> deeper knowledge of HD-audio.
>
>
> Takashi
>

This card is fairly inexpensive (30 US dollars... 
http://amzn.com/B000QRV3NU). I could put down money towards new hardware 
that works, or if someone here has an ExpressCard/54 slot available, I 
would be happy to send one of these cards to you or someone else if they 
think it's worth a shot. I would also be willing to make an additional 
donation as well for time spent looking at it. I'm not expecting any 
guarantees, but it would be nice to know if this card can function under 
Linux.

-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  8:23                                           ` Takashi Iwai
@ 2015-02-25  8:30                                             ` Alnie
  0 siblings, 0 replies; 47+ messages in thread
From: Alnie @ 2015-02-25  8:30 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


>>>
>>> Overall, this look more like a problem of PCI core stuff.  Better to
>>> toss the issue to PCI people.
>>>
>>>
>>> Takashi
>>>
>>
>> I did alsa force-reload and the same error comes up. Do you know of a
>> good starting point for presenting PCI issues?
>
> Ask on linux-pci@vger.kernel.org ?
>
>
> Takashi
>

Excellent. Thank you for being so helpful!!! :)
-Alnie

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  8:21                                         ` Alnie
@ 2015-02-25  8:23                                           ` Takashi Iwai
  2015-02-25  8:30                                             ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-25  8:23 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Wed, 25 Feb 2015 00:21:15 -0800,
Alnie wrote:
> 
> 
> 
> On 02/25/2015 12:06 AM, Takashi Iwai wrote:
> > At Tue, 24 Feb 2015 23:55:25 -0800,
> > Alnie wrote:
> >>
> >> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
> >> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
> >> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
> >> slot(3): already powering off
> >> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
> >> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
> >> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
> >> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
> >> slot(3): already powering on
> >
> > pciehp reacted power off and on here, and...
> >
> >> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
> >> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
> >> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
> >> 00-00]), reconfiguring
> >> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
> >> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
> >
> > .... and something failed here for the PCI bridge device.
> >
> >> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
> >> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
> >> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
> >> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
> >> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
> >> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem 0x00000000-0x000fffff]
> >> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
> >> 0x00000000-0x000fffff 64bit pref]
> >> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 06
> >> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
> >> 0xf4300000-0xf43fffff]
> >> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
> >> 0xf4000000-0xf40fffff 64bit pref]
> >> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
> >> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem 0xf4300000-0xf4303fff]
> >> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
> >> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
> >> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem 0xf4300000-0xf43fffff]
> >> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
> >> 0xf4000000-0xf40fffff 64bit pref]
> >> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
> >> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io  0x2000-0x2fff]
> >> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
> >> 0xf4300000-0xf7efffff]
> >> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
> >> 0xf4000000-0xf40fffff 64bit pref]
> >> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
> >> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000 -> 0002)
> >> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
> >> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
> >> disabling it...
> >> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
> >
> > What if you once unload snd-hda-intel module and reload again while
> > keeping the card plugged?  I guess it still doesn't work, but just to
> > be sure...
> >
> > Overall, this look more like a problem of PCI core stuff.  Better to
> > toss the issue to PCI people.
> >
> >
> > Takashi
> >
> 
> I did alsa force-reload and the same error comes up. Do you know of a 
> good starting point for presenting PCI issues?

Ask on linux-pci@vger.kernel.org ?


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  8:06                                       ` Takashi Iwai
@ 2015-02-25  8:21                                         ` Alnie
  2015-02-25  8:23                                           ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-25  8:21 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel



On 02/25/2015 12:06 AM, Takashi Iwai wrote:
> At Tue, 24 Feb 2015 23:55:25 -0800,
> Alnie wrote:
>>
>> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
>> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
>> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on
>> slot(3): already powering off
>> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
>> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
>> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
>> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on
>> slot(3): already powering on
>
> pciehp reacted power off and on here, and...
>
>> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
>> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
>> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus
>> 00-00]), reconfiguring
>> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff]
>> under [bus 05-0c] (conflicts with (null) [bus 05-0c])
>
> .... and something failed here for the PCI bridge device.
>
>> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
>> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
>> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
>> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
>> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
>> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem 0x00000000-0x000fffff]
>> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem
>> 0x00000000-0x000fffff 64bit pref]
>> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 06
>> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem
>> 0xf4300000-0xf43fffff]
>> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem
>> 0xf4000000-0xf40fffff 64bit pref]
>> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
>> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem 0xf4300000-0xf4303fff]
>> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
>> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
>> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem 0xf4300000-0xf43fffff]
>> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem
>> 0xf4000000-0xf40fffff 64bit pref]
>> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
>> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io  0x2000-0x2fff]
>> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem
>> 0xf4300000-0xf7efffff]
>> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem
>> 0xf4000000-0xf40fffff 64bit pref]
>> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
>> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000 -> 0002)
>> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
>> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error;
>> disabling it...
>> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized
>
> What if you once unload snd-hda-intel module and reload again while
> keeping the card plugged?  I guess it still doesn't work, but just to
> be sure...
>
> Overall, this look more like a problem of PCI core stuff.  Better to
> toss the issue to PCI people.
>
>
> Takashi
>

I did alsa force-reload and the same error comes up. Do you know of a 
good starting point for presenting PCI issues?

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
       [not found]                                     ` <54ED7FED.9080600@yahoo.com>
@ 2015-02-25  8:06                                       ` Takashi Iwai
  2015-02-25  8:21                                         ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-25  8:06 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 24 Feb 2015 23:55:25 -0800,
Alnie wrote:
> 
> [ 2619.199658] pciehp 0000:00:1c.3:pcie04: Card not present on Slot(3)
> [ 2619.199666] pciehp 0000:00:1c.3:pcie04: slot(3): Link Down event
> [ 2619.199674] pciehp 0000:00:1c.3:pcie04: Link Down event ignored on 
> slot(3): already powering off
> [ 2619.199911] pci_bus 0000:06: busn_res: [bus 06-0c] is released
> [ 2620.757928] pciehp 0000:00:1c.3:pcie04: Card present on Slot(3)
> [ 2620.767950] pciehp 0000:00:1c.3:pcie04: slot(3): Link Up event
> [ 2620.767985] pciehp 0000:00:1c.3:pcie04: Link Up event ignored on 
> slot(3): already powering on

pciehp reacted power off and on here, and...

> [ 2620.876160] pci 0000:05:00.0: [1102:7006] type 01 class 0x060400
> [ 2620.876426] pci 0000:05:00.0: supports D1 D2
> [ 2620.876719] pci 0000:05:00.0: bridge configuration invalid ([bus 
> 00-00]), reconfiguring
> [ 2620.876928] pci_bus 0000:06: busn_res: can not insert [bus 06-ff] 
> under [bus 05-0c] (conflicts with (null) [bus 05-0c])

.... and something failed here for the PCI bridge device.

> [ 2620.876967] pci 0000:06:00.0: [1102:0009] type 00 class 0x040300
> [ 2620.877013] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
> [ 2620.877203] pci 0000:06:00.0: supports D1 D2
> [ 2620.877443] pci 0000:05:00.0: PCI bridge to [bus 06-ff]
> [ 2620.877462] pci 0000:05:00.0:   bridge window [io  0x0000-0x0fff]
> [ 2620.877474] pci 0000:05:00.0:   bridge window [mem 0x00000000-0x000fffff]
> [ 2620.877492] pci 0000:05:00.0:   bridge window [mem 
> 0x00000000-0x000fffff 64bit pref]
> [ 2620.877500] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 06
> [ 2620.877559] pci 0000:05:00.0: BAR 14: assigned [mem 
> 0xf4300000-0xf43fffff]
> [ 2620.877568] pci 0000:05:00.0: BAR 15: assigned [mem 
> 0xf4000000-0xf40fffff 64bit pref]
> [ 2620.877574] pci 0000:05:00.0: BAR 13: assigned [io  0x2000-0x2fff]
> [ 2620.877582] pci 0000:06:00.0: BAR 0: assigned [mem 0xf4300000-0xf4303fff]
> [ 2620.877595] pci 0000:05:00.0: PCI bridge to [bus 06]
> [ 2620.877603] pci 0000:05:00.0:   bridge window [io  0x2000-0x2fff]
> [ 2620.877618] pci 0000:05:00.0:   bridge window [mem 0xf4300000-0xf43fffff]
> [ 2620.877630] pci 0000:05:00.0:   bridge window [mem 
> 0xf4000000-0xf40fffff 64bit pref]
> [ 2620.877647] pcieport 0000:00:1c.3: PCI bridge to [bus 05-0c]
> [ 2620.877655] pcieport 0000:00:1c.3:   bridge window [io  0x2000-0x2fff]
> [ 2620.877667] pcieport 0000:00:1c.3:   bridge window [mem 
> 0xf4300000-0xf7efffff]
> [ 2620.877677] pcieport 0000:00:1c.3:   bridge window [mem 
> 0xf4000000-0xf40fffff 64bit pref]
> [ 2620.877990] pci 0000:05:00.0: enabling device (0000 -> 0003)
> [ 2620.878013] snd_hda_intel 0000:06:00.0: enabling device (0000 -> 0002)
> [ 2620.882747] azx_single_wait_for_response: 108 callbacks suppressed
> [ 2620.882753] snd_hda_intel 0000:06:00.0: Codec #1 probe error; 
> disabling it...
> [ 2620.887052] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> [ 2620.887058] snd_hda_intel 0000:06:00.0: no codecs initialized

What if you once unload snd-hda-intel module and reload again while
keeping the card plugged?  I guess it still doesn't work, but just to
be sure...

Overall, this look more like a problem of PCI core stuff.  Better to
toss the issue to PCI people.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  7:48                                   ` Takashi Iwai
@ 2015-02-25  8:01                                     ` Alnie
       [not found]                                     ` <54ED7FED.9080600@yahoo.com>
  1 sibling, 0 replies; 47+ messages in thread
From: Alnie @ 2015-02-25  8:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel



On 02/24/2015 11:48 PM, Takashi Iwai wrote:
> At Tue, 24 Feb 2015 23:32:53 -0800,
> Alnie wrote:
>>
>> On 02/24/2015 11:06 PM, Takashi Iwai wrote:
>>> At Tue, 24 Feb 2015 22:51:41 -0800,
>>> Alnie wrote:
>>>>
>>>>
>>>>
>>>> On 02/24/2015 10:28 PM, Takashi Iwai wrote:
>>>>> [Please don't top-post]
>>>>>
>>>>> At Wed, 25 Feb 2015 04:37:18 +0000 (UTC),
>>>>> Alnie wrote:
>>>>>>
>>>>>> I've just submitted this...
>>>>>> http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497
>>>>>>
>>>>>> Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?
>>>>>
>>>>> What kind of card is it, BTW?  When looking at your original post, I
>>>>> noticed that the card provides its own PCI bridge and there is no
>>>>> kernel driver binding to it.
>>>>>
>>>>>     05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
>>>>>           Physical Slot: 3
>>>>>           Flags: bus master, fast devsel, latency 0
>>>>>           Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
>>>>>           Memory behind bridge: f4300000-f43fffff
>>>>>           Capabilities: [50] Power Management version 3
>>>>>           Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
>>>>>           Capabilities: [80] Subsystem: Creative Labs Device 0040
>>>>>           Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
>>>>>           Capabilities: [100] Advanced Error Reporting
>>>>>
>>>>>     06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>>>>>           Subsystem: Creative Labs SB1040
>>>>>           Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
>>>>>           Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
>>>>>           Capabilities: [dc] Power Management version 3
>>>>>           Kernel driver in use: snd_hda_intel
>>>>>
>>>>>
>>>>> Takashi
>>>>> _______________________________________________
>>>>> Alsa-devel mailing list
>>>>> Alsa-devel@alsa-project.org
>>>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>>>
>>>>
>>>> it's an expresscard 54 audio card. more details...
>>>> http://www.notebookreview.com/notebookreview/creative-soundblaster-x-fi-xtreme-audio-for-notebook-review/
>>>
>>> OK.  Could you show the lspci -nv output, too?  Usually some pcie
>>> hotplug driver (either pcieport, shpchp, acpiphp, etc) should be bound
>>> to a PCI bridge device.  Check the kernel message.  You might see
>>> something related there...
>>>
>>>
>>> Takashi
>>>
>>
>> 00:1b.0 0403: 8086:293e (rev 03)
>> 	Subsystem: 17aa:20f2
>> 	Flags: bus master, fast devsel, latency 0, IRQ 17
>> 	Memory at fc420000 (64-bit, non-prefetchable) [size=16K]
>> 	Capabilities: [50] Power Management version 2
>> 	Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
>> 	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
>> 	Capabilities: [100] Virtual Channel
>> 	Capabilities: [130] Root Complex Link
>> 	Kernel driver in use: snd_hda_intel
>>
>> 00:1c.0 0604: 8086:2940 (rev 03) (prog-if 00 [Normal decode])
>> 	Flags: bus master, fast devsel, latency 0
>> 	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
>> 	I/O behind bridge: 00008000-00008fff
>> 	Memory behind bridge: c0000000-c01fffff
>> 	Prefetchable memory behind bridge: 00000000c0200000-00000000c03fffff
>> 	Capabilities: [40] Express Root Port (Slot+), MSI 00
>> 	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
>> 	Capabilities: [90] Subsystem: 17aa:20f3
>> 	Capabilities: [a0] Power Management version 2
>> 	Capabilities: [100] Virtual Channel
>> 	Capabilities: [180] Root Complex Link
>> 	Kernel driver in use: pcieport
>>
>> 00:1c.3 0604: 8086:2946 (rev 03) (prog-if 00 [Normal decode])
>> 	Flags: bus master, fast devsel, latency 0
>> 	Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
>> 	I/O behind bridge: 00002000-00002fff
>> 	Memory behind bridge: f4300000-f7efffff
>> 	Prefetchable memory behind bridge: 00000000f4000000-00000000f40fffff
>> 	Capabilities: [40] Express Root Port (Slot+), MSI 00
>> 	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
>> 	Capabilities: [90] Subsystem: 17aa:20f3
>> 	Capabilities: [a0] Power Management version 2
>> 	Capabilities: [100] Virtual Channel
>> 	Capabilities: [180] Root Complex Link
>> 	Kernel driver in use: pcieport
>>
>> 00:1c.4 0604: 8086:2948 (rev 03) (prog-if 00 [Normal decode])
>> 	Flags: bus master, fast devsel, latency 0
>> 	Bus: primary=00, secondary=0d, subordinate=14, sec-latency=0
>> 	I/O behind bridge: 00003000-00003fff
>> 	Memory behind bridge: fa000000-fbffffff
>> 	Prefetchable memory behind bridge: 00000000f4100000-00000000f41fffff
>> 	Capabilities: [40] Express Root Port (Slot+), MSI 00
>> 	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
>> 	Capabilities: [90] Subsystem: 17aa:20f3
>> 	Capabilities: [a0] Power Management version 2
>> 	Capabilities: [100] Virtual Channel
>> 	Capabilities: [180] Root Complex Link
>> 	Kernel driver in use: pcieport
>
> Doesn't contain your sound card.  Please give the full output after
> plugging the card.  (Better to run "lspci -nvk")
>
>> [    0.476508] pcieport 0000:00:1c.0: irq 24 for MSI/MSI-X
>> [    0.476709] pcieport 0000:00:1c.3: irq 25 for MSI/MSI-X
>> [    0.476901] pcieport 0000:00:1c.4: irq 26 for MSI/MSI-X
>> [    0.477063] pcieport 0000:00:1c.0: Signaling PME through PCIe PME
>> interrupt
>> [    0.477140] pcieport 0000:00:1c.3: Signaling PME through PCIe PME
>> interrupt
>> [    0.477316] pcieport 0000:00:1c.4: Signaling PME through PCIe PME
>> interrupt
>
> Also give the full output of dmesg after plugging.
>
>
> Takashi
>

http://pastebin.com/66UE659K

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  7:32                                 ` Alnie
@ 2015-02-25  7:48                                   ` Takashi Iwai
  2015-02-25  8:01                                     ` Alnie
       [not found]                                     ` <54ED7FED.9080600@yahoo.com>
  0 siblings, 2 replies; 47+ messages in thread
From: Takashi Iwai @ 2015-02-25  7:48 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 24 Feb 2015 23:32:53 -0800,
Alnie wrote:
> 
> On 02/24/2015 11:06 PM, Takashi Iwai wrote:
> > At Tue, 24 Feb 2015 22:51:41 -0800,
> > Alnie wrote:
> >>
> >>
> >>
> >> On 02/24/2015 10:28 PM, Takashi Iwai wrote:
> >>> [Please don't top-post]
> >>>
> >>> At Wed, 25 Feb 2015 04:37:18 +0000 (UTC),
> >>> Alnie wrote:
> >>>>
> >>>> I've just submitted this...
> >>>> http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497
> >>>>
> >>>> Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?
> >>>
> >>> What kind of card is it, BTW?  When looking at your original post, I
> >>> noticed that the card provides its own PCI bridge and there is no
> >>> kernel driver binding to it.
> >>>
> >>>    05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> >>>          Physical Slot: 3
> >>>          Flags: bus master, fast devsel, latency 0
> >>>          Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> >>>          Memory behind bridge: f4300000-f43fffff
> >>>          Capabilities: [50] Power Management version 3
> >>>          Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> >>>          Capabilities: [80] Subsystem: Creative Labs Device 0040
> >>>          Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> >>>          Capabilities: [100] Advanced Error Reporting
> >>>
> >>>    06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> >>>          Subsystem: Creative Labs SB1040
> >>>          Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> >>>          Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> >>>          Capabilities: [dc] Power Management version 3
> >>>          Kernel driver in use: snd_hda_intel
> >>>
> >>>
> >>> Takashi
> >>> _______________________________________________
> >>> Alsa-devel mailing list
> >>> Alsa-devel@alsa-project.org
> >>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>>
> >>
> >> it's an expresscard 54 audio card. more details...
> >> http://www.notebookreview.com/notebookreview/creative-soundblaster-x-fi-xtreme-audio-for-notebook-review/
> >
> > OK.  Could you show the lspci -nv output, too?  Usually some pcie
> > hotplug driver (either pcieport, shpchp, acpiphp, etc) should be bound
> > to a PCI bridge device.  Check the kernel message.  You might see
> > something related there...
> >
> >
> > Takashi
> >
> 
> 00:1b.0 0403: 8086:293e (rev 03)
> 	Subsystem: 17aa:20f2
> 	Flags: bus master, fast devsel, latency 0, IRQ 17
> 	Memory at fc420000 (64-bit, non-prefetchable) [size=16K]
> 	Capabilities: [50] Power Management version 2
> 	Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
> 	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
> 	Capabilities: [100] Virtual Channel
> 	Capabilities: [130] Root Complex Link
> 	Kernel driver in use: snd_hda_intel
> 
> 00:1c.0 0604: 8086:2940 (rev 03) (prog-if 00 [Normal decode])
> 	Flags: bus master, fast devsel, latency 0
> 	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
> 	I/O behind bridge: 00008000-00008fff
> 	Memory behind bridge: c0000000-c01fffff
> 	Prefetchable memory behind bridge: 00000000c0200000-00000000c03fffff
> 	Capabilities: [40] Express Root Port (Slot+), MSI 00
> 	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> 	Capabilities: [90] Subsystem: 17aa:20f3
> 	Capabilities: [a0] Power Management version 2
> 	Capabilities: [100] Virtual Channel
> 	Capabilities: [180] Root Complex Link
> 	Kernel driver in use: pcieport
> 
> 00:1c.3 0604: 8086:2946 (rev 03) (prog-if 00 [Normal decode])
> 	Flags: bus master, fast devsel, latency 0
> 	Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
> 	I/O behind bridge: 00002000-00002fff
> 	Memory behind bridge: f4300000-f7efffff
> 	Prefetchable memory behind bridge: 00000000f4000000-00000000f40fffff
> 	Capabilities: [40] Express Root Port (Slot+), MSI 00
> 	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> 	Capabilities: [90] Subsystem: 17aa:20f3
> 	Capabilities: [a0] Power Management version 2
> 	Capabilities: [100] Virtual Channel
> 	Capabilities: [180] Root Complex Link
> 	Kernel driver in use: pcieport
> 
> 00:1c.4 0604: 8086:2948 (rev 03) (prog-if 00 [Normal decode])
> 	Flags: bus master, fast devsel, latency 0
> 	Bus: primary=00, secondary=0d, subordinate=14, sec-latency=0
> 	I/O behind bridge: 00003000-00003fff
> 	Memory behind bridge: fa000000-fbffffff
> 	Prefetchable memory behind bridge: 00000000f4100000-00000000f41fffff
> 	Capabilities: [40] Express Root Port (Slot+), MSI 00
> 	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> 	Capabilities: [90] Subsystem: 17aa:20f3
> 	Capabilities: [a0] Power Management version 2
> 	Capabilities: [100] Virtual Channel
> 	Capabilities: [180] Root Complex Link
> 	Kernel driver in use: pcieport

Doesn't contain your sound card.  Please give the full output after
plugging the card.  (Better to run "lspci -nvk")

> [    0.476508] pcieport 0000:00:1c.0: irq 24 for MSI/MSI-X
> [    0.476709] pcieport 0000:00:1c.3: irq 25 for MSI/MSI-X
> [    0.476901] pcieport 0000:00:1c.4: irq 26 for MSI/MSI-X
> [    0.477063] pcieport 0000:00:1c.0: Signaling PME through PCIe PME 
> interrupt
> [    0.477140] pcieport 0000:00:1c.3: Signaling PME through PCIe PME 
> interrupt
> [    0.477316] pcieport 0000:00:1c.4: Signaling PME through PCIe PME 
> interrupt

Also give the full output of dmesg after plugging.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  7:06                               ` Takashi Iwai
@ 2015-02-25  7:32                                 ` Alnie
  2015-02-25  7:48                                   ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-25  7:32 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 02/24/2015 11:06 PM, Takashi Iwai wrote:
> At Tue, 24 Feb 2015 22:51:41 -0800,
> Alnie wrote:
>>
>>
>>
>> On 02/24/2015 10:28 PM, Takashi Iwai wrote:
>>> [Please don't top-post]
>>>
>>> At Wed, 25 Feb 2015 04:37:18 +0000 (UTC),
>>> Alnie wrote:
>>>>
>>>> I've just submitted this...
>>>> http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497
>>>>
>>>> Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?
>>>
>>> What kind of card is it, BTW?  When looking at your original post, I
>>> noticed that the card provides its own PCI bridge and there is no
>>> kernel driver binding to it.
>>>
>>>    05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
>>>          Physical Slot: 3
>>>          Flags: bus master, fast devsel, latency 0
>>>          Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
>>>          Memory behind bridge: f4300000-f43fffff
>>>          Capabilities: [50] Power Management version 3
>>>          Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
>>>          Capabilities: [80] Subsystem: Creative Labs Device 0040
>>>          Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
>>>          Capabilities: [100] Advanced Error Reporting
>>>
>>>    06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>>>          Subsystem: Creative Labs SB1040
>>>          Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
>>>          Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
>>>          Capabilities: [dc] Power Management version 3
>>>          Kernel driver in use: snd_hda_intel
>>>
>>>
>>> Takashi
>>> _______________________________________________
>>> Alsa-devel mailing list
>>> Alsa-devel@alsa-project.org
>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>>
>>
>> it's an expresscard 54 audio card. more details...
>> http://www.notebookreview.com/notebookreview/creative-soundblaster-x-fi-xtreme-audio-for-notebook-review/
>
> OK.  Could you show the lspci -nv output, too?  Usually some pcie
> hotplug driver (either pcieport, shpchp, acpiphp, etc) should be bound
> to a PCI bridge device.  Check the kernel message.  You might see
> something related there...
>
>
> Takashi
>

00:1b.0 0403: 8086:293e (rev 03)
	Subsystem: 17aa:20f2
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at fc420000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [130] Root Complex Link
	Kernel driver in use: snd_hda_intel

00:1c.0 0604: 8086:2940 (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00008000-00008fff
	Memory behind bridge: c0000000-c01fffff
	Prefetchable memory behind bridge: 00000000c0200000-00000000c03fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: 17aa:20f3
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Root Complex Link
	Kernel driver in use: pcieport

00:1c.3 0604: 8086:2946 (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: f4300000-f7efffff
	Prefetchable memory behind bridge: 00000000f4000000-00000000f40fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: 17aa:20f3
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Root Complex Link
	Kernel driver in use: pcieport

00:1c.4 0604: 8086:2948 (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=0d, subordinate=14, sec-latency=0
	I/O behind bridge: 00003000-00003fff
	Memory behind bridge: fa000000-fbffffff
	Prefetchable memory behind bridge: 00000000f4100000-00000000f41fffff
	Capabilities: [40] Express Root Port (Slot+), MSI 00
	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [90] Subsystem: 17aa:20f3
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Root Complex Link
	Kernel driver in use: pcieport


[    0.476508] pcieport 0000:00:1c.0: irq 24 for MSI/MSI-X
[    0.476709] pcieport 0000:00:1c.3: irq 25 for MSI/MSI-X
[    0.476901] pcieport 0000:00:1c.4: irq 26 for MSI/MSI-X
[    0.477063] pcieport 0000:00:1c.0: Signaling PME through PCIe PME 
interrupt
[    0.477140] pcieport 0000:00:1c.3: Signaling PME through PCIe PME 
interrupt
[    0.477316] pcieport 0000:00:1c.4: Signaling PME through PCIe PME 
interrupt

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  6:51                             ` Alnie
@ 2015-02-25  7:06                               ` Takashi Iwai
  2015-02-25  7:32                                 ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-25  7:06 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 24 Feb 2015 22:51:41 -0800,
Alnie wrote:
> 
> 
> 
> On 02/24/2015 10:28 PM, Takashi Iwai wrote:
> > [Please don't top-post]
> >
> > At Wed, 25 Feb 2015 04:37:18 +0000 (UTC),
> > Alnie wrote:
> >>
> >> I've just submitted this...
> >> http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497
> >>
> >> Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?
> >
> > What kind of card is it, BTW?  When looking at your original post, I
> > noticed that the card provides its own PCI bridge and there is no
> > kernel driver binding to it.
> >
> >   05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> >         Physical Slot: 3
> >         Flags: bus master, fast devsel, latency 0
> >         Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> >         Memory behind bridge: f4300000-f43fffff
> >         Capabilities: [50] Power Management version 3
> >         Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> >         Capabilities: [80] Subsystem: Creative Labs Device 0040
> >         Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> >         Capabilities: [100] Advanced Error Reporting
> >
> >   06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> >         Subsystem: Creative Labs SB1040
> >         Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> >         Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> >         Capabilities: [dc] Power Management version 3
> >         Kernel driver in use: snd_hda_intel
> >
> >
> > Takashi
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
> 
> it's an expresscard 54 audio card. more details... 
> http://www.notebookreview.com/notebookreview/creative-soundblaster-x-fi-xtreme-audio-for-notebook-review/

OK.  Could you show the lspci -nv output, too?  Usually some pcie
hotplug driver (either pcieport, shpchp, acpiphp, etc) should be bound
to a PCI bridge device.  Check the kernel message.  You might see
something related there...


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  6:28                           ` Takashi Iwai
@ 2015-02-25  6:51                             ` Alnie
  2015-02-25  7:06                               ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-25  6:51 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel



On 02/24/2015 10:28 PM, Takashi Iwai wrote:
> [Please don't top-post]
>
> At Wed, 25 Feb 2015 04:37:18 +0000 (UTC),
> Alnie wrote:
>>
>> I've just submitted this...
>> http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497
>>
>> Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?
>
> What kind of card is it, BTW?  When looking at your original post, I
> noticed that the card provides its own PCI bridge and there is no
> kernel driver binding to it.
>
>   05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
>         Physical Slot: 3
>         Flags: bus master, fast devsel, latency 0
>         Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
>         Memory behind bridge: f4300000-f43fffff
>         Capabilities: [50] Power Management version 3
>         Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
>         Capabilities: [80] Subsystem: Creative Labs Device 0040
>         Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
>         Capabilities: [100] Advanced Error Reporting
>
>   06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>         Subsystem: Creative Labs SB1040
>         Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
>         Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
>         Capabilities: [dc] Power Management version 3
>         Kernel driver in use: snd_hda_intel
>
>
> Takashi
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

it's an expresscard 54 audio card. more details... 
http://www.notebookreview.com/notebookreview/creative-soundblaster-x-fi-xtreme-audio-for-notebook-review/

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-25  4:37                         ` Alnie
@ 2015-02-25  6:28                           ` Takashi Iwai
  2015-02-25  6:51                             ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-25  6:28 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

[Please don't top-post]

At Wed, 25 Feb 2015 04:37:18 +0000 (UTC),
Alnie wrote:
> 
> I've just submitted this... 
> http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497
> 
> Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?

What kind of card is it, BTW?  When looking at your original post, I
noticed that the card provides its own PCI bridge and there is no
kernel driver binding to it.

 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
       Physical Slot: 3
       Flags: bus master, fast devsel, latency 0
       Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
       Memory behind bridge: f4300000-f43fffff
       Capabilities: [50] Power Management version 3
       Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
       Capabilities: [80] Subsystem: Creative Labs Device 0040
       Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
       Capabilities: [100] Advanced Error Reporting

 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
       Subsystem: Creative Labs SB1040
       Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
       Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
       Capabilities: [dc] Power Management version 3
       Kernel driver in use: snd_hda_intel


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-24 21:30                       ` Alnie
@ 2015-02-25  4:37                         ` Alnie
  2015-02-25  6:28                           ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-25  4:37 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

I've just submitted this... 
http://www.alsa-project.org/db/?f=b49e28f0fdd3120b3c222b4ff377c3e290baf497

Although, I do agree the problem seems deeper than the driver. Could be something unique to my laptop/hardware. Although, as I've mentioned, the card has been working fine in Win 7. I double checked my BIOS and it's at latest version. Based on what I've seen, I feel a bit hopeless trying to reach out to Creative Labs about this. Do you think that would be a worthwhile endeavor?




----- Original Message -----
From: Alnie <alnieb@yahoo.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Sent: Tuesday, February 24, 2015 1:30 PM
Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi	Xtreme	Audio]	CA0110-IBG

According to this (http://www.alsa-project.org/main/index.php/Matrix:Vendor-Creative_Labs) it specifically states "X-Fi Xtreme Audio (PCIe) CA0110 [PCIE] does not work". Is this list up to date?



----- Original Message -----
From: Takashi Iwai <tiwai@suse.de>
To: Alnie <alnieb@yahoo.com>
Cc: alsa-devel@alsa-project.org
Sent: Tuesday, February 24, 2015 12:39 PM
Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi    Xtreme    Audio]    CA0110-IBG

At Tue, 24 Feb 2015 20:10:00 +0000 (UTC),
Alnie wrote:
> 
> Yes, it has been working for me in Windows 7.

Then I have no idea what's wrong.  You'd need to try contact with
Creative Labs people...


Takashi

> 
> 
> ----- Original Message -----
> From: Takashi Iwai <tiwai@suse.de>
> To: Alnie <alnieb@yahoo.com>
> Cc: alsa-devel@alsa-project.org
> Sent: Tuesday, February 24, 2015 11:52 AM
> Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme    Audio]    CA0110-IBG
> 
> At Tue, 24 Feb 2015 18:14:44 +0000 (UTC),
> Alnie wrote:
> > 
> > 
> > 
> > I've included the following to alsa-base.conf
> > 
> > options snd-hda-intel single_cmd=1
> > options snd-hda-intel enable_msi=0
> > 
> > rebooted and get the following messages back...
> > 
> > [    4.015887] hda-intel 0000:06:00.0: Using LPIB position fix
> > [    4.022650] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.022655] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> > [    4.029465] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.029649] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.029829] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030009] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030188] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030192] hda-intel 0000:06:00.0: no codecs initialized
> 
> If the single command mode doesn't work, it's probably a deeper
> problem than the sound driver.
> 
> Does the device work with other OS at all?
> 
> 
> 
> Takashi
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-24 20:39                     ` Takashi Iwai
@ 2015-02-24 21:30                       ` Alnie
  2015-02-25  4:37                         ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-24 21:30 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

According to this (http://www.alsa-project.org/main/index.php/Matrix:Vendor-Creative_Labs) it specifically states "X-Fi Xtreme Audio (PCIe) CA0110 [PCIE] does not work". Is this list up to date?



----- Original Message -----
From: Takashi Iwai <tiwai@suse.de>
To: Alnie <alnieb@yahoo.com>
Cc: alsa-devel@alsa-project.org
Sent: Tuesday, February 24, 2015 12:39 PM
Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi	Xtreme	Audio]	CA0110-IBG

At Tue, 24 Feb 2015 20:10:00 +0000 (UTC),
Alnie wrote:
> 
> Yes, it has been working for me in Windows 7.

Then I have no idea what's wrong.  You'd need to try contact with
Creative Labs people...


Takashi

> 
> 
> ----- Original Message -----
> From: Takashi Iwai <tiwai@suse.de>
> To: Alnie <alnieb@yahoo.com>
> Cc: alsa-devel@alsa-project.org
> Sent: Tuesday, February 24, 2015 11:52 AM
> Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme    Audio]    CA0110-IBG
> 
> At Tue, 24 Feb 2015 18:14:44 +0000 (UTC),
> Alnie wrote:
> > 
> > 
> > 
> > I've included the following to alsa-base.conf
> > 
> > options snd-hda-intel single_cmd=1
> > options snd-hda-intel enable_msi=0
> > 
> > rebooted and get the following messages back...
> > 
> > [    4.015887] hda-intel 0000:06:00.0: Using LPIB position fix
> > [    4.022650] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.022655] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> > [    4.029465] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.029649] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.029829] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030009] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030188] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030192] hda-intel 0000:06:00.0: no codecs initialized
> 
> If the single command mode doesn't work, it's probably a deeper
> problem than the sound driver.
> 
> Does the device work with other OS at all?
> 
> 
> 
> Takashi
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-24 20:10                   ` Alnie
@ 2015-02-24 20:39                     ` Takashi Iwai
  2015-02-24 21:30                       ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-24 20:39 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 24 Feb 2015 20:10:00 +0000 (UTC),
Alnie wrote:
> 
> Yes, it has been working for me in Windows 7.

Then I have no idea what's wrong.  You'd need to try contact with
Creative Labs people...


Takashi

> 
> 
> ----- Original Message -----
> From: Takashi Iwai <tiwai@suse.de>
> To: Alnie <alnieb@yahoo.com>
> Cc: alsa-devel@alsa-project.org
> Sent: Tuesday, February 24, 2015 11:52 AM
> Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme	Audio]	CA0110-IBG
> 
> At Tue, 24 Feb 2015 18:14:44 +0000 (UTC),
> Alnie wrote:
> > 
> > 
> > 
> > I've included the following to alsa-base.conf
> > 
> > options snd-hda-intel single_cmd=1
> > options snd-hda-intel enable_msi=0
> > 
> > rebooted and get the following messages back...
> > 
> > [    4.015887] hda-intel 0000:06:00.0: Using LPIB position fix
> > [    4.022650] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.022655] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> > [    4.029465] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.029649] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.029829] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030009] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030188] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> > [    4.030192] hda-intel 0000:06:00.0: no codecs initialized
> 
> If the single command mode doesn't work, it's probably a deeper
> problem than the sound driver.
> 
> Does the device work with other OS at all?
> 
> 
> 
> Takashi
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-24 19:52                 ` Takashi Iwai
@ 2015-02-24 20:10                   ` Alnie
  2015-02-24 20:39                     ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-24 20:10 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Yes, it has been working for me in Windows 7.


----- Original Message -----
From: Takashi Iwai <tiwai@suse.de>
To: Alnie <alnieb@yahoo.com>
Cc: alsa-devel@alsa-project.org
Sent: Tuesday, February 24, 2015 11:52 AM
Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme	Audio]	CA0110-IBG

At Tue, 24 Feb 2015 18:14:44 +0000 (UTC),
Alnie wrote:
> 
> 
> 
> I've included the following to alsa-base.conf
> 
> options snd-hda-intel single_cmd=1
> options snd-hda-intel enable_msi=0
> 
> rebooted and get the following messages back...
> 
> [    4.015887] hda-intel 0000:06:00.0: Using LPIB position fix
> [    4.022650] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.022655] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> [    4.029465] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.029649] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.029829] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.030009] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.030188] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.030192] hda-intel 0000:06:00.0: no codecs initialized

If the single command mode doesn't work, it's probably a deeper
problem than the sound driver.

Does the device work with other OS at all?



Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-24 18:14               ` Alnie
@ 2015-02-24 19:52                 ` Takashi Iwai
  2015-02-24 20:10                   ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-24 19:52 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Tue, 24 Feb 2015 18:14:44 +0000 (UTC),
Alnie wrote:
> 
> 
> 
> I've included the following to alsa-base.conf
> 
> options snd-hda-intel single_cmd=1
> options snd-hda-intel enable_msi=0
> 
> rebooted and get the following messages back...
> 
> [    4.015887] hda-intel 0000:06:00.0: Using LPIB position fix
> [    4.022650] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.022655] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> [    4.029465] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.029649] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.029829] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.030009] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.030188] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
> [    4.030192] hda-intel 0000:06:00.0: no codecs initialized

If the single command mode doesn't work, it's probably a deeper
problem than the sound driver.

Does the device work with other OS at all?


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-24 15:37             ` Takashi Iwai
@ 2015-02-24 18:14               ` Alnie
  2015-02-24 19:52                 ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-24 18:14 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel



I've included the following to alsa-base.conf

options snd-hda-intel single_cmd=1
options snd-hda-intel enable_msi=0

rebooted and get the following messages back...

[    4.015887] hda-intel 0000:06:00.0: Using LPIB position fix
[    4.022650] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
[    4.022655] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
[    4.029465] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
[    4.029649] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
[    4.029829] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
[    4.030009] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
[    4.030188] hda-intel 0000:06:00.0: get_response timeout: IRS=0x0
[    4.030192] hda-intel 0000:06:00.0: no codecs initialized


-Alnie

________________________________
From: Takashi Iwai <tiwai@suse.de>
To: Alnie <alnieb@yahoo.com> 
Cc: alsa-devel@alsa-project.org 
Sent: Tuesday, February 24, 2015 7:37 AM
Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio]    CA0110-IBG


At Sun, 22 Feb 2015 20:55:55 +0000 (UTC),
Alnie wrote:
> 
> Forgot to mention I also tried 3.12, 3.10, 3.4 and 3.0 but card was non-functional and not associated with any driver.

If you get the very same error (codec probe error), try single_cmd=1
module option.  And/or enable_msi=0.


Takashi

>       From: Alnie <alnieb@yahoo.com>
>  To: Takashi Iwai <tiwai@suse.de> 
> Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org> 
>  Sent: Sunday, February 22, 2015 12:47 PM
>  Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>    
> I can't seem to find a kernel that works with this card. Maybe the reports of this particular card working were misinterpretations on my part. Today I compiled kernel 3.13.11 and 3.14.1 (w/ no DKMS installed). With 3.13.11 the card is not associated with any driver. In 3.14.1 it is associated with a driver but I get the following...
> [    4.641296] hda-intel 0000:06:00.0: Using LPIB position fix[    5.656133] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> [   10.680052] hda-intel 0000:06:00.0: no codecs initialized
> Any advice? Thank you.
> -Alnie
> 
> 
> 
>  
> 
>      From: Takashi Iwai <tiwai@suse.de>
>  To: Alnie <alnieb@yahoo.com> 
> Cc: alsa-devel@alsa-project.org 
>  Sent: Monday, February 16, 2015 11:52 AM
>  Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>    
> At Mon, 16 Feb 2015 11:03:50 -0800,
> Alnie wrote:
> > 
> > By default the version of Mint I'm using has 3.13.0-37 loaded. I just 
> > tried some previous versions of the kernel (3.13.0-27, 3.13.0-32 & 
> > 3.13.0-36) and the same issues came up, although with -36, there was no 
> > output in dmesg in regards to probing DKMS, and no driver was 
> > associated. I also tried each kernel with the daily drivers removed as 
> > well, and the card was recognized but non functional (no driver 
> > associated). Also, in case hardware malfunction is considered, this card 
> > seems to work fine in windows for me. Thank you.
> 
> Then try the older kernels.  At best, build the kernel by yourself and
> avoid DKMS.  When you find any working version, you'll be asked for
> git bisection or a test patch, so the manual kernel build would be
> required in anyway.
> 
> 
> Takashi
> 
> > 
> > On 02/16/2015 08:05 AM, Takashi Iwai wrote:
> > > At Sun, 15 Feb 2015 13:33:55 -0800,
> > > Alnie wrote:
> > >> I am having a problem getting this card working in Mint 17.1 (64bit). I
> > >> have found reports from others around the net claiming to have this card
> > >> working (around 2010/2011 mostly). I also tried xubuntu with the same
> > >> results. On a fresh distro when I install the card, it is recognized but
> > >> isn't associated with any driver, if I install the 3.16 kernel or the
> > >> alsa-daily repo it becomes associated with a driver but I get the
> > >> following errors from dmesg...
> > >>
> > >> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
> > >> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> > >> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
> > >> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> > >> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> > >> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
> > >>
> > >> and here is my lspci output...
> > >>
> > >> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> > >>      Physical Slot: 3
> > >>      Flags: bus master, fast devsel, latency 0
> > >>      Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> > >>      Memory behind bridge: f4300000-f43fffff
> > >>      Capabilities: [50] Power Management version 3
> > >>      Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> > >>      Capabilities: [80] Subsystem: Creative Labs Device 0040
> > >>      Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> > >>      Capabilities: [100] Advanced Error Reporting
> > >>
> > >> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> > >>      Subsystem: Creative Labs SB1040
> > >>      Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> > >>      Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> > >>      Capabilities: [dc] Power Management version 3
> > >>      Kernel driver in use: snd_hda_intel
> > >>
> > >> thank you for any advice & feedback on this.
> > > Could you try 3.13 kernel or older once?  I have also another bug
> > > report indicating a similar problem (no codec found, but with a
> > > totally different system), and the reporter mentioned that the
> > > regression happened between 3.13 and 3.14.
> > >
> > >
> > > Takashi
> > > _______________________________________________
> > > Alsa-devel mailing list
> > > Alsa-devel@alsa-project.org
> > > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> 
> > 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> 
>    
> 
> [2  <text/html; UTF-8 (quoted-printable)>]
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-22 20:55           ` Alnie
@ 2015-02-24 15:37             ` Takashi Iwai
  2015-02-24 18:14               ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-24 15:37 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Sun, 22 Feb 2015 20:55:55 +0000 (UTC),
Alnie wrote:
> 
> Forgot to mention I also tried 3.12, 3.10, 3.4 and 3.0 but card was non-functional and not associated with any driver.

If you get the very same error (codec probe error), try single_cmd=1
module option.  And/or enable_msi=0.


Takashi

>       From: Alnie <alnieb@yahoo.com>
>  To: Takashi Iwai <tiwai@suse.de> 
> Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org> 
>  Sent: Sunday, February 22, 2015 12:47 PM
>  Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>    
> I can't seem to find a kernel that works with this card. Maybe the reports of this particular card working were misinterpretations on my part. Today I compiled kernel 3.13.11 and 3.14.1 (w/ no DKMS installed). With 3.13.11 the card is not associated with any driver. In 3.14.1 it is associated with a driver but I get the following...
> [    4.641296] hda-intel 0000:06:00.0: Using LPIB position fix[    5.656133] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
> [   10.680052] hda-intel 0000:06:00.0: no codecs initialized
> Any advice? Thank you.
> -Alnie
> 
> 
> 
>  
> 
>      From: Takashi Iwai <tiwai@suse.de>
>  To: Alnie <alnieb@yahoo.com> 
> Cc: alsa-devel@alsa-project.org 
>  Sent: Monday, February 16, 2015 11:52 AM
>  Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>    
> At Mon, 16 Feb 2015 11:03:50 -0800,
> Alnie wrote:
> > 
> > By default the version of Mint I'm using has 3.13.0-37 loaded. I just 
> > tried some previous versions of the kernel (3.13.0-27, 3.13.0-32 & 
> > 3.13.0-36) and the same issues came up, although with -36, there was no 
> > output in dmesg in regards to probing DKMS, and no driver was 
> > associated. I also tried each kernel with the daily drivers removed as 
> > well, and the card was recognized but non functional (no driver 
> > associated). Also, in case hardware malfunction is considered, this card 
> > seems to work fine in windows for me. Thank you.
> 
> Then try the older kernels.  At best, build the kernel by yourself and
> avoid DKMS.  When you find any working version, you'll be asked for
> git bisection or a test patch, so the manual kernel build would be
> required in anyway.
> 
> 
> Takashi
> 
> > 
> > On 02/16/2015 08:05 AM, Takashi Iwai wrote:
> > > At Sun, 15 Feb 2015 13:33:55 -0800,
> > > Alnie wrote:
> > >> I am having a problem getting this card working in Mint 17.1 (64bit). I
> > >> have found reports from others around the net claiming to have this card
> > >> working (around 2010/2011 mostly). I also tried xubuntu with the same
> > >> results. On a fresh distro when I install the card, it is recognized but
> > >> isn't associated with any driver, if I install the 3.16 kernel or the
> > >> alsa-daily repo it becomes associated with a driver but I get the
> > >> following errors from dmesg...
> > >>
> > >> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
> > >> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> > >> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
> > >> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> > >> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> > >> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
> > >>
> > >> and here is my lspci output...
> > >>
> > >> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> > >>      Physical Slot: 3
> > >>      Flags: bus master, fast devsel, latency 0
> > >>      Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> > >>      Memory behind bridge: f4300000-f43fffff
> > >>      Capabilities: [50] Power Management version 3
> > >>      Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> > >>      Capabilities: [80] Subsystem: Creative Labs Device 0040
> > >>      Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> > >>      Capabilities: [100] Advanced Error Reporting
> > >>
> > >> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> > >>      Subsystem: Creative Labs SB1040
> > >>      Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> > >>      Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> > >>      Capabilities: [dc] Power Management version 3
> > >>      Kernel driver in use: snd_hda_intel
> > >>
> > >> thank you for any advice & feedback on this.
> > > Could you try 3.13 kernel or older once?  I have also another bug
> > > report indicating a similar problem (no codec found, but with a
> > > totally different system), and the reporter mentioned that the
> > > regression happened between 3.13 and 3.14.
> > >
> > >
> > > Takashi
> > > _______________________________________________
> > > Alsa-devel mailing list
> > > Alsa-devel@alsa-project.org
> > > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> 
> > 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
> 
>    
> 
> [2  <text/html; UTF-8 (quoted-printable)>]
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-22 20:47         ` Alnie
@ 2015-02-22 20:55           ` Alnie
  2015-02-24 15:37             ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-22 20:55 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Forgot to mention I also tried 3.12, 3.10, 3.4 and 3.0 but card was non-functional and not associated with any driver.
      From: Alnie <alnieb@yahoo.com>
 To: Takashi Iwai <tiwai@suse.de> 
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org> 
 Sent: Sunday, February 22, 2015 12:47 PM
 Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
   
I can't seem to find a kernel that works with this card. Maybe the reports of this particular card working were misinterpretations on my part. Today I compiled kernel 3.13.11 and 3.14.1 (w/ no DKMS installed). With 3.13.11 the card is not associated with any driver. In 3.14.1 it is associated with a driver but I get the following...
[    4.641296] hda-intel 0000:06:00.0: Using LPIB position fix[    5.656133] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
[   10.680052] hda-intel 0000:06:00.0: no codecs initialized
Any advice? Thank you.
-Alnie



 

     From: Takashi Iwai <tiwai@suse.de>
 To: Alnie <alnieb@yahoo.com> 
Cc: alsa-devel@alsa-project.org 
 Sent: Monday, February 16, 2015 11:52 AM
 Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
   
At Mon, 16 Feb 2015 11:03:50 -0800,
Alnie wrote:
> 
> By default the version of Mint I'm using has 3.13.0-37 loaded. I just 
> tried some previous versions of the kernel (3.13.0-27, 3.13.0-32 & 
> 3.13.0-36) and the same issues came up, although with -36, there was no 
> output in dmesg in regards to probing DKMS, and no driver was 
> associated. I also tried each kernel with the daily drivers removed as 
> well, and the card was recognized but non functional (no driver 
> associated). Also, in case hardware malfunction is considered, this card 
> seems to work fine in windows for me. Thank you.

Then try the older kernels.  At best, build the kernel by yourself and
avoid DKMS.  When you find any working version, you'll be asked for
git bisection or a test patch, so the manual kernel build would be
required in anyway.


Takashi

> 
> On 02/16/2015 08:05 AM, Takashi Iwai wrote:
> > At Sun, 15 Feb 2015 13:33:55 -0800,
> > Alnie wrote:
> >> I am having a problem getting this card working in Mint 17.1 (64bit). I
> >> have found reports from others around the net claiming to have this card
> >> working (around 2010/2011 mostly). I also tried xubuntu with the same
> >> results. On a fresh distro when I install the card, it is recognized but
> >> isn't associated with any driver, if I install the 3.16 kernel or the
> >> alsa-daily repo it becomes associated with a driver but I get the
> >> following errors from dmesg...
> >>
> >> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
> >> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
> >> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>
> >> and here is my lspci output...
> >>
> >> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> >>      Physical Slot: 3
> >>      Flags: bus master, fast devsel, latency 0
> >>      Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> >>      Memory behind bridge: f4300000-f43fffff
> >>      Capabilities: [50] Power Management version 3
> >>      Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> >>      Capabilities: [80] Subsystem: Creative Labs Device 0040
> >>      Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> >>      Capabilities: [100] Advanced Error Reporting
> >>
> >> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> >>      Subsystem: Creative Labs SB1040
> >>      Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> >>      Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> >>      Capabilities: [dc] Power Management version 3
> >>      Kernel driver in use: snd_hda_intel
> >>
> >> thank you for any advice & feedback on this.
> > Could you try 3.13 kernel or older once?  I have also another bug
> > report indicating a similar problem (no codec found, but with a
> > totally different system), and the reporter mentioned that the
> > regression happened between 3.13 and 3.14.
> >
> >
> > Takashi
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


   

  
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-16 19:52       ` Takashi Iwai
@ 2015-02-22 20:47         ` Alnie
  2015-02-22 20:55           ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-22 20:47 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

I can't seem to find a kernel that works with this card. Maybe the reports of this particular card working were misinterpretations on my part. Today I compiled kernel 3.13.11 and 3.14.1 (w/ no DKMS installed). With 3.13.11 the card is not associated with any driver. In 3.14.1 it is associated with a driver but I get the following...
[    4.641296] hda-intel 0000:06:00.0: Using LPIB position fix[    5.656133] hda-intel 0000:06:00.0: Codec #1 probe error; disabling it...
[   10.680052] hda-intel 0000:06:00.0: no codecs initialized
Any advice? Thank you.
-Alnie



      From: Takashi Iwai <tiwai@suse.de>
 To: Alnie <alnieb@yahoo.com> 
Cc: alsa-devel@alsa-project.org 
 Sent: Monday, February 16, 2015 11:52 AM
 Subject: Re: [alsa-devel] Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
   
At Mon, 16 Feb 2015 11:03:50 -0800,
Alnie wrote:
> 
> By default the version of Mint I'm using has 3.13.0-37 loaded. I just 
> tried some previous versions of the kernel (3.13.0-27, 3.13.0-32 & 
> 3.13.0-36) and the same issues came up, although with -36, there was no 
> output in dmesg in regards to probing DKMS, and no driver was 
> associated. I also tried each kernel with the daily drivers removed as 
> well, and the card was recognized but non functional (no driver 
> associated). Also, in case hardware malfunction is considered, this card 
> seems to work fine in windows for me. Thank you.

Then try the older kernels.  At best, build the kernel by yourself and
avoid DKMS.  When you find any working version, you'll be asked for
git bisection or a test patch, so the manual kernel build would be
required in anyway.


Takashi

> 
> On 02/16/2015 08:05 AM, Takashi Iwai wrote:
> > At Sun, 15 Feb 2015 13:33:55 -0800,
> > Alnie wrote:
> >> I am having a problem getting this card working in Mint 17.1 (64bit). I
> >> have found reports from others around the net claiming to have this card
> >> working (around 2010/2011 mostly). I also tried xubuntu with the same
> >> results. On a fresh distro when I install the card, it is recognized but
> >> isn't associated with any driver, if I install the 3.16 kernel or the
> >> alsa-daily repo it becomes associated with a driver but I get the
> >> following errors from dmesg...
> >>
> >> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
> >> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
> >> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>
> >> and here is my lspci output...
> >>
> >> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> >>      Physical Slot: 3
> >>      Flags: bus master, fast devsel, latency 0
> >>      Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> >>      Memory behind bridge: f4300000-f43fffff
> >>      Capabilities: [50] Power Management version 3
> >>      Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> >>      Capabilities: [80] Subsystem: Creative Labs Device 0040
> >>      Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> >>      Capabilities: [100] Advanced Error Reporting
> >>
> >> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> >>      Subsystem: Creative Labs SB1040
> >>      Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> >>      Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> >>      Capabilities: [dc] Power Management version 3
> >>      Kernel driver in use: snd_hda_intel
> >>
> >> thank you for any advice & feedback on this.
> > Could you try 3.13 kernel or older once?  I have also another bug
> > report indicating a similar problem (no codec found, but with a
> > totally different system), and the reporter mentioned that the
> > regression happened between 3.13 and 3.14.
> >
> >
> > Takashi
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


  
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-16 19:03     ` Alnie
@ 2015-02-16 19:52       ` Takashi Iwai
  2015-02-22 20:47         ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-16 19:52 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Mon, 16 Feb 2015 11:03:50 -0800,
Alnie wrote:
> 
> By default the version of Mint I'm using has 3.13.0-37 loaded. I just 
> tried some previous versions of the kernel (3.13.0-27, 3.13.0-32 & 
> 3.13.0-36) and the same issues came up, although with -36, there was no 
> output in dmesg in regards to probing DKMS, and no driver was 
> associated. I also tried each kernel with the daily drivers removed as 
> well, and the card was recognized but non functional (no driver 
> associated). Also, in case hardware malfunction is considered, this card 
> seems to work fine in windows for me. Thank you.

Then try the older kernels.  At best, build the kernel by yourself and
avoid DKMS.  When you find any working version, you'll be asked for
git bisection or a test patch, so the manual kernel build would be
required in anyway.


Takashi

> 
> On 02/16/2015 08:05 AM, Takashi Iwai wrote:
> > At Sun, 15 Feb 2015 13:33:55 -0800,
> > Alnie wrote:
> >> I am having a problem getting this card working in Mint 17.1 (64bit). I
> >> have found reports from others around the net claiming to have this card
> >> working (around 2010/2011 mostly). I also tried xubuntu with the same
> >> results. On a fresh distro when I install the card, it is recognized but
> >> isn't associated with any driver, if I install the 3.16 kernel or the
> >> alsa-daily repo it becomes associated with a driver but I get the
> >> following errors from dmesg...
> >>
> >> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
> >> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
> >> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> >> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> >> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
> >>
> >> and here is my lspci output...
> >>
> >> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
> >>       Physical Slot: 3
> >>       Flags: bus master, fast devsel, latency 0
> >>       Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
> >>       Memory behind bridge: f4300000-f43fffff
> >>       Capabilities: [50] Power Management version 3
> >>       Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
> >>       Capabilities: [80] Subsystem: Creative Labs Device 0040
> >>       Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
> >>       Capabilities: [100] Advanced Error Reporting
> >>
> >> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
> >>       Subsystem: Creative Labs SB1040
> >>       Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
> >>       Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
> >>       Capabilities: [dc] Power Management version 3
> >>       Kernel driver in use: snd_hda_intel
> >>
> >> thank you for any advice & feedback on this.
> > Could you try 3.13 kernel or older once?  I have also another bug
> > report indicating a similar problem (no codec found, but with a
> > totally different system), and the reporter mentioned that the
> > regression happened between 3.13 and 3.14.
> >
> >
> > Takashi
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-16 16:05   ` Takashi Iwai
@ 2015-02-16 19:03     ` Alnie
  2015-02-16 19:52       ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-16 19:03 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

By default the version of Mint I'm using has 3.13.0-37 loaded. I just 
tried some previous versions of the kernel (3.13.0-27, 3.13.0-32 & 
3.13.0-36) and the same issues came up, although with -36, there was no 
output in dmesg in regards to probing DKMS, and no driver was 
associated. I also tried each kernel with the daily drivers removed as 
well, and the card was recognized but non functional (no driver 
associated). Also, in case hardware malfunction is considered, this card 
seems to work fine in windows for me. Thank you.

On 02/16/2015 08:05 AM, Takashi Iwai wrote:
> At Sun, 15 Feb 2015 13:33:55 -0800,
> Alnie wrote:
>> I am having a problem getting this card working in Mint 17.1 (64bit). I
>> have found reports from others around the net claiming to have this card
>> working (around 2010/2011 mostly). I also tried xubuntu with the same
>> results. On a fresh distro when I install the card, it is recognized but
>> isn't associated with any driver, if I install the 3.16 kernel or the
>> alsa-daily repo it becomes associated with a driver but I get the
>> following errors from dmesg...
>>
>> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
>> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
>> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
>> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
>> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
>> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
>>
>> and here is my lspci output...
>>
>> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
>>       Physical Slot: 3
>>       Flags: bus master, fast devsel, latency 0
>>       Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
>>       Memory behind bridge: f4300000-f43fffff
>>       Capabilities: [50] Power Management version 3
>>       Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
>>       Capabilities: [80] Subsystem: Creative Labs Device 0040
>>       Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
>>       Capabilities: [100] Advanced Error Reporting
>>
>> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>>       Subsystem: Creative Labs SB1040
>>       Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
>>       Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
>>       Capabilities: [dc] Power Management version 3
>>       Kernel driver in use: snd_hda_intel
>>
>> thank you for any advice & feedback on this.
> Could you try 3.13 kernel or older once?  I have also another bug
> report indicating a similar problem (no codec found, but with a
> totally different system), and the reporter mentioned that the
> regression happened between 3.13 and 3.14.
>
>
> Takashi
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Re: Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
  2015-02-15 21:33 ` Alnie
@ 2015-02-16 16:05   ` Takashi Iwai
  2015-02-16 19:03     ` Alnie
  0 siblings, 1 reply; 47+ messages in thread
From: Takashi Iwai @ 2015-02-16 16:05 UTC (permalink / raw)
  To: Alnie; +Cc: alsa-devel

At Sun, 15 Feb 2015 13:33:55 -0800,
Alnie wrote:
> 
> I am having a problem getting this card working in Mint 17.1 (64bit). I
> have found reports from others around the net claiming to have this card
> working (around 2010/2011 mostly). I also tried xubuntu with the same
> results. On a fresh distro when I install the card, it is recognized but
> isn't associated with any driver, if I install the 3.16 kernel or the
> alsa-daily repo it becomes associated with a driver but I get the
> following errors from dmesg...
> 
> [    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
> [    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> [    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
> [    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
> [    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
> [    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized
> 
> and here is my lspci output...
> 
> 05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
>      Physical Slot: 3
>      Flags: bus master, fast devsel, latency 0
>      Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
>      Memory behind bridge: f4300000-f43fffff
>      Capabilities: [50] Power Management version 3
>      Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
>      Capabilities: [80] Subsystem: Creative Labs Device 0040
>      Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
>      Capabilities: [100] Advanced Error Reporting
> 
> 06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
>      Subsystem: Creative Labs SB1040
>      Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
>      Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
>      Capabilities: [dc] Power Management version 3
>      Kernel driver in use: snd_hda_intel
> 
> thank you for any advice & feedback on this.

Could you try 3.13 kernel or older once?  I have also another bug
report indicating a similar problem (no codec found, but with a
totally different system), and the reporter mentioned that the
regression happened between 3.13 and 3.14.


Takashi

^ permalink raw reply	[flat|nested] 47+ messages in thread

* Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
       [not found] <54E10F0C.7070802@yahoo.com>
@ 2015-02-15 21:33 ` Alnie
  2015-02-16 16:05   ` Takashi Iwai
  0 siblings, 1 reply; 47+ messages in thread
From: Alnie @ 2015-02-15 21:33 UTC (permalink / raw)
  To: alsa-devel

I am having a problem getting this card working in Mint 17.1 (64bit). I
have found reports from others around the net claiming to have this card
working (around 2010/2011 mostly). I also tried xubuntu with the same
results. On a fresh distro when I install the card, it is recognized but
isn't associated with any driver, if I install the 3.16 kernel or the
alsa-daily repo it becomes associated with a driver but I get the
following errors from dmesg...

[    3.713183] snd_hda_intel 0000:06:00.0: Probing card using HDA DKMS, version 0.201502151246~ubuntu14.04.1
[    3.720010] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
[    4.744035] snd_hda_intel 0000:06:00.0: Codec #1 probe error; disabling it...
[    4.748009] snd_hda_intel 0000:06:00.0: CORB reset timeout#1, CORBRP = 0
[    9.772075] snd_hda_intel 0000:06:00.0: no AFG or MFG node found
[    9.772100] snd_hda_intel 0000:06:00.0: no codecs initialized

and here is my lspci output...

05:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge (prog-if 00 [Normal decode])
     Physical Slot: 3
     Flags: bus master, fast devsel, latency 0
     Bus: primary=05, secondary=06, subordinate=0c, sec-latency=36
     Memory behind bridge: f4300000-f43fffff
     Capabilities: [50] Power Management version 3
     Capabilities: [60] MSI: Enable- Count=1/16 Maskable- 64bit+
     Capabilities: [80] Subsystem: Creative Labs Device 0040
     Capabilities: [90] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
     Capabilities: [100] Advanced Error Reporting

06:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
     Subsystem: Creative Labs SB1040
     Flags: bus master, fast Back2Back, medium devsel, latency 32, IRQ 19
     Memory at f4300000 (32-bit, non-prefetchable) [size=16K]
     Capabilities: [dc] Power Management version 3
     Kernel driver in use: snd_hda_intel

thank you for any advice & feedback on this.

^ permalink raw reply	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2015-03-13  2:41 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03  3:37 Issues w/ Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG Alnie
2015-03-03  6:10 ` Takashi Iwai
2015-03-03  7:22   ` Alnie
2015-03-03  7:48     ` Takashi Iwai
2015-03-03  9:21       ` Alnie
2015-03-03 21:51         ` Alnie
2015-03-03 21:58           ` Alnie
2015-03-03 22:07           ` Takashi Iwai
2015-03-04  2:12             ` Alnie
2015-03-04  8:00               ` Takashi Iwai
2015-03-04  9:01                 ` Alnie
2015-03-04  9:35                   ` Takashi Iwai
2015-03-06 22:38                     ` Alnie
2015-03-06 22:50                       ` Alnie
2015-03-06 23:31                     ` Alnie
2015-03-07  7:56                       ` Takashi Iwai
2015-03-07 16:28                         ` Alnie
2015-03-07 16:32                           ` Takashi Iwai
2015-03-07 18:06                             ` Alnie
2015-03-09 15:22                               ` Alnie
2015-03-09 16:00                                 ` Takashi Iwai
2015-03-12  3:59                                   ` Alnie
2015-03-12  6:19                                     ` Takashi Iwai
2015-03-13  2:41                                       ` Alnie
     [not found] <54E10F0C.7070802@yahoo.com>
2015-02-15 21:33 ` Alnie
2015-02-16 16:05   ` Takashi Iwai
2015-02-16 19:03     ` Alnie
2015-02-16 19:52       ` Takashi Iwai
2015-02-22 20:47         ` Alnie
2015-02-22 20:55           ` Alnie
2015-02-24 15:37             ` Takashi Iwai
2015-02-24 18:14               ` Alnie
2015-02-24 19:52                 ` Takashi Iwai
2015-02-24 20:10                   ` Alnie
2015-02-24 20:39                     ` Takashi Iwai
2015-02-24 21:30                       ` Alnie
2015-02-25  4:37                         ` Alnie
2015-02-25  6:28                           ` Takashi Iwai
2015-02-25  6:51                             ` Alnie
2015-02-25  7:06                               ` Takashi Iwai
2015-02-25  7:32                                 ` Alnie
2015-02-25  7:48                                   ` Takashi Iwai
2015-02-25  8:01                                     ` Alnie
     [not found]                                     ` <54ED7FED.9080600@yahoo.com>
2015-02-25  8:06                                       ` Takashi Iwai
2015-02-25  8:21                                         ` Alnie
2015-02-25  8:23                                           ` Takashi Iwai
2015-02-25  8:30                                             ` Alnie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.