From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 18:29:54 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE3161065670 for ; Thu, 10 Nov 2011 18:29:54 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 299418FC18 for ; Thu, 10 Nov 2011 18:29:53 +0000 (UTC) Received: by faar19 with SMTP id r19so4460790faa.13 for ; Thu, 10 Nov 2011 10:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:x-mailer; bh=aMylEZI9Clv1RvwuYq6L78alazKAdmznk1/mGkKwGJA=; b=vl9o5dctuL0xzvWQMmKq27mmpvXUMqIRbkhK/JAUSw54B7w/yhXWixOHtKD0IcFE/i DNPtfJEs8Mg+vMlLbZDC+M8hUOkCpsOShZipY8loMElkMaxvt7RMqLbz9SjWfxvmn0xe lfs8Au4uDLL3vhdrmCFmf+5giXuXy7SYsES/s= Received: by 10.223.94.143 with SMTP id z15mr13482889fam.32.1320949793019; Thu, 10 Nov 2011 10:29:53 -0800 (PST) Received: from DOMYPC ([82.193.208.173]) by mx.google.com with ESMTPS id l26sm12100431fad.17.2011.11.10.10.29.49 (version=SSLv3 cipher=OTHER); Thu, 10 Nov 2011 10:29:51 -0800 (PST) Message-ID: <20111110.182948.630.1@DOMY-PC> From: rank1seeker@gmail.com To: hackers@freebsd.org, freebsd-acpi@FreeBSD.org Date: Thu, 10 Nov 2011 19:29:48 +0100 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Adventure into S3 state and back X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 18:29:54 -0000 8.2-p4 RELEASE amd64=0D=0A=0D=0AI've built a custom kernel, only with = drivers, that I need=0D=0AAfter resuming from S3 ...=0D=0A=0D=0AI = hit:=0D=0A# ifconfig=0D=0Aand all hells breaks = loose:=0D=0A----=0D=0Abge0: PHY read timed out (phy 1, reg 5, val = 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 10, val = 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 25, val = 0xffffffff)=0D=0A media: Ethernet autoselect=0D=0A status: = no carrier=0D=0Abge0: PHY read timed out (phy 1, reg 1, val = 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 1, val = 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 0, val = 0xffffffff)=0D=0Augen3.2: at usbus3 (disconnected)=0D=0Aukbd0: = at uhub3, port 1, addr 2 (disconnected)=0D=0Aums0: at uhub3, port 1, addr = 2 (disconnected)=0D=0Auhid0: at uhub3, port 1, addr 2 = (disconnected)=0D=0Abge0: PHY read timed out (phy 1, reg 4, val = 0xffffffff)=0D=0Augen3.2: at usbus3=0D=0Aukbd0: on usbus3=0D=0Akbd2 at = ukbd0=0D=0Aums0: on usbus3=0D=0Aums0: 16 buttons and [XYZT] coordinates = ID=3D2=0D=0Auhid0: on usbus3=0D=0Abge0: PHY read timed out (phy 1, reg 5, val = 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 10, val = 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 25, val = 0xffffffff)=0D=0Apflog0: flags=3D141 metric 0 mtu = 33152=0D=0Alo0: flags=3D8049 metric 0 mtu = 16384=0D=0A options=3D3=0D=0A inet6 = fe80::1%lo0 prefixlen 64 scopeid 0x3=0D=0A inet6 ::1 prefixlen = 128=0D=0A inet 127.0.0.1 netmask 0xff000000=0D=0A nd6 = options=3D3=0D=0Acruiser# ifconfig=0D=0Abge0: = flags=3D8802 metric 0 mtu 1500=0D=0A = options=3D8009b=0D=0A = ether 00:21:70:70:01:df=0D=0Abge0: PHY read timed out (phy 1, reg = 1, val 0xffffffff)=0D=0Abge0: PHY read timed out (phy 1, reg 1, val = 0xffffffff)=0D=0A=0D=0A... ... ... =0D=0A----=0D=0A=0D=0ASo, taking into account:=0D=0A"A common = problem with suspend/resume is that many device drivers do not save, = restore, or reinitialize their firmware, registers, or device memory = properly."=0D=0A=0D=0ANext step was to get rid of 'bge' device from my = KERNCONF and recompile it.=0D=0AVoila! S3 works!=0D=0A=0D=0ABut another, = mouse problem, didn't go away!=0D=0AIn 9 out of 10 cases, mouse doesn't = resume.=0D=0AAs it is USB mouse, I've did:=0D=0A=0D=0A# camcontrol rescan = all=0D=0A didn't help=0D=0A=0D=0AI've also tried adding into = loader.conf and = nada:=0D=0A---=0D=0Ahint.psm.0.flags=3D"0x3000"=0D=0A---=0D=0ABut i think = it is PS/2 related=0D=0A=0D=0AWhat works 100% for a mouse is to unplug = and then plug back it's USB receiver=0D=0A=0D=0AThis is Dell D830 = laptop=0D=0A=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6