Date: Sun, 7 Jul 2013 20:22:00 +0200 From: =?utf-8?Q?Hans_Petter_Selasky?= <hans.petter.selasky@bitfrost.no> To: =?utf-8?Q?Adrian_Chadd?= <adrian@freebsd.org> Cc: =?utf-8?Q?freebsd-acpi=40freebsd=2Eorg?= <freebsd-acpi@freebsd.org>, =?utf-8?Q?freebsd-stable=40freebsd=2Eorg?= <freebsd-stable@freebsd.org>, =?utf-8?Q?Ian_Smith?= <smithi@nimnet.asn.au>, =?utf-8?Q?freebsd-usb=40?= =?utf-8?Q?freebsd=2Eorg?= <freebsd-usb@freebsd.org> Subject: RE: USB ports on Lenovo T400 do not work after a suspend/resume Message-ID: <zarafa.51d9b1c8.50e2.45a240e13f4f2420@mail.lockless.no> In-Reply-To: <CAJ-VmokE_=YjewFdLp2NvdMKmPvcxG7P-noLUvL3T_2X7wgfLQ@mail.gmail.com> References: <CAJ-Vmomg2j-nJi%2BqFr3CpCjHKjHEiLE=xyNyx1VGRL5U-r8gzQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,=0D=0A=0D=0AThe USB code should re-attach the uhub driver to the root = HUB and any other HUBs after resume. Part of the attach code is to set th= e power on.=0D=0A=0D=0ASee /sys/dev/usb/usb_hub.c=0D=0A=0D=0AAnd:=0D=0A=0D= =0Agrep -r UHF_PORT_POWER /sys/dev/usb/=0D=0A=0D=0A--HPS=0D=0A=20=0D=0A=20= =0D=0A-----Original message-----=0D=0A> From:Adrian Chadd <adrian@freebsd= =2Eorg <mailto:adrian@freebsd.org> >=0D=0A> Sent: Sunday 7th July 2013 18= :43=0D=0A> To: Hans Petter Selasky <hans.petter.selasky@bitfrost.no <mail= to:hans.petter.selasky@bitfrost.no> >=0D=0A> Cc: freebsd-acpi@freebsd.org= <mailto:freebsd-acpi@freebsd.org> ; freebsd-stable@freebsd.org <mailto:f= reebsd-stable@freebsd.org> ; Ian Smith <smithi@nimnet.asn.au <mailto:smit= hi@nimnet.asn.au> >; freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.= org>=20=0D=0A> Subject: Re: USB ports on Lenovo T400 do not work after a = suspend/resume=0D=0A>=20=0D=0A> I don't think it's a USB controller issue= =2E=0D=0A>=20=0D=0A> Those ports are connected to USB hubs, right=3F I wo= nder if there's some=0D=0A> ACPI nonsense that's resulting in the hubs no= t being powered up on=0D=0A> resume.=0D=0A>=20=0D=0A>=20=0D=0A>=20=0D=0A>= -adrian=0D=0A>=20=0D=0A> On 7 July 2013 00:32, Hans Petter Selasky=0D=0A= > <hans.petter.selasky@bitfrost.no <mailto:hans.petter.selasky@bitfrost.n= o> > wrote:=0D=0A> > Hi,=0D=0A> >=0D=0A> > FYI: The USB stack will curren= tly run a complete controller reset upon=0D=0A> > resume, like during boo= t.=0D=0A> >=0D=0A> > --HPS=0D=0A> >=0D=0A> >=0D=0A> >=0D=0A> > -----Origi= nal message-----=0D=0A> >> From:Ian Smith <smithi@nimnet.asn.au <mailto:s= mithi@nimnet.asn.au> >=0D=0A> >> Sent: Sunday 7th July 2013 7:52=0D=0A> >= > To: Adrian Chadd <adrian@freebsd.org <mailto:adrian@freebsd.org> >=0D=0A= > >> Cc: freebsd-acpi@freebsd.org <mailto:freebsd-acpi@freebsd.org> ; fre= ebsd-stable@freebsd.org <mailto:freebsd-stable@freebsd.org> ;=0D=0A> >> f= reebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org>=20=0D=0A> >> Subj= ect: Re: USB ports on Lenovo T400 do not work after a suspend/resume=0D=0A= > >>=0D=0A> >> On Sun, 30 Jun 2013 15:02:57 -0700, Adrian Chadd wrote:=0D= =0A> >> > On 30 June 2013 07:22, Ian Smith <smithi@nimnet.asn.au <mailto= :smithi@nimnet.asn.au> > wrote:=0D=0A> >> [..]=0D=0A> >> > > Nothing of = note that I can see, if that usb hub-to-bus remapping is=0D=0A> >> > > n= ormal. As you said, 'CPU0: local APIC error 0x40' looks maybe sus.=0D=0A= > >> > > Maybe someone who knows might comment on that=3F=0D=0A> >>=0D=0A= > >> Does noone know what that signifies=3F Maybe it's not relevant to t= his.=0D=0A> >>=0D=0A> >> > > Just checking: you've tried other USB devic= es apart from uftdi0=3F=0D=0A> >> >=0D=0A> >> > Yup, there's no 5v on t= he port.=0D=0A> >>=0D=0A> >> I was rather taken aback to hear this. Woul= d not this indicate a=0D=0A> >> failure to reinitialise the basic underly= ing USB hardware on resume=3F=0D=0A> >>=0D=0A> >> More than a bit bemused= , Ian=0D=0A> >> _______________________________________________=0D=0A> >>= freebsd-acpi@freebsd.org <mailto:freebsd-acpi@freebsd.org> mailing list= =0D=0A> >> http://lists.freebsd.org/mailman/listinfo/freebsd-acpi <http:/= /lists.freebsd.org/mailman/listinfo/freebsd-acpi>=20=0D=0A> >> To unsubsc= ribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org <mailto:free= bsd-acpi-unsubscribe@freebsd.org> "=0D=0A> >>=0D=0A> ____________________= ___________________________=0D=0A> freebsd-acpi@freebsd.org <mailto:freeb= sd-acpi@freebsd.org> mailing list=0D=0A> http://lists.freebsd.org/mailma= n/listinfo/freebsd-acpi <http://lists.freebsd.org/mailman/listinfo/freebs= d-acpi>=20=0D=0A> To unsubscribe, send any mail to "freebsd-acpi-unsubscr= ibe@freebsd.org <mailto:freebsd-acpi-unsubscribe@freebsd.org> "=0D=0A>=20= =0D=0A=0D=0A From owner-freebsd-acpi@FreeBSD.ORG Sun Jul 7 20:50:01 2013 Return-Path: <owner-freebsd-acpi@FreeBSD.ORG> Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8149CE88; Sun, 7 Jul 2013 20:50:01 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4004F161F; Sun, 7 Jul 2013 20:50:00 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 197816A6005; Sun, 7 Jul 2013 22:49:59 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id r67Knw0S069458; Sun, 7 Jul 2013 22:49:58 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id r67KnvSB068983; Sun, 7 Jul 2013 22:49:57 +0200 (CEST) (envelope-from lars) Date: Sun, 7 Jul 2013 22:49:57 +0200 From: Lars Engels <lars.engels@0x20.net> To: Adrian Chadd <adrian@freebsd.org> Subject: Re: USB ports on Lenovo T400 do not work after a suspend/resume Message-ID: <20130707204957.GD88288@e-new.0x20.net> References: <20130621220013.X55167@sola.nimnet.asn.au> <CAJ-Vmo=W3GW9FzLrTPePhJo_-KY_U--YWCCqA+8aWx8HbLkT+g@mail.gmail.com> <20130626152833.M78748@sola.nimnet.asn.au> <CAJ-Vmo=rhm-9mnRcnwWO1ANOZMNpiFXVkHNTVJ+aeJzpbGgF-g@mail.gmail.com> <20130626195154.GK88288@e-new.0x20.net> <CAJ-VmokEf2_EKKJMB=yqH1pimdNvdmaKvh+3-jJu_6vt5CUakA@mail.gmail.com> <20130627213331.W26984@sola.nimnet.asn.au> <CAJ-VmomUGm7CMpe5k=x4J8g5X9hzP-wV2OEhLf8ySbWx-THJLA@mail.gmail.com> <20130630233640.Y23789@sola.nimnet.asn.au> <CAJ-Vmokh=yAa_NsoE5ud2CdD0gMAiMCthwJ_DqW23_hnav7-Jw@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jCtUVa7WgqJFqiey" Content-Disposition: inline In-Reply-To: <CAJ-Vmokh=yAa_NsoE5ud2CdD0gMAiMCthwJ_DqW23_hnav7-Jw@mail.gmail.com> X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.4-RELEASE User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-acpi@freebsd.org, freebsd-stable@freebsd.org, Ian Smith <smithi@nimnet.asn.au>, freebsd-usb@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development <freebsd-acpi.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-acpi>, <mailto:freebsd-acpi-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-acpi> List-Post: <mailto:freebsd-acpi@freebsd.org> List-Help: <mailto:freebsd-acpi-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>, <mailto:freebsd-acpi-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 07 Jul 2013 20:50:01 -0000 --jCtUVa7WgqJFqiey Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 30, 2013 at 03:02:57PM -0700, Adrian Chadd wrote: > On 30 June 2013 07:22, Ian Smith <smithi@nimnet.asn.au> wrote: >=20 > > After removing [numbers] (for WITNESS?), diff started making sense. > > The below is between the first and second suspend/resume cycles in > > dmesg-3.txt, encompassing the others. >=20 > Cool! >=20 > > Nothing of note that I can see, if that usb hub-to-bus remapping is > > normal. As you said, 'CPU0: local APIC error 0x40' looks maybe sus. > > Maybe someone who knows might comment on that? > > > > Just checking: you've tried other USB devices apart from uftdi0? >=20 > Yup, there's no 5v on the port. Oh, BTW: can you check if you have power on the ports after the first resume and no power after all next resumes until you reboot your notebook? That's the situation I had and maybe it can lead to something. ;) --jCtUVa7WgqJFqiey Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlHZ1HUACgkQKc512sD3afjaBQCfRFbhECzF/rGjcNvsb6oCYrTc xCsAoKg6UrgtLtAMOLTVstVF18b9Og8V =xpuU -----END PGP SIGNATURE----- --jCtUVa7WgqJFqiey--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?zarafa.51d9b1c8.50e2.45a240e13f4f2420>