Skip site navigation (1)Skip section navigation (2)
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,



The 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 the  power on.



See /sys/dev/usb/usb_hub.c



And:



grep -r UHF_PORT_POWER /sys/dev/usb/



--HPS

 

 

-----Original message-----

> From:Adrian Chadd <adrian@freebsd.org <mailto:adrian@freebsd.org> >

> Sent: Sunday 7th July 2013 18:43

> To: Hans Petter Selasky <hans.petter.selasky@bitfrost.no <mailto:hans.petter.selasky@bitfrost.no> >

> Cc: freebsd-acpi@freebsd.org <mailto:freebsd-acpi@freebsd.org> ; freebsd-stable@freebsd.org <mailto:freebsd-stable@freebsd.org> ; Ian Smith <smithi@nimnet.asn.au <mailto:smithi@nimnet.asn.au> >; freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org> 

> Subject: Re: USB ports on Lenovo T400 do not work after a suspend/resume

> 

> I don't think it's a USB controller issue.

> 

> Those ports are connected to USB hubs, right? I wonder if there's some

> ACPI nonsense that's resulting in the hubs not being powered up on

> resume.

> 

> 

> 

> -adrian

> 

> On 7 July 2013 00:32, Hans Petter Selasky

> <hans.petter.selasky@bitfrost.no <mailto:hans.petter.selasky@bitfrost.no> > wrote:

> > Hi,

> >

> > FYI: The USB stack will currently run a complete controller reset upon

> > resume, like during boot.

> >

> > --HPS

> >

> >

> >

> > -----Original message-----

> >> From:Ian Smith <smithi@nimnet.asn.au <mailto:smithi@nimnet.asn.au> >

> >> Sent: Sunday 7th July 2013 7:52

> >> To: Adrian Chadd <adrian@freebsd.org <mailto:adrian@freebsd.org> >

> >> Cc: freebsd-acpi@freebsd.org <mailto:freebsd-acpi@freebsd.org> ; freebsd-stable@freebsd.org <mailto:freebsd-stable@freebsd.org> ;

> >> freebsd-usb@freebsd.org <mailto:freebsd-usb@freebsd.org> 

> >> Subject: Re: USB ports on Lenovo T400 do not work after a suspend/resume

> >>

> >> On Sun, 30 Jun 2013 15:02:57 -0700, Adrian Chadd wrote:

> >>  > On 30 June 2013 07:22, Ian Smith <smithi@nimnet.asn.au <mailto:smithi@nimnet.asn.au> > wrote:

> >> [..]

> >>  > > 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?

> >>

> >> Does noone know what that signifies?  Maybe it's not relevant to this.

> >>

> >>  > > Just checking: you've tried other USB devices apart from uftdi0?

> >>  >

> >>  > Yup, there's no 5v on the port.

> >>

> >> I was rather taken aback to hear this.  Would not this indicate a

> >> failure to reinitialise the basic underlying USB hardware on resume?

> >>

> >> More than a bit bemused, Ian

> >> _______________________________________________

> >> freebsd-acpi@freebsd.org <mailto:freebsd-acpi@freebsd.org>  mailing list

> >> http://lists.freebsd.org/mailman/listinfo/freebsd-acpi <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>; 

> >> To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org <mailto:freebsd-acpi-unsubscribe@freebsd.org> "

> >>

> _______________________________________________

> freebsd-acpi@freebsd.org <mailto:freebsd-acpi@freebsd.org>  mailing list

> http://lists.freebsd.org/mailman/listinfo/freebsd-acpi <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>; 

> To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org <mailto:freebsd-acpi-unsubscribe@freebsd.org> "

> 




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:
> 
> > 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.
> 
> Cool!
> 
> > 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?
> 
> 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>