LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-20-2008, 11:25 PM   #1
kgabor
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
Cannot setup IRQs for onboard and PCI parport simultaneously in parport_pc


Hi All,

I'd like to use parallel ports in my box, one is onboard integrated, one is a port of a Lava parallel port card. I have to use IRQ-s for a custom built instruments.

If I load parport_pc without options, onboard port comes up with IRQ, and Lava card without IRQs. To use IRQs on my Lava card, I have to specify IO and IRQ parameters (IO, and IRQ is guessed from lspci -v). However, if IO/IRQ options are specified no pnp/ACPI activation is done for the onboard port even if I specify the good IO and IRQ numbers, thus onboard port remains dead. See logs below.

- Is there a way to "force" Pnp activation of onboard port when IO/IRQ options are given to parport_pc module ?

- Or is there a way to autodetect Lava port with IRQ enabled?

I have a K9N2G-Neo (MS-7511) mainboard, Lava dual parallel PCI card, x86_64 Debian etch, kernel custom compiled 2.6.26.5.

Thanks
Gabor Kovacs

onboard port OK, Lava port without IRQ
modprobe parport_pc
# ====================
pnp: the driver 'parport_pc' has been registered
parport_pc 00:06: current resources: before pnp_assign_resources
parport_pc 00:06: irq 7 flags 0x401
parport_pc 00:06: io 0x378-0x37f flags 0x101
parport_pc 00:06: assigning independent options
parport_pc 00:06: assigning dependent option 1
parport_pc 00:06: io 0 already set to 0x378-0x37f flags 0x101
parport_pc 00:06: irq 0 already set to 7 flags 0x401
parport_pc 00:06: current resources: after pnp_assign_resources
parport_pc 00:06: irq 7 flags 0x401
parport_pc 00:06: io 0x378-0x37f flags 0x101
parport_pc 00:06: current resources: pnp_start_dev
parport_pc 00:06: irq 7 flags 0x401
parport_pc 00:06: io 0x378-0x37f flags 0x101
parport_pc 00:06: set resources
parport_pc 00:06: encode 3 resources
parport_pc 00:06: encode io 0x378-0x37f decode 0x1
parport_pc 00:06: encode irq 7 edge high exclusive (2-byte descriptor)
parport_pc 00:06: encode dma -1 type 0x0 transfer 0x0 master 0
parport_pc 00:06: activated
parport_pc 00:06: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP]
parport_pc 00:06: driver attached
PCI parallel port detected: 1407:8002, I/O at 0xcc00(0x0)
parport1: PC-style at 0xcc00 [PCSPP,TRISTATE,EPP]
PCI parallel port detected: 1407:8003, I/O at 0xc880(0x0)
parport2: PC-style at 0xc880 [PCSPP,TRISTATE,EPP]

===

onboard port remains dead if IO/IRQ parameters are given to parport_pc:
modprobe parport_pc io=0x378 irq=7
=============================
parport 0x378 (WARNING): CTR: wrote 0x0c, read 0xff
parport 0x378 (WARNING): DATA: wrote 0xaa, read 0xff
parport 0x378: You gave this address, but there is probably no parallel port there!
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]

===

Lava port works with IRQ only if IO/IRQ specified:
modprobe parport_pc io=0xcc00,0xc880 irq=none,16
===================
parport0: PC-style at 0xcc00 [PCSPP,TRISTATE,EPP]
parport1: PC-style at 0xc880, irq 16 [PCSPP,TRISTATE,EPP]
 
Old 11-21-2008, 05:38 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
have you considered just putting a line into your /etc/rc.local to enable that working bit?
/sbin/modprobe parport_pc io=0xcc00,0xc880 irq=none,16

you may need to check that modprobe in sbin


EDIT

you could also try a different cheatcode = kernel boot parameter you input with root powers on the end of the grub kernel line
pci=routeirq

Last edited by aus9; 11-21-2008 at 05:48 PM.
 
  


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
Migrating from OnBoard Video to PCI gbport SUSE / openSUSE 6 04-30-2007 01:10 AM
PCI/Onboard video conflict joshuamink Linux - Newbie 5 02-26-2006 02:21 AM
PCI/Onboard video conflict joshuamink Linux - Hardware 2 02-24-2006 03:44 PM
Sound Device Not Working, Possible conflict between onboard/pci? Christopher Linux - Hardware 5 01-07-2005 03:57 PM
parport, parport_pc, parport_lowlevel modules loaded, now what?! RAYman2k1 Linux - Newbie 1 12-18-2003 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration