Skip to contentSkip to conversation

Ali5451 on HP VT6200 notebook not working

DISCUSSION Rafal Dejewski 2 participants 10 messages Nov 21, 2002 – Nov 29, 2002

lore
Share & tools
lore
#0 lore raw

Hi,
I have HP vt6200 notebook. It has ALI5451 chip. I tried diffrent kernels 2.4.18, 2.4.19, 2.4.20rc1, 2.5.48 and alsa-driver 0.9rc4,rc5,rc6. The standard kernel trident module works OK on all kernels but alsa driver does not on any.
Before rc6 the snd-ali5451 module would just hang with "(initializing)" status. Now with rc6 or kernel 2.5.48 when I uncomment "#define ALI_DEBUG" this what dmesg is showing:
driver pci:ALI 5451: registering
kobject ALI 5451: registering
bus pci: add driver ALI 5451
probe ...
creating ...
PCI: IRQ 7 for device 00:04.0 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Found IRQ 7 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error.

This is from /proc/pci:
Bus 0, device 4, function 0:

    Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Co (rev 2).
      IRQ 7.
      Master Capable.  Latency=64.  Min Gnt=2.Max Lat=24.
      I/O at 0x1000 [0x10ff].
      Non-prefetchable 32 bit memory at 0xe0001000 [0xe0001fff].

Is there anything I can do to get this thing working?

Rafal

----------------------------------------------------------------------
Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f167c

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw

Hi,

At Thu, 21 Nov 2002 12:29:59 +0100,

Quoted 15 lines · Rafal Dejewski

Hi,
I have HP vt6200 notebook. It has ALI5451 chip. I tried diffrent kernels 2.4.18, 2.4.19, 2.4.20rc1, 2.5.48 and alsa-driver 0.9rc4,rc5,rc6. The standard kernel trident module works OK on all kernels but alsa driver does not on any.
Before rc6 the snd-ali5451 module would just hang with "(initializing)" status. Now with rc6 or kernel 2.5.48 when I uncomment "#define ALI_DEBUG" this what dmesg is showing:
driver pci:ALI 5451: registering
kobject ALI 5451: registering
bus pci: add driver ALI 5451
probe ...
creating ...
PCI: IRQ 7 for device 00:04.0 doesn't match PIRQ mask - try pci=usepirqmask

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

is this ok?

Quoted 6 lines

PCI: Found IRQ 7 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error.

it looks like the driver failed the reset of ac97 codec. the attached patch will let the driver continue after the error. please let me know whether it works for you.

ciao,

Takashi

#2 lore raw
Quoted 20 lines · Takashi Iwai

Hi,

At Thu, 21 Nov 2002 12:29:59 +0100,

Quoted 7 lines · Rafal Dejewski

Hi,
I have HP vt6200 notebook. It has ALI5451 chip. I tried diffrent kernels 2.4.18, 2.4.19, 2.4.20rc1, 2.5.48 and alsa-driver 0.9rc4,rc5,rc6. The standard kernel trident module works OK on all kernels but alsa driver does not on any.
Before rc6 the snd-ali5451 module would just hang with "(initializing)" status. Now with rc6 or kernel 2.5.48 when I uncomment "#define

Quoted 8 lines

ALI_DEBUG" this what dmesg is showing:
driver pci:ALI 5451: registering
kobject ALI 5451: registering
bus pci: add driver ALI 5451
probe ...
creating ...
PCI: IRQ 7 for device 00:04.0 doesn't match PIRQ mask - try pci=usepirqmask

Quoted 3 lines

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

is this ok?

Apparently adding this to doesn't change much, except that ali5451 now uses irq10 along with ati graphics chip, network card, wlan and usb.

Quoted 8 lines
Quoted 7 lines

PCI: Found IRQ 7 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error.

Quoted 4 lines

it looks like the driver failed the reset of ac97 codec. the attached patch will let the driver continue after the error. please let me know whether it works for you.

The patch you supplied did not help me. I tried to find the place where it fails. I applied attached patch to ali5451.c from 2.5.50 kernel. This is what I get in dmesg now:
probe ...
creating ...
PCI: Found IRQ 10 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
pci_dev is NULL after pci_find_device!
ALSA sound/pci/ali5451/ali5451.c:2160: ali create: chip init error.

Hope this helps,
Rafal

----------------------------------------------------------------------
Powiedz sobie dobre "Dzien dobry"!http://link.interia.pl/f168b

ali5451.c renamed from ali5451.c_org +5 -4
@@ -70,7 +70,7 @@
  *  Debug part definations
  */
 
-//#define ALI_DEBUG
+#define ALI_DEBUG
 
 #ifdef ALI_DEBUG
 #define snd_ali_printk(format, args...) printk(format, ##args);
@@ -529,7 +529,7 @@
 		udelay(5000);
 	}
 
-	return -1;
+	return 0;
 }
 
 #ifdef CODEC_RESET
@@ -2004,8 +2004,9 @@
 		pci_read_config_byte(pci_dev, 0x59, &temp);
 	
 		pci_dev = pci_find_device(0x10b9,0x7101, pci_dev);
-		if (pci_dev == NULL)
-                	return -1;
+		if (pci_dev == NULL) {
+			snd_ali_printk("pci_dev is NULL after pci_find_device!\n");
+                	return -1; }
 		pci_read_config_byte(pci_dev,0xb8,&temp);
 		temp |= 1 << 6;
 		pci_write_config_byte(pci_dev, 0xB8, temp);
#3 lore raw

At Fri, 29 Nov 2002 10:53:15 +0100,

Quoted 12 lines · Rafal Dejewski
Quoted 8 lines
Quoted 7 lines

PCI: Found IRQ 7 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error.

Quoted 4 lines

it looks like the driver failed the reset of ac97 codec. the attached patch will let the driver continue after the error. please let me know whether it works for you.

Quoted 11 lines

The patch you supplied did not help me. I tried to find the place where it fails. I applied attached patch to ali5451.c from 2.5.50 kernel. This is what I get in dmesg now:
probe ...
creating ...
PCI: Found IRQ 10 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
pci_dev is NULL after pci_find_device!

ah, perhaps your chip has some different pci id? please check lspci -n whether a device 10b9:7101 exists.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

#4 lore raw
Quoted 5 lines · you

At Fri, 29 Nov 2002 10:53:15 +0100,

ah, perhaps your chip has some different pci id? please check lspci -n whether a device 10b9:7101 exists.

I think this is it! I should have noticed!
Here is mine lspci -vvn for this device:
00:04.0 Class 0401: 10b9:5451 (rev 02)
Subsystem: 103c:0027
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR+ <PERR+
Latency: 64 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 7
Region 0: I/O ports at 1000 [size=256]
Region 1: Memory at e0001000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

and just to confirm that it's really it:
00:04.0 Multimedia audio controller: Acer Laboratories Inc. [ALi] M5451 PCI AC-Link Controller Audio Device (rev 02)
Subsystem: Hewlett-Packard Company: Unknown device 0027

Can't wait to try your patch :)

Rafal

----------------------------------------------------------------------
Powiedz sobie dobre "Dzien dobry"!http://link.interia.pl/f168b

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

#5 lore raw

At Fri, 29 Nov 2002 11:19:40 +0100,

Quoted 10 lines · Rafal Dejewski
Quoted 5 lines · you

At Fri, 29 Nov 2002 10:53:15 +0100,

ah, perhaps your chip has some different pci id? please check lspci -n whether a device 10b9:7101 exists.

I think this is it! I should have noticed!
Here is mine lspci -vvn for this device:
00:04.0 Class 0401: 10b9:5451 (rev 02)

it's ok. this id must be there, too.
looking at the code, ali5451 driver access the following three pci devices:

10b9:5451 ali5451 main chip
10b9:1533 pci southbridge, used for ac97 codec
10b9:7107 power management controller (which you don't have..)

please check the latter two devices and whether you have different ones with the same functions.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

#6 lore raw
Quoted 8 lines · you

At Fri, 29 Nov 2002 11:19:40 +0100,

looking at the code, ali5451 driver access the following three pci devices:

10b9:5451 ali5451 main chip
10b9:1533 pci southbridge, used for ac97 codec
10b9:7107 power management controller (which you don't have..)

            ^^^^

Shouldn't that be 10b9:7101?

Quoted 3 lines

please check the latter two devices and whether you have different ones with the same functions.

Here is mine 'lspci -n':

0:00.0 Class 0600: 10b9:1671 (rev 02) 00:01.0 Class 0604: 10b9:5247 00:02.0 Class 0c03: 10b9:5237 (rev 03) 00:04.0 Class 0401: 10b9:5451 (rev 02) 00:06.0 Class 0680: 10b9:7101 00:07.0 Class 0601: 10b9:1533 00:08.0 Class 0200: 10ec:8139 (rev 10) 00:09.0 Class 0280: 1260:3873 (rev 01) 00:0a.0 Class 0607: 104c:ac50 (rev 02) 00:0b.0 Class 0780: 125d:2838 (rev 01) 00:0f.0 Class 0101: 10b9:5229 (rev c4) 01:00.0 Class 0300: 1002:4c59

Rafal

----------------------------------------------------------------------
Niedorobki w 2. czesci Harry Pottera >>> http://link.interia.pl/f169d

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

#7 lore raw

At Fri, 29 Nov 2002 11:47:25 +0100,

Quoted 4 lines · Rafal Dejewski
Quoted 2 lines · you

At Fri, 29 Nov 2002 11:19:40 +0100,

Quoted 8 lines
Quoted 6 lines

looking at the code, ali5451 driver access the following three pci devices:

10b9:5451 ali5451 main chip
10b9:1533 pci southbridge, used for ac97 codec
10b9:7107 power management controller (which you don't have..)

            ^^^^

Shouldn't that be 10b9:7101?

yep.

Quoted 5 lines
Quoted 3 lines

please check the latter two devices and whether you have different ones with the same functions.

Here is mine 'lspci -n':

Quoted 12 lines

0:00.0 Class 0600: 10b9:1671 (rev 02) 00:01.0 Class 0604: 10b9:5247 00:02.0 Class 0c03: 10b9:5237 (rev 03) 00:04.0 Class 0401: 10b9:5451 (rev 02) 00:06.0 Class 0680: 10b9:7101 00:07.0 Class 0601: 10b9:1533 00:08.0 Class 0200: 10ec:8139 (rev 10) 00:09.0 Class 0280: 1260:3873 (rev 01) 00:0a.0 Class 0607: 104c:ac50 (rev 02) 00:0b.0 Class 0780: 125d:2838 (rev 01) 00:0f.0 Class 0101: 10b9:5229 (rev c4) 01:00.0 Class 0300: 1002:4c59

ok, the devices are there. i think it's a bug of the driver, which assumes the order of devices from 1533 -> 7101.
please try the patch attached (to cvs).

ciao,

Takashi

#8 lore raw
Quoted 5 lines · you

ok, the devices are there. i think it's a bug of the driver, which assumes the order of devices from 1533 -> 7101.
please try the patch attached (to cvs).

That did it! Cool!
The oss emulation works great. I have some problems in mplayer and xmms in alsa native mode, but that might be another thing.

Rafal

----------------------------------------------------------------------
Powiedz sobie dobre "Dzien dobry"!http://link.interia.pl/f168b

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

#9 lore raw

At Fri, 29 Nov 2002 12:40:48 +0100,

Quoted 8 lines · Rafal Dejewski
Quoted 5 lines · you

ok, the devices are there. i think it's a bug of the driver, which assumes the order of devices from 1533 -> 7101.
please try the patch attached (to cvs).

That did it! Cool!

ok, now on cvs.
thanks for your help.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en