From owner-freebsd-current@FreeBSD.ORG Mon Feb 9 18:58:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99AB01065675 for ; Mon, 9 Feb 2009 18:58:26 +0000 (UTC) (envelope-from c47g@gmx.at) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 886328FC23 for ; Mon, 9 Feb 2009 18:58:25 +0000 (UTC) (envelope-from c47g@gmx.at) Received: (qmail invoked by alias); 09 Feb 2009 18:58:17 -0000 Received: from cm56-152-15.liwest.at (EHLO bones) [86.56.152.15] by mail.gmx.net (mp056) with SMTP; 09 Feb 2009 19:58:17 +0100 X-Authenticated: #9978462 X-Provags-ID: V01U2FsdGVkX1/0iwFQ/P30MzOi9Zshu2QIkLxUSaPyslCgqV1Rmo dylVUecM38rjjn From: Christian Gusenbauer To: freebsd-current@freebsd.org Date: Mon, 9 Feb 2009 19:58:39 +0100 User-Agent: KMail/1.9.10 References: <200902021643.39862.c47g@gmx.at> <200902061231.46516.beech@freebsd.org> <200902091133.48838.jhb@freebsd.org> In-Reply-To: <200902091133.48838.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902091958.39480.c47g@gmx.at> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 Cc: akbeech@gmail.com Subject: Re: lpt stopped working X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 18:58:26 -0000 On Monday 09 February 2009, John Baldwin wrote: > On Friday 06 February 2009 4:31:46 pm Beech Rintoul wrote: > > On Thursday 05 February 2009 22:03:37 Beech Rintoul wrote: > > > On Wednesday 04 February 2009 05:14:10 John Baldwin wrote: > > > > On Monday 02 February 2009 10:43:39 am Christian Gusenbauer wrote: > > > > > Hi! > > > > > > > > > > Since the recent update (svn r187576) to the ppbus/ppc code my > > > > > printer > > > > > > > > stopped > > > > > > > > > working. Every request seems to hang forever in ppb_request_bus > > > > > waiting for ppb->ppc_lock (at least 'top' tells me that it's > > > > > hanging in state 'ppbreq'). > > > > > > > > Can you use procstat to get a stack trace of the hung thread? > > > > > > My printer is still showing "device busy" for lpt0 does anyone know > > > offhand when the changes were committed? I need to revert. > > > > There is regression somewhere in the ppbus code committed two weeks ago. > > I reverted back to previous code and lpt0 no longer reports "device busy" > > and printing is working again. > > Please help to debug this so we can have working lpt0 in 8.0. No one > tested the patches months ago when I first posted them, and if folks do not > test them now I will simply remove the driver before 8.0 ships. I no Mea culpa, too. As you sent your patches, I thought someone else will do the tests surely ... :-(. > longer have any hardware such that I can test this directly, so I am > depending on folks to test things I have asked for and report back. I > believe the last thing I asked for was for someone to do this when they lpt > was hung: > > Ok, 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 This is the output (unfortunately ppb_owner IS 0): (kgdb) p *(struct ppb_data *)ppbus_devclass->devices[0]->softc $1 = {class_id = 10, state = 1, error = 0, mode = 0, ppb_owner = 0x0, ppc_lock = 0xc56bfe7c, ppc_irq_res = 0xc573d5c0} Christian.