From beech@FreeBSD.org  Sun Feb  8 04:41:54 2009
Return-Path: <beech@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 40C54106566B;
	Sun,  8 Feb 2009 04:41:54 +0000 (UTC)
	(envelope-from beech@FreeBSD.org)
Received: from bsdevel.akherb.com (bsdevel.akherb.com [208.86.224.193])
	by mx1.freebsd.org (Postfix) with ESMTP id 1DB5A8FC17;
	Sun,  8 Feb 2009 04:41:53 +0000 (UTC)
	(envelope-from beech@FreeBSD.org)
Received: from stargate.akherb.com (163-146-42-72.gci.net [72.42.146.163])
	by bsdevel.akherb.com (Postfix) with ESMTP id 2F4EF28E10E2;
	Sun,  8 Feb 2009 04:41:53 +0000 (UTC)
Message-Id: <1234068113.73571@stargate.akherb.com>
Date: Sat, 7 Feb 2009 19:41:53 -0900
From: beech <beech@FreeBSD.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Cc: beech@FreeBSD.org
Subject: SVN rev 187576 on 2009-01-21 23:10:06Z causes lpt0 to hang with "device busy"
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         131484
>Category:       kern
>Synopsis:       [lpt] SVN rev 187576 on 2009-01-21 23:10:06Z causes lpt0 to hang with "device busy"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 08 04:50:00 UTC 2009
>Closed-Date:    Thu Feb 12 14:08:51 UTC 2009
>Last-Modified:  Thu Feb 12 14:08:51 UTC 2009
>Originator:     beech@
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
FreeBSD 
>Environment:


System: FreeBSD 8.0-CURRENT #17: Thu Jan 29 13:05:21 AKST 2009
    root@stargate.akherb.com:/usr/obj/usr/src/sys/STARGATE



>Description:


The recent SVN rev 187576 on 2009-01-21 23:10:06Z causes printing to fail with /dev/lpt0 always reporting "device busy". Reverting fixes the problem. This box has a generic parrallel card and is attached to an HP-5n printer which has always worked.

dmesg:
pinnacle kernel: ppc1: <NetMos NM9805 1284 Printer port> port 0xe800-0xe807,0xe400-0xe407,0xe000-0xe007,0xd800-0xd807,0xd400-0xd407,0xd000-0xd00f irq 21 at device 3.0 on pci3
pinnacle kernel: ppc1: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
pinnacle kernel: ppc1: [GIANT-LOCKED]
pinnacle kernel: ppc1: [ITHREAD]
pinnacle kernel: ppbus0: <Parallel port bus> on ppc1
pinnacle kernel: ppbus0: IEEE1284 device found /NIBBLE/ECP/ECP_RLE
pinnacle kernel: ppbus0: Probing for PnP devices:
pinnacle kernel: ppbus0: <Hewlett-Packard HP LaserJet 5> PJL,MLC,PCL,PCLXL
pinnacle kernel: plip0: <PLIP network interface> on ppbus0
pinnacle kernel: plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
pinnacle kernel: lpt0: <Printer> on ppbus0
pinnacle kernel: lpt0: Interrupt-driven port
pinnacle kernel: ppi0: <Parallel I/O> on ppbus0


>How-To-Repeat:





>Fix:





>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Feb 8 06:28:39 UTC 2009 
Responsible-Changed-Why:  
Over to committer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131484 
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Tue Feb 10 13:49:51 UTC 2009 
State-Changed-Why:  
To submitter: 
Can you run kgdb against your running kernel (Just run 'kgdb' without any  
arguments) and do the following:  

(kgdb) p *(struct ppb_data *)ppbus_devclass->devices[0]->softc  

Assuming the ppb_owner is not 0, can you then do this:  

(kgdb) p *(device_t)((struct ppb_data *)ppbus_devclass->devices[0]->softc)->ppb_owner 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131484 
State-Changed-From-To: feedback->closed 
State-Changed-By: jhb 
State-Changed-When: Thu Feb 12 14:08:16 UTC 2009 
State-Changed-Why:  
This should be fixed by the most recent commit to lpt.c. 

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