Re: [PARPORT] NetMos parallel port lost after unplugging of another PCI card

From: Norbert Preining (preining@logic.at)
Date: Tue Aug 05 2003 - 03:20:05 EDT

  • Next message: Tim Waugh: "[PARPORT] Re: libieee1284: access ecp control reg?"

    On Mon, 04 Aug 2003, Robert Heller wrote:
    > Just for an experiment, try configuring your BIOS to 'reserve' IRQ 12
    > for a (non-existent) 'legacy ISA' device. That is, what happens when
    > you effectively force the BIOS to assign IRQ 5 to the NetMos card? Do

    OK, interestingly, same effect.

    If I modprobe lp while the printer is running, kernel freeze, not even
    Sysrq is working. If Printer is turned of, lp/parport_pc/parport loads,
    but with the error messages from below.

    I checked with Windows and there we have
    COM3: 0xbc00 irq 12
    COM4 0xb800 irq 12
    par: 0xc000-0xc007 AND 0xc400-0xc407, no irq

    > things start working again? It *sounds* like there is some sort of
    > 'bug' in the parport driver that causes it to get confused when it sees
    > an IRQ of 12 associated with a parallel port. Or something like that.

    So maybe it is a bug introduced sometime ago? I haven't used the printer
    some time ;-)

    >
    > NP>
    > NP> On Mon, 21 Jul 2003, Norbert Preining wrote:
    > NP> > I have the following problem:
    > NP> >
    > NP> > I have:
    > NP> > 00:0c.0 Serial controller: NetMos Technology 222N-2 I/O Card (2S+1P) (rev 01) (prog-if 02 [16550])
    > NP> > Subsystem: LSI Logic / Symbios Logic: Unknown device 0012
    > NP> > Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
    > NP> > Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
    > NP> > Interrupt: pin A routed to IRQ 12
    > NP> > Region 0: I/O ports at b800 [size=8]
    > NP> > Region 1: I/O ports at bc00 [size=8]
    > NP> > Region 2: I/O ports at c000 [size=8]
    > NP> > Region 3: I/O ports at c400 [size=8]
    > NP> > Region 4: I/O ports at c800 [size=8]
    > NP> > Region 5: I/O ports at cc00 [size=16]
    > NP> >
    > NP> > I have:
    > NP> > options parport_pc irq=7,none dma=3,none io=0x0378,0xc400 io_hi=0x0778,0
    > NP> > options lp parport=1
    > NP> >
    > NP> > It was all working.
    > NP> >
    > NP> > The serial port where here:
    > NP> > /dev/ttyS2, UART: 16550A, Port: 0xbc00, IRQ: 5
    > NP> > /dev/ttyS3, UART: 16550A, Port: 0xc000, IRQ: 5
    > NP> >
    > NP> >
    > NP> > Then I took out a networking card and the IRQ of the NetMos card changed
    > NP> > to 12 (see above, before it was 5).
    > NP> >
    > NP> > Now the serial ports are:
    > NP> > /dev/ttyS2, UART: 16550A, Port: 0xbc00, IRQ: 12
    > NP> > /dev/ttyS3, UART: 16550A, Port: 0xc000, IRQ: 12
    > NP> > and working. But when I load the parport(_pc) modules with the above
    > NP> > parameters I get this in the syslog:
    > NP> >
    > NP> > parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
    > NP> > parport 0xc400 (WARNING): CTR: wrote 0x0c, read 0x0d
    > NP> > parport 0xc400 (WARNING): DATA: wrote 0xaa, read 0x00
    > NP> > parport 0xc400: You gave this address, but there is probably no parallel port there!
    > NP> > parport1: PC-style at 0xc400 [PCSPP,TRISTATE,EPP]
    > NP> >
    > NP> > Can you tell me where my parport is lost?
    > NP> >
    > NP> > Thanks a lot for any hint and tips!
    > NP> >
    > NP> > I am using debian/sid, linux-2.4.22-pre7.
    > NP>
    > NP> Best wishes
    > NP>
    > NP> Norbert
    > NP>
    > NP> -------------------------------------------------------------------------------
    > NP> Norbert Preining <preining AT logic DOT at> Technische Universität Wien
    > NP> gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
    > NP> -------------------------------------------------------------------------------
    > NP> BEALINGS
    > NP> The unsavoury parts of a moat which a knight has to pour out of his
    > NP> armour after being the victim of an araglin (q.v.). In medieval
    > NP> Flanders, soup made from bealins was a very slightly sought-after
    > NP> delicacy.
    > NP> --- Douglas Adams, The Meaning of Liff
    > NP>
    > NP> -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    > NP> -- with the single word "unsubscribe" in the body of the message. --
    > NP>
    > NP>
    >
    > \/
    > Robert Heller ||InterNet: heller@cs.umass.edu
    > http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com
    > http://www.deepsoft.com /\FidoNet: 1:321/153
    >
    >
    >
    >
    >
    >
    >
    >
    > -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    > -- with the single word "unsubscribe" in the body of the message. --

    Herzliche Grüße
    Best wishes

    Norbert

    -------------------------------------------------------------------------------
    Norbert Preining <preining AT logic DOT at> Technische Universität Wien
    gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
    -------------------------------------------------------------------------------
    `This must be Thursday,' said Arthur to himself, sinking
    low over his beer, `I never could get the hang of
    Thursdays.'
                     --- Arthur, on what was to be his last Thursday on Earth.
                     --- Douglas Adams, The Hitchhikers Guide to the Galaxy

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Tue Aug 05 2003 - 03:26:45 EDT