LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-09-2005, 03:03 PM   #1
Alucard243
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
Using joystick blocks network traffic


Hi,

It seems like my joystick and network conflict somehow!

When I play a game with a joystick, I can see the network traffic stops almost instantly in kppp statistics. When I close the game (assuming I didn't wait too long), the network traffic will start up again.

If I run the same games without the joystick disabled, the network traffic is fine. Even if my CPU usage is 99.9%, the network is fine.

I have Athlon AMD 3400+, using slamd64-10.1. My joystick is on /dev/input/js0 and is a Gravis Gamepad Pro connected to a game port provided by a SB Live! Value PCI sound card. I access the network by using ppp-on or kppp through a US Robotics 56K External FAX serial modem.

The games showing this problem include Snes9x and fceu (NES emulator).

I though it was a problem with CPU load at first, so I looked at /etc/ppp/options (tried turning off all kinds of compression), /etc/ppp/pppscript (modem init string), setserial, kernel options. Nothing helped.
 
Old 07-09-2005, 04:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Check the irqs and dma channels assigned to both your
modem and the USB hub. If they're the same, try changing
one of them in the BIOS.


Cheers,
Tink
 
Old 07-09-2005, 08:26 PM   #3
Alucard243
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Could the problem be USB related? The devices (modem, joystick) aren't using USB. My modem is connected with a serial cable, and the gamepad is connected to the PCI sound card.

The gameport/joystick is listed as this PCI device below . I tried setting latency with setpci to small values (8, then 2, then 0) thinking it would help stop hogging the system, but didn't make a difference.

Bus 0, device 7, function 1:
Class 0980: PCI device 1102:7002 (rev 8).
Master Capable. Latency=32.
I/O at 0xec00 [0xec07].

For some reason the gameport is never listed in /proc/interrupts, even when in use:
Perhaps it uses IRQ 185 like the soundcard it's connected to.

$ cat /proc/interrupts
CPU0
0: 888299 IO-APIC-edge timer
1: 3859 IO-APIC-edge i8042
4: 43980 IO-APIC-edge serial
8: 0 IO-APIC-edge rtc
9: 1 IO-APIC-level acpi
12: 43263 IO-APIC-edge i8042
14: 12587 IO-APIC-edge ide0
15: 4692 IO-APIC-edge ide1
177: 0 IO-APIC-level uhci_hcd, uhci_hcd, uhci_hcd, uhci_hcd, ehci_hcd
185: 8033 IO-APIC-level EMU10K1
193: 53739 IO-APIC-level nvidia
NMI: 131
LOC: 888118
ERR: 0
MIS: 0

$ cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Class 0600: PCI device 1106:3188 (rev 1).
Master Capable. Latency=8.
Prefetchable 32 bit memory at 0xd0000000 [0xdfffffff].
Bus 0, device 1, function 0:
Class 0604: PCI device 1106:b188 (rev 0).
Master Capable. No bursts. Min Gnt=14.
Bus 0, device 7, function 0:
Class 0401: PCI device 1102:0002 (rev 8).
IRQ 185.
Master Capable. Latency=32. Min Gnt=2.Max Lat=20.
I/O at 0xe800 [0xe81f].
Bus 0, device 7, function 1:
Class 0980: PCI device 1102:7002 (rev 8).
Master Capable. Latency=32.
I/O at 0xec00 [0xec07].
Bus 0, device 15, function 0:
Class 0101: PCI device 1106:0571 (rev 6).
IRQ 169.
Master Capable. Latency=32.
I/O at 0xfc00 [0xfc0f].
Bus 0, device 16, function 0:
Class 0c03: PCI device 1106:3038 (rev 129).
IRQ 177.
Master Capable. Latency=32.
I/O at 0xd800 [0xd81f].
Bus 0, device 16, function 1:
Class 0c03: PCI device 1106:3038 (rev 129).
IRQ 177.
Master Capable. Latency=32.
I/O at 0xdc00 [0xdc1f].
Bus 0, device 16, function 2:
Class 0c03: PCI device 1106:3038 (rev 129).
IRQ 177.
Master Capable. Latency=32.
I/O at 0xe000 [0xe01f].
Bus 0, device 16, function 3:
Class 0c03: PCI device 1106:3038 (rev 129).
IRQ 177.
Master Capable. Latency=32.
I/O at 0xe400 [0xe41f].
Bus 0, device 16, function 4:
Class 0c03: PCI device 1106:3104 (rev 134).
IRQ 177.
Master Capable. Latency=32.
Non-prefetchable 32 bit memory at 0xcffffe00 [0xcffffeff].
Bus 0, device 17, function 0:
Class 0601: PCI device 1106:3227 (rev 0).
Bus 0, device 24, function 0:
Class 0600: PCI device 1022:1100 (rev 0).
Bus 0, device 24, function 1:
Class 0600: PCI device 1022:1101 (rev 0).
Bus 0, device 24, function 2:
Class 0600: PCI device 1022:1102 (rev 0).
Bus 0, device 24, function 3:
Class 0600: PCI device 1022:1103 (rev 0).
Bus 1, device 0, function 0:
Class 0300: PCI device 10de:0330 (rev 161).
IRQ 193.
Master Capable. Latency=248. Min Gnt=5.Max Lat=1.
Non-prefetchable 32 bit memory at 0xce000000 [0xceffffff].
Prefetchable 32 bit memory at 0xb0000000 [0xbfffffff].
 
Old 07-09-2005, 09:41 PM   #4
Alucard243
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I rebuilt my kernel with preempt options and experimental PNP ACPI support turned off. No change

Also, I noticed that just doing "cat /dev/input/js0" is enough to halt all network traffic...

I think the serial port isn't being drained while the joystick is open.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When the network traffic increase over some limit network works interruptedly therrman Linux - Hardware 0 11-15-2005 02:23 AM
iptables blocks access to network leupi Linux - Networking 3 03-29-2005 09:23 AM
firewall blocks network printer suse 9.2 cups thegreatgatsby Suse/Novell 15 01-25-2005 09:41 PM
SuSE 9.2 - firewall blocks internal network cannabuz Linux - Networking 0 01-17-2005 08:34 AM
Weird: Intel Printserver Blocks All Traffic?! pnh73 Linux - Networking 4 07-23-2004 01:43 PM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration