From ernie!hm@ppp.net  Mon Dec  4 03:37:31 1995
Received: from casparc.ppp.net (casparc.ppp.net [194.64.12.35])
          by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id DAA22926
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 4 Dec 1995 03:37:23 -0800
Received: from ernie by casparc.ppp.net with uucp
	(Smail3.1.28.1 #1) id m0tMZ7q-000I5YC; Mon, 4 Dec 95 12:32 MET
Received: by ernie.altona.hamburg.com (Smail3.1.29.1 #3)
	id m0tMYhY-00001nC; Mon, 4 Dec 95 12:04 MET
Message-Id: <m0tMYhY-00001nC@ernie.altona.hamburg.com>
Date: Mon, 4 Dec 1995 12:04:52 +0100 (MET)
From: hm@altona.hamburg.com (Hellmuth Michaelis)
Reply-To: hm@altona.hamburg.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: APM resume not rx'd with 3Com589C in PCMCIA slot

>Number:         867
>Category:       i386
>Synopsis:       Notebook with APM and 3C589C in PCMCIA freezes after suspended
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nate
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec  4 03:40:02 PST 1995
>Closed-Date:    Mon Oct 21 21:50:34 PDT 1996
>Last-Modified:  Mon Oct 21 21:51:59 PDT 1996
>Originator:     Hellmuth Michaelis
>Release:        FreeBSD 2.0.5 / FreeBSD 2.1.0
>Organization:
none
>Environment:

	digital HiNote 433 notebook (supports APM version 1.1)

	compiled with APM suppport

	3Com 3C589C PCMCIA card installed in slot 0

	zp driver for the above card configured into the kernel
	
>Description:

	On a DEC HiNote 433 notebook APM functions fine as long as i don't
	plug a 3Com 3C589C into the PCMCIA slot - if i do, and want to
	APM-resume after a APM-suspend, the display is switched on but
	nothing more happenes.

	(compiling with APM_DEBUG defined: without the card i get the
	 suspend and the resume message, with the card i just get the
	 suspend message but no resume message; compiling with
	 APM_SLOWSTART=5 makes no difference if that matters)

>How-To-Repeat:

	On a DEC HiNote 433, compile a kernel with APM support and the
	"zp" driver and place the system into suspend mode by either
	executing zzz or close the cover. The machine will freeze and
	never wake up again - the power has to be cycled.

>Fix:
	
	In if_zp.c got from the 2.1 tree:

	     *      From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
	     *      $Id: if_zp.c,v 1.6.4.1 1995/08/19 23:27:14 davidg Exp $
	  
	delete the following statement on line 726 of function zp_suspend():

             pcic_power_off(sc->slot);

	When compiled with APM support, the power switching is completely
	controlled by the APM BIOS. When the system is suspended by the
	apm driver, it is done with a parameter specifying to handle ALL
	devices and this obviously interferes with switching the power off
	for a PCMCICA slot in the device specific suspend hook routine.
	
	After the deletion of the above mentioned statement the system
	can be suspended and resumed in the above described configuration
	without errors or other side effects.

hellmuth
-- 
Hellmuth Michaelis           hm@altona.hamburg.com              Hamburg, Europe
                                              (A)bort, (R)etry, (I)nstall BSD ?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->nate 
Responsible-Changed-By: gpalmer 
Responsible-Changed-When: Sun Jun 2 07:17:45 PDT 1996 
Responsible-Changed-Why:  
Nate is doing APM/PCMCIA integration work. 
State-Changed-From-To: open->analyzed 
State-Changed-By: nate 
State-Changed-When: Sun Jun 16 08:07:01 PDT 1996 
State-Changed-Why:  
Can you try using -current with the PC-CARD driver now?  if_zp.c is 
soon to be gone now that we have generic PC-CARD support in -current.  
if_ep.c contains suspend hooks, so it may work better. 

State-Changed-From-To: analyzed->closed 
State-Changed-By: nate 
State-Changed-When: Mon Oct 21 21:50:34 PDT 1996 
State-Changed-Why:  
The suggested patch was added to the if_zp driver a long time ago. 
>Unformatted:
