From rhh@nc.rr.com  Sun Apr  1 15:52:40 2001
Return-Path: <rhh@nc.rr.com>
Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55])
	by hub.freebsd.org (Postfix) with ESMTP id 175A837B71C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 Apr 2001 15:52:40 -0700 (PDT)
	(envelope-from rhh@nc.rr.com)
Received: from stealth.dummynet ([24.25.3.190]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.537.53);
	 Sun, 1 Apr 2001 18:49:42 -0400
Received: (from rhh@localhost)
	by stealth.dummynet (8.11.1/8.11.1) id f31MriK08441;
	Sun, 1 Apr 2001 18:53:44 -0400 (EDT)
	(envelope-from rhh)
Message-Id: <200104012253.f31MriK08441@stealth.dummynet>
Date: Sun, 1 Apr 2001 18:53:44 -0400 (EDT)
From: aa8vb@nc.rr.com
Reply-To: aa8vb@nc.rr.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: aa8vb@nc.rr.com
Subject: ppc driver doesn't work with port 0x3BC printer port
X-Send-Pr-Version: 3.2

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 01 16:00:01 PDT 2001
>Closed-Date:    Sun Apr 17 23:45:23 GMT 2005
>Last-Modified:  Sun Apr 17 23:45:23 GMT 2005
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Apr 17 23:05:28 GMT 2005 
State-Changed-Why:  

Does this still occur with more recent releases? It does sound like 
a hardware conflict or misconfiguration rather than a driver bug 
though. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26277 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Apr 17 23:44:49 GMT 2005 
State-Changed-Why:  

Mail to submitter bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26277 
>Unformatted:
