[PARPORT] Problems with parallel port io card, emu10k1, system freeze

From: Norbert Preining (preining@logic.at)
Date: Wed Oct 10 2001 - 15:57:33 EDT

  • Next message: Dave Strauss: "Re: [PARPORT] ECP mode transfers in 2.4.x kernels"

    Hi!

    I have the following problems with shared irqs/configuring an io-card:

    HW: socket-a mobo, pci io (2s,1p) card, sb live1024

    The soundblaster and the pci io card share the irq 5 (I have a lot
    other pci cards so no irq is free).

    The IO ports of the card are as follows:
    bc00-bc07 : PCI device 9710:9835
    c000-c007 : PCI device 9710:9835
    c400-c407 : PCI device 9710:9835
    c800-c807 : PCI device 9710:9835
    cc00-cc07 : PCI device 9710:9835
    d000-d00f : PCI device 9710:9835

    I can configure the serial ports mit
            setserial /dev/ttyS2 uart 16550A irq 5 port 0xbc00
            setserial /dev/ttyS3 uart 16550A irq 5 port 0xc000
    and they are working without any problems, even when sound is played
    on the emu10k1.

    No for the parallel port: I load parport_pc with
            modprobe parport_pc irq=7,none dma=3,none io=0x0378,0xc400
    which works, recognizes my printer on the second printer port (lp0 on
    parport1).

    But: If I load NOW the emu10k1 the system freezes.
    Same with emu10k1 loaded and modprobe parport_pc.

    It is always the same freeze, not even sysrq is working.

    Well, why is this so strange:
    With Windows98 it is working very well, irq5 for live1024 and the
    io card. Printing and playing music at the same time.

    What astonishes me is that according to the windows system information
    the ports of ttyS2 and ttyS3 and parport1 (lpt1) are different, namely
    the normal standard ports
            ttyS2 0x3e8
            ttyS3 0x2e8
            parport1 0x278
    In the sysinfo on windows there are io ports at these three points
    AND at the one listed above from the linux /proc/ioports.

    When I try on linux side to
            setserial /dev/ttyS2 uart 16550A irq 5 port 0x03e8
    I get
            ttyS2: LSR safety check engaged!
    and the ports are not working.

    Trying to
            modprobe parport_pc irq=7,none dma=3,none io=0x0378,0x0278
    gives me:
            parport 0x278 (WARNING): CTR: wrote 0x0c, read 0xff
            parport 0x278 (WARNING): DATA: wrote 0xaa, read 0xff
            parport 0x278: You gave this address, but there is probably no parallel port there!
            parport1: PC-style at 0x278 [PCSPP,TRISTATE]
            parport1: cpp_daisy: aa5500ff87(b8)
            parport1: assign_addrs: aa5500ff87(b8)
            parport1: cpp_daisy: aa5500ff87(b8)
            parport1: assign_addrs: aa5500ff87(b8)
    and printing is not working.

    Now I am at the end of my knowledge. Can someone explain me why this is
    happening and how I can fix it?

    Please: Cc: emails from the lkml to me too, thanks.

    Thanks and best wishes

    Norbert

    -----------------------------------------------------------------------
    Norbert Preining <preining@logic.at>
    University of Technology Vienna, Austria gpg DSA: 0x09C5B094
    -----------------------------------------------------------------------
    WRITTLE (vb.)

    Of a steel ball, to settle into a hole.

                            --- Douglas Adams, The Meaning of Liff

    -- 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 : Wed Oct 10 2001 - 16:00:30 EDT