From nobody@FreeBSD.org  Fri Dec  2 02:28:50 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5D5BD16A44E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Dec 2005 02:28:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A210F43D5E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Dec 2005 02:28:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jB22SnWu047282
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 2 Dec 2005 02:28:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jB22SnsY047281;
	Fri, 2 Dec 2005 02:28:49 GMT
	(envelope-from nobody)
Message-Id: <200512020228.jB22SnsY047281@www.freebsd.org>
Date: Fri, 2 Dec 2005 02:28:49 GMT
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [em] Thinkpad T42 hangs when going to sleep when em is in kernel (regression)
X-Send-Pr-Version: www-2.3

>Number:         89825
>Category:       kern
>Synopsis:       [em] Thinkpad T42 hangs when going to sleep when em is in kernel (regression)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    glebius
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 02 02:30:02 GMT 2005
>Closed-Date:    Tue Jan 10 10:09:30 GMT 2006
>Last-Modified:  Tue Jan 10 10:09:30 GMT 2006
>Originator:     Jacques Garrigue
>Release:        6.0-RELEASE
>Organization:
Nagoya University
>Environment:
FreeBSD tet4.kurims.kyoto-u.ac.jp 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Fri Dec  2 10:11:23 JST 2005     garrigue@tet4.kurims.kyoto-u.ac.jp:/usr/src/sys/i386/compile/T42  i386

>Description:
The problem occurs on a Thinkpad T42, with Radeon M10 visual, Intel(R) PRO/1000 Network (em), Atheros 5212 wireless (ath).

When going to sleep under X11, using acpiconf -s3, the machine freezes.
The problem can be mitigated by setting hw.syscons.sc_no_suspend_vtswitch to 1, but I still observe freezes when going to sleep while accessing the disk.

The problem disappears completely when removing em from the kernel (no need for sc_no_suspend_vtswitch.)
It reappears when loading it as a kernel module.

There is no such problem using the generic kernel from 6.0-RC1 (which includes em)

The problem is still there in STABLE as of 2005-12-01.
>How-To-Repeat:
On a Thinkpad T42, go to sleep under X11 without setting sc_no_suspend_vtswitch.
This might occur on other laptops using the em driver.
>Fix:
workaround: remove em from the kernel.
>Release-Note:
>Audit-Trail:

From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Cc:  
Subject: Re: kern/89825: [em] Thinkpad T42 hangs when going to sleep when
 em is in kernel (regression)
Date: Fri, 02 Dec 2005 11:42:28 +0900 (JST)

 This should be clear from the context, but better spell it:
 Using a 6.0-RELEASE kernel without em, and loading if_em.ko copied
 from the 6.0-RC1 base distribution completely solves the problem for
 me.
 
 Jacques Garrigue
Responsible-Changed-From-To: freebsd-bugs->glebius 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Mon Dec 12 09:57:08 UTC 2005 
Responsible-Changed-Why:  
I am the person to blame for this regression. Let the PR remind me 
to fix it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89825 

From: Gleb Smirnoff <glebius@bestcom.ru>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: bug-followup@FreeBSD.org
Subject: kern/89825
Date: Wed, 14 Dec 2005 12:53:09 +0300

   Jacques,
 
   what is the hardware? pciconf -lv | grep -A ^em
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE

From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: glebius@bestcom.ru
Cc: bug-followup@freebsd.org
Subject: Re: kern/89825
Date: Wed, 14 Dec 2005 21:04:25 +0900 (JST)

 >   what is the hardware? pciconf -lv | grep -A ^em
 
 em0@pci2:1:0:   class=0x020000 card=0x05491014 chip=0x101e8086 rev=0x03 hdr=0x00
     vendor   = 'Intel Corporation'
     device   = '82540EP Gigabit Ethernet Controller (Mobile)'
     class    = network
     subclass = ethernet
 
 I wonder what kind of interaction triggers the problem, as George Hartzell
 with exactly the same em0 hardware (but different video hardware) has
 no trouble.
 
 Jacques
State-Changed-From-To: open->patched 
State-Changed-By: glebius 
State-Changed-When: Thu Dec 22 09:09:36 UTC 2005 
State-Changed-Why:  
The problem is workarounded in HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89825 
State-Changed-From-To: patched->closed 
State-Changed-By: glebius 
State-Changed-When: Tue Jan 10 10:09:12 UTC 2006 
State-Changed-Why:  
Merged to RELENG_6. 

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