Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA disables NIC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Sat Sep 06, 2003 2:08 pm    Post subject: ALSA disables NIC Reply with quote

Hi.

I just upgraded to 2.6.0-test4-mm4 and now when I start ALSA, I get no sound... PLUS my ethernet card quits working!! I've never had a problem like this before.
I have an Aureal Vortex (8820) card, using kernel patches from here: http://imptech.dhs.org/~imptech/ I have an ISA NE2000 compatible NIC.
Everything is working fine until I start alsasound. If I try to play a sound using aplay I get:
Code:
Playing WAVE '/usr/kde/3.1/share/sounds/pop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: aplay.c:836: set_params: Assertion `err >= 0' failed.
Aborted by signal Aborted...

Anyway. The bigger problem (right now is that my NIC quits working). Here is the output of lsmod before:
Code:
localhost etc # lsmod
Module                  Size  Used by
agpgart                26568  0
nvidia               1700876  10
ne                      7488  0
8390                    8704  1 ne
crc32                   3808  1 8390
usblp                  11520  0
rtc                    10568  0
scanner                20064  0
hid                    30944  0
vfat                   13184  1
fat                    41088  1 vfat
uhci_hcd               29544  0
usbcore                96756  6 usblp,scanner,hid,uhci_hcd

... and after alsasound starts:
Code:
localhost etc # lsmod
Module                  Size  Used by
snd_au8820             36456  0
snd_ac97_codec         50532  1 snd_au8820
snd_pcm                85632  1 snd_au8820
snd_page_alloc          9220  1 snd_pcm
snd_timer              22368  1 snd_pcm
snd_mpu401_uart         6112  1 snd_au8820
snd_rawmidi            18560  1 snd_mpu401_uart
snd                    39908  6 snd_au8820,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi
agpgart                26568  0
nvidia               1700876  10
ne                      7488  0
8390                    8704  1 ne
crc32                   3808  1 8390
usblp                  11520  0
rtc                    10568  0
scanner                20064  0
hid                    30944  0
vfat                   13184  1
fat                    41088  1 vfat
uhci_hcd               29544  0
usbcore                96756  6 usblp,scanner,hid,uhci_hcd

Any help would be appreciated!!

RMC
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Sat Sep 06, 2003 3:25 pm    Post subject: Reply with quote

What happens if you just compile them inside the kernel and not as modules?
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Sat Sep 06, 2003 9:46 pm    Post subject: Reply with quote

nope :( nothing. Even compiled into the kernel, my NIC doesn't work while using my soundcard. I get some sort of "no such device or address" error. BTW, I have:
Code:
alias eth0 ne
options ne irq=5 io=0x0300
In my '/etc/modules.d/net'. This is really the only problem I'm having with 2.6... but it's a big one!! What about using OSS?? Should I try that instead??

RMC
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Sun Sep 07, 2003 3:10 am    Post subject: Reply with quote

MrChucho wrote:
What about using OSS?? Should I try that instead??

RMC


Are you using APIC? You could try to enable or disable it.

Don't you have some kind of IRQ conflict? Maybe changing IRQs for the network card could prevent this wierd problem.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Sun Sep 07, 2003 1:44 pm    Post subject: Reply with quote

I assumed it was some sort of IRQ conflict... however, I'm forcing my NIC to be on IRQ 5 (which, since I have an Asus P2B, is a requirement...) and after everything has booted, my sound card shows up on IRQ 10... very strange.

I will try messing with APIC. Thanks!

RMC
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Sun Sep 07, 2003 2:12 pm    Post subject: Reply with quote

You can get info about conflicts in /proc
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Sun Sep 07, 2003 3:50 pm    Post subject: Reply with quote

pilla wrote:
You can get info about conflicts in /proc

How??
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Sun Sep 07, 2003 3:52 pm    Post subject: Reply with quote

Ha ha! Well, I tried enabling ACPI, but now my nvidia card doesn't work!! Oh well, it didn't fix the NIC / aureal problem either... Any other ideas? Could my ALSA config be wrong?? I've looked around in '/etc/modules.d/alsa' and '/etc/modules.d/net'... where else can I look?? Where would relevant debug info or error message be reported?

RMC
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Sun Sep 07, 2003 4:46 pm    Post subject: Reply with quote

You could try development-sources instead of mm-sources

Maybe something in the patches is creating the problem
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Mon Sep 08, 2003 2:39 am    Post subject: Reply with quote

Bugger! Tried 'development-sources' instead of 'mm-sources'. No luck either. I just don't understand what happens... my NIC works fine, then I run '/etc/init.d/alsasound start' and the NIC quits working... but starts working again IMMEDIATELY after '/etc/init.d/alsasound stop' !! What in the world. I thought maybe it was an IRQ conflict but here's the contents of '/proc/interrupts' before:
Code:
localhost proc # cat interrupts
           CPU0
  0:   10767863          XT-PIC  timer
  1:       2315          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  5:       4771          XT-PIC  NE2000
  8:          2          XT-PIC  rtc
 11:     914874          XT-PIC  nvidia
 12:      10559          XT-PIC  uhci-hcd
 14:      29709          XT-PIC  ide0
 15:         17          XT-PIC  ide1
NMI:          0

and after loading the ALSA modules:
Code:

localhost proc # cat interrupts
           CPU0
  0:   10778406          XT-PIC  timer
  1:       2374          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  5:       4771          XT-PIC  NE2000
  8:          2          XT-PIC  rtc
 10:          0          XT-PIC  au8820
 11:     915774          XT-PIC  nvidia
 12:      10559          XT-PIC  uhci-hcd
 14:      29766          XT-PIC  ide0
 15:         17          XT-PIC  ide1
NMI:          0
ERR:          0
ERR:          0

I'm stumped!

RMC
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Mon Sep 08, 2003 2:46 am    Post subject: Reply with quote

There are other things that may conflict, like ioports and iomens.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Mon Sep 08, 2003 2:49 am    Post subject: Reply with quote

OK. I think I found the problem... but I don't know what it is exactly and I don't know how to fix it.... here is some of the output of '/proc/ioports' BEFORE loading ALSA:
Code:
b800-b807 : 0000:00:0a.0
d000-d007 : 0000:00:0a.0
and '/proc/iomem' as well:
Code:
d5800000-d581ffff : 0000:00:0a.0


Now, here's the same AFTER loading the ALSA modules:
Code:
b800-b807 : 0000:00:0a.0
b800-b807 : au8820
d000-d007 : 0000:00:0a.0
d000-d007 : au8820
and '/proc/iomem':
Code:
d5800000-d581ffff : 0000:00:0a.0
d5800000-d581ffff : au8820


Looks like a conflict to me!! But how do I solve it?? Something involving '/sbin/setpci' ??

RMC
Back to top
View user's profile Send private message
Minos
Apprentice
Apprentice


Joined: 09 May 2003
Posts: 177

PostPosted: Mon Sep 08, 2003 5:34 pm    Post subject: Re: ALSA disables NIC Reply with quote

MrChucho wrote:
Hi.

I just upgraded to 2.6.0-test4-mm4 and now when I start ALSA, I get no sound... PLUS my ethernet card quits working!! I've never had a problem like this before.
I have an Aureal Vortex (8820) card, using kernel patches from here: http://imptech.dhs.org/~imptech/ I have an ISA NE2000 compatible NIC.
Everything is working fine until I start alsasound. If I try to play a sound using aplay I get:
Code:
Playing WAVE '/usr/kde/3.1/share/sounds/pop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: aplay.c:836: set_params: Assertion `err >= 0' failed.
Aborted by signal Aborted...

Anyway. The bigger problem (right now is that my NIC quits working).

I'm afraid I don't have any advice about the network card, but I get a similar error from aplay using an 8830. I also use test4-mm4 with imptech's patch, but I got the same error with pfieffer-sources and the openvortex CVS. gdb tells me that err=-22, but I haven't been able to figure out just what that means. I've mucked around the source to aplay, alsa-lib, and the driver. I suspect it has something to do with DMA while setting buffer_time. I'm planning to make a post to the openvortex-dev mailing list, I'll reference this URL. I'll post here if anything comes of it.
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Mon Sep 08, 2003 6:25 pm    Post subject: Re: ALSA disables NIC Reply with quote

Minos wrote:
I'm planning to make a post to the openvortex-dev mailing list, I'll reference this URL. I'll post here if anything comes of it.

Thanks. Like I said, this is really the only problem I'm having with 2.6... but it's a BIG one! Have you had any luck using the "old" OSS driver?

RMC
Back to top
View user's profile Send private message
Minos
Apprentice
Apprentice


Joined: 09 May 2003
Posts: 177

PostPosted: Mon Sep 08, 2003 6:57 pm    Post subject: Reply with quote

I haven't tried the old OSS driver. I forgot to mention that I can play sound through the OSS-emulation, even if I can't through the ALSA API. Strange indeed. :?
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Mon Sep 08, 2003 7:22 pm    Post subject: Reply with quote

pilla wrote:
There are other things that may conflict, like ioports and iomens.
OK. I don't know why it would affect my NIC, but maybe it IS an IRQ conflict... In windows, my aureal is on IRQ 9, however, in linux it ends up on IRQ 10...
Quote:
Bus 0, device 10, function 0:
Multimedia audio controller: Aureal Semiconductor Vortex 1 (rev 2).
IRQ 10.
Master Capable. Latency=32. Min Gnt=2.Max Lat=12.
Non-prefetchable 32 bit memory at 0xd5800000 [0xd581ffff].
I/O at 0xd000 [0xd007].
I/O at 0xb800 [0xb807].
I am still at such a loss...
Could it be a PNP kernel param or something in my BIOS? Here's what I have as far as PNP in my kernel:
Quote:
CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set
# CONFIG_ISAPNP is not set
# CONFIG_PNPBIOS is not set
# CONFIG_BLK_DEV_IDEPNP is not set
# CONFIG_IP_PNP is not set

I'll try enabling them...

RMC
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Mon Sep 08, 2003 10:11 pm    Post subject: Reply with quote

I just don't understand why this isn't working... it is only when I load 'snd-au8820' that the NIC stops working... here's what I see from dmesg if I try to ping:
Code:
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Tx timed out, cable problem? TSR=0x43, ISR=0x0, t=471.
Hw. address read/write mismap 0
Hw. address read/write mismap 1
Hw. address read/write mismap 2
Hw. address read/write mismap 3
Hw. address read/write mismap 4
Hw. address read/write mismap 5
eth0: timeout waiting for Tx RDC.
Hw. address read/write mismap 0
Hw. address read/write mismap 1
Hw. address read/write mismap 2
Hw. address read/write mismap 3
Hw. address read/write mismap 4
Hw. address read/write mismap 5
eth0: trigger_send() called with the transmitter busy.
eth0: timeout waiting for Tx RDC.

and here's what I see in '/var/log/kernel/current':
Code:
Sep  8 16:15:25 [kernel] eth0: trigger_send() called with the transmitter busy.
Sep  8 16:15:27 [kernel] NETDEV WATCHDOG: eth0: transmit timed out
Sep  8 16:15:27 [kernel] eth0: timeout waiting for Tx RDC.
and
Code:
Sep  8 16:34:25 [kernel] eth0: mismatched read page pointers  0 vs 62.
Sep  8 16:34:26 [kernel] eth0: mismatched read page pointers  0 vs  1.
Sep  8 16:34:27 [kernel] eth0: mismatched read page pointers  0 vs  1.
Sep  8 16:34:28 [kernel] eth0: mismatched read page pointers  0 vs  1.
Sep  8 16:34:32 [kernel] eth0: mismatched read page pointers  0 vs  1.
Sep  8 16:34:38 [kernel] eth0: mismatched read page pointers  0 vs  1.
Sep  8 16:34:51 [kernel] eth0: mismatched read page pointers  0 vs  1.
Sep  8 16:34:53 [kernel] eth0: trigger_send() called with the transmitter busy.
Sep  8 16:34:54 [kernel] NETDEV WATCHDOG: eth0: transmit timed out
Sep  8 16:34:55 [kernel] eth0: timeout waiting for Tx RDC.


What the heck???

RMC
Back to top
View user's profile Send private message
MrChucho
n00b
n00b


Joined: 05 Feb 2003
Posts: 44
Location: Tulsa, OK

PostPosted: Tue Sep 09, 2003 1:53 am    Post subject: Reply with quote

Without 'snd-au8820' module loaded, 'dmesg':
Code:
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x300: MAC ADDRESS
eth0: NE2000 found at 0x300, using IRQ 5.


With 'snd-au8820' module loaded, 'dmesg':
Code:
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x300: not found (invalid signature be be).
ne.c: No NE*000 card found at i/o = 0x300

What gives?

RMC
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Wed Sep 24, 2003 10:23 pm    Post subject: Reply with quote

I got the same problem after I did start alsa, i don't know what gives, but i'm trying to compile the network support not as module and see what happenes...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum