From owner-freebsd-current Thu Apr 26 9:35:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from yog-sothoth.sgi.com (eugate.sgi.com [192.48.160.10]) by hub.freebsd.org (Postfix) with ESMTP id 2FBE237B422 for ; Thu, 26 Apr 2001 09:35:43 -0700 (PDT) (envelope-from gwk@hunter.munich.sgi.com) Received: from sgiger.munich.sgi.com (sgiger.munich.sgi.com [144.253.192.2]) by yog-sothoth.sgi.com (980305.SGI.8.8.8-aspam-6.2/980304.SGI-aspam-europe) via SMTP id SAA35059; Thu, 26 Apr 2001 18:35:25 +0200 (CEST) mail_from (gwk@hunter.munich.sgi.com) Received: from cuckoo.munich.sgi.com (cuckoo.munich.sgi.com [144.253.192.109]) by sgiger.munich.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id SAA21687; Thu, 26 Apr 2001 18:34:19 +0200 Received: from hunter.munich.sgi.com (hunter.munich.sgi.com [144.253.197.18]) by cuckoo.munich.sgi.com (SGI-8.9.3/8.9.3) with ESMTP id SAA08216; Thu, 26 Apr 2001 18:34:18 +0200 (CEST) Received: (from gwk@localhost) by hunter.munich.sgi.com (8.11.3/8.11.3) id f3QGZC910742; Thu, 26 Apr 2001 18:35:12 +0200 (CEST) (envelope-from gwk) Date: Thu, 26 Apr 2001 18:35:11 +0200 From: "Georg-W. Koltermann" To: current@freebsd.org Cc: Bruce Evans , Dag-Erling Smorgrav Subject: Re: lockup after resume Message-ID: <20010426183509.A10195@hunter.munich.sgi.com> Mail-Followup-To: current@freebsd.org, Bruce Evans , Dag-Erling Smorgrav References: <20010328212426.A32322@hunter.munich.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bde@zeta.org.au on Thu, Mar 29, 2001 at 07:19:20PM +1000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Mar 29, 2001 at 07:19:20PM +1000, Bruce Evans wrote: > On Wed, 28 Mar 2001, Georg-W. Koltermann wrote: > > > I am experiencing a strange lockup with -current as of about a week > > ago: It will suspend and resume, but after the resume the console is > > dead and the system hangs after a short while. > > > > When I type on the console after a resume, nothing is shown, neither > > echo nor command output. If I break into DDB, the output suddenly > > appears, just above the DDB prompt. I can continue to UNIX, type > > another command, again nothing visible. Breaking into DDB again shows > > what I typed, and the output. After a few round-trips of this sort > > the system locks up solidly. > > > > If I'm in X (XFree86-4.0.2) after the resume, the system will respond > > for a few seconds and then lock up. > > > > All this happens with the GENERIC kernel as well as my cardbus kernel. > > > > Should I assume the console needs resetting after the resume? How > > could I try a reset? I can't find anything obvious in vidcontrol(1) > > or kbdcontrol(1). > > Assume that the i8254 needs reinitializing. The console driver just uses > timeouts for screen updates. Timeouts depend on the i8254 generating > interrupts. When you break into ddb, the screen gets updated directly. I did some more debugging last night. I confirmed by a printf() that i8254_restore() actually *IS* being called during the resume. That routine is now in pmtimer.c, it used to be in apm.c in 4.2-R (and with 4.2 resume works fine on my laptop). I added an additional call to i8254_restore() to the end of apm_resume(), and I also called it directly from DDB--no effect. There must be some other problem, I guess. I figure there are a couple of laptop owners running current. Is suspend/resume working for all of you other guys, besides me and Dag-Erling? -- Regards, Georg. ---------------------------------------------------------------------- Who in the world needs 2000 Windows? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message