From owner-freebsd-stable@FreeBSD.ORG Sat Dec 3 18:37:05 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3249C16A41F; Sat, 3 Dec 2005 18:37:05 +0000 (GMT) (envelope-from hartzell@satchel.alerce.com) Received: from merlin.alerce.com (w094.z064001164.sjc-ca.dsl.cnc.net [64.1.164.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79EC343D55; Sat, 3 Dec 2005 18:37:04 +0000 (GMT) (envelope-from hartzell@satchel.alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id AAD892189; Sat, 3 Dec 2005 10:36:32 -0800 (PST) Received: from satchel.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by merlin.alerce.com (Postfix) with ESMTP id 49210216A; Sat, 3 Dec 2005 10:36:32 -0800 (PST) Received: from satchel.alerce.com (localhost [127.0.0.1]) by satchel.alerce.com (8.13.4/8.13.4) with ESMTP id jB3IawXk013349; Sat, 3 Dec 2005 10:36:58 -0800 (PST) (envelope-from hartzell@satchel.alerce.com) Received: (from hartzell@localhost) by satchel.alerce.com (8.13.4/8.13.4/Submit) id jB3IauKH013338; Sat, 3 Dec 2005 10:36:56 -0800 (PST) (envelope-from hartzell) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17297.58824.228762.18260@satchel.alerce.com> Date: Sat, 3 Dec 2005 10:36:56 -0800 To: Gleb Smirnoff In-Reply-To: <20051203085251.GY22816@cell.sick.ru> References: <20051114.175031.93019232.garrigue@math.nagoya-u.ac.jp> <20051202.110448.25479607.garrigue@math.nagoya-u.ac.jp> <17296.46122.671120.884060@satchel.alerce.com> <20051203085251.GY22816@cell.sick.ru> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid X-Virus-Scanned: ClamAV using ClamSMTP Cc: Jacques Garrigue , hartzell@alerce.com, freebsd-stable@FreeBSD.org, freebsd-mobile@FreeBSD.org Subject: Re: IBM T42 freezes when going to sleep under X11 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hartzell@alerce.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 18:37:05 -0000 Gleb Smirnoff writes: > On Fri, Dec 02, 2005 at 12:52:58PM -0800, George Hartzell wrote: > G> > I finally found the cause of my problems: there has been changes in > G> > the em driver (Gb ethernet), such that the machine freezes when trying > G> > to switch automatically from the X11 VT to the system console, before > G> > going to sleep. The interaction is surprising, but clearly the problem > G> > disappears when I remove "device em" from the kernel configuration, > G> > and it reappears when I do "kldload if_em". Since I'm using only ath > G> > (wireless) anyway, this is fine with me... > G> > > G> > A previous partial solution suggested to me was to add > G> > hw.syscons.sc_no_suspend_vtswitch=1 > G> > to sysctl.conf, but this means the screen gets garbled and I have to > G> > do the switch by hand anyway, which is a real pain. > G> > Worse still: the machine would still freeze when going to sleep while > G> > the disk is active. > G> > > G> > The last step is to track down the bug in em, as it still seems to > G> > be there in yesterday's STABLE. > G> > G> I don't seem to have any problem with my T42p using a kernel compiled > G> on 11/29 11:21 > G> > G> My copy of if_em.c is: > G> > G> /*$FreeBSD: src/sys/dev/em/if_em.c,v 1.65.2.8 2005/11/25 14:11:59 glebius Exp $*/ > > George, Jacques, > > what em(4) cards exactly do you have? > > pciconf -lv | grep -A4 ^em (satchel)[10:35am]~>>pciconf -lv | grep -A4 ^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 (satchel)[10:36am]~>> > > Can you please try the attached patch? > I'll give it a try this weekend. g.