Re: [PARPORT] ECP mode transfers in 2.4.x kernels

From: Dave Strauss (dstrauss@mail.wm.sps.mot.com)
Date: Thu Aug 16 2001 - 13:42:36 EDT

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

    On Thu, 16 Aug 2001 18:09:12 +0100, Tim Waugh <twaugh@redhat.com> wrote:
    >
    > On Thu, Aug 16, 2001 at 12:52:16PM -0400, Dave Strauss wrote:
    >
    > [ ... ]
    >
    > > Third problem: the data transfer rate is still very slow. I'm
    > > expecting upwards [of] 400 Kbytes/sec but [...] getting only about 50
    > > Kbytes/sec. I'm not [sure] why this is so.
    >
    > Philip found this too I think. Is CONFIG_PARPORT_PC_FIFO enabled in
    > your kernel? Does 'dmesg' say that it's using DMA?
    >
    > [ ... ]
    >
    > Tim.
    > */
    >

    If the Redhat source RPM really *is* what got shipped,
    CONFIG_PARPORT_PC_FIFO not set:

    cd /usr/src/redhat/SOURCES/
    grep -n -e CONFIG_PARPORT_PC_FIFO *.config /dev/null
    kernel-2.4.2-alpha.config:86:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-alpha-jensen.config:86:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-alpha-smp.config:86:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-athlon.config:118:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-athlon-smp.config:118:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i386-BOOT.config:103:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i386.config:110:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i386-smp.config:110:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i586.config:116:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i586-smp.config:117:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i686.config:118:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i686-enterprise.config:121:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-i686-smp.config:119:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-sparc64.config:59:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-sparc64-smp.config:58:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-sparc.config:56:# CONFIG_PARPORT_PC_FIFO is not set
    kernel-2.4.2-sparc-smp.config:56:# CONFIG_PARPORT_PC_FIFO is not set

    I'll try setting it and try again. Which modules does this affect?
    Also, what should I expect to see in dmesg if it is set? Right now
    what I see is this:

    Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ...
    Winbond chip at EFER=0x2e key=0x87 devid=52 devrev=17 oldid=ff
    Winbond chip type 83627
    Winbond LPT Config: cr_30=01 60,61=0378 70=07 74=03, f0=3a
    Winbond LPT Config: active=yes, io=0x0378 irq=7, dma=3
    Winbond LPT Config: irqtype=pulsed low, high-Z, ECP fifo threshold=7
    Winbond LPT Config: Port mode=ECP
    SMSC Super-IO detection, now testing Ports 2F0, 370 ...
    0x378: FIFO is 16 bytes
    0x378: writeIntrThreshold is 9
    0x378: readIntrThreshold is 9
    0x378: PWord is 8 bits
    0x378: Interrupts are ISA-Pulses
    0x378: ECP port cfgA=0x10 cfgB=0x48
    0x378: ECP settings irq=7 dma=<none or set by other means>
    parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,COMPAT,EPP,ECP]
    parport0: irq 7 detected
    parport0: cpp_daisy: aa5500ff(98)
    parport0: assign_addrs: aa5500ff(98)
    parport0: No more nibble data (0 bytes)
    parport0: faking semi-colon
    parport0: Printer, GCC Elite 21
    lp0: using parport0 (polling).

    -- 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 : Thu Aug 16 2001 - 15:05:29 EDT