Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2001 18:53:44 -0400 (EDT)
From:      aa8vb@nc.rr.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        aa8vb@nc.rr.com
Subject:   kern/26277: ppc driver doesn't work with port 0x3BC printer port
Message-ID:  <200104012253.f31MriK08441@stealth.dummynet>

next in thread | raw e-mail | index | archive | help

>Number:         26277
>Category:       kern
>Synopsis:       ppc driver doesn't work with port 0x3BC printer port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 01 16:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Randall Hopper
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
self
>Environment:

	Stock 4.2-RELEASE.  ASUS P55T2P4 motherboard (one of the previous
	FreeBSD-recommended boards).  Printer port on motherboard
	configurable in the system BIOS as port 0x3BC, 0x378, or 0x278, on
	interrupt 7 and with ECP and EPP enabled.

>Description:

        ppc driver works if parallel port is configured on:

            port 0x378, interrupt 7, ECP+EPP mode
            
        Does not work if configured as
	
            port 0x3BC, interrupt 7, ECP+EPP mode

>How-To-Repeat:

        Set printer to port 0x3BC, interrupt 7, ECP+EPP mode in BIOS, and
        configure kernel as:

           device           ppc0 at isa? port 0x3BC irq 7
           device           ppbus
           device           lpt 
        
        Boot probes yield:

           ppc0: <Parallel port> at port 0x3bc-0x3bf irq 7 on isa0
           ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
           lpt0: <Printer> on ppbus0
           lpt0: Interrupt-driven port

        even with the printer on.  Booting FreeBSD results in a spurious
        page ejected from the printer, and all attempts to print result in
        "/dev/lpt0: Device busy".

        However, move the BIOS printer port to 0x378 and reconfig the
        kernel with 0x378:

           device           ppc0 at isa? port 0x378 irq 7
           device           ppbus
           device           lpt 

        and the boot probes and printing tests show that the parallel port
        works fine:

           ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
           ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
           ppc0: FIFO with 16/16/16 bytes threshold
           ppbus0: IEEE1284 device found /NIBBLE
           Probing for PnP devices on ppbus0:
           ppbus0: <Hewlett-Packard HP LaserJet 4P> HP ENHANCED PCL5,PJL
           lpt0: <Printer> on ppbus0
           lpt0: Interrupt-driven port

        I'm reasonably sure this is not a port conflict because 3.4-RELEASE
        (what I just upgraded from) works fine with the printer port on
        0x3BC with the same interrupt and printer capability configuration.
        
>Fix:

	Fix not known.  Can't use a 0x3BC printer port.  Workaround is
	reconfigure hardware (if possible) to move the printer port to
	another port range.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104012253.f31MriK08441>