From: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
To: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"balbi@kernel.org" <balbi@kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"johan@kernel.org" <johan@kernel.org>,
"quic_wcheng@quicinc.com" <quic_wcheng@quicinc.com>,
"kernel@gpiccoli.net" <kernel@gpiccoli.net>,
"kernel-dev@igalia.com" <kernel-dev@igalia.com>,
Andrey Smirnov <andrew.smirnov@gmail.com>,
Vivek Dasmohapatra <vivek@collabora.com>,
"piyush.mehta@amd.com" <piyush.mehta@amd.com>,
"ray.huang@amd.com" <ray.huang@amd.com>
Subject: Re: [PATCH] usb: dwc3: Fix spurious wakeup when port is on device mode
Date: Wed, 31 Jan 2024 16:16:22 -0300 [thread overview]
Message-ID: <9e21fe04-6571-2c29-e40d-4d16b55ae46e@igalia.com> (raw)
In-Reply-To: <29ebf575-e09b-4452-ed60-41a667e78c5f@igalia.com>
On 31/01/2024 15:16, Guilherme G. Piccoli wrote:
> [...]
>>> And ftrace timestamps unfortunately don't help with that, it's not
>>> showing how much time the device stay suspended, so it might be
>>> confusing and both cases could appear as the same exact scenario, even
>>> if they are completely different (fail vs success cases).
>>
>> That's odd.. my assumption was the timestamps to be valid. Were you able
>> to confirm that it's the issue with the timestamps? Perhaps check if the
>> other devices in the system also wakeup at the approximately same
>> time printed in the timestamps?
>>
>
> Hi Thinh, indeed - this a bit odd right? I guess this is maybe related
> with the way kernel keeps track of clocks on suspend - despite TSC keeps
> accounting on suspend (at least for all modern x86 processors IIUC), the
> timestamps in both tracing buffer or dmesg do not reflect suspend time.
>
> Is it different in your x86 systems? Or maybe in other architectures you
> have experience with?
>
> I've done a test on Steam Deck, take a look in both attachments - seems
> to be aligned with my perception. Also checked dmesg on my Intel laptop
> (i5-6300U, with "nonstop_tsc" capability) and the timestamps do not
> reflect the time spent in S3 suspend...
>
Just a heads-up: just noticed that on s2idle sleep, the timestamps seems
to reflect the suspended time - just tested here. But on S3/deep sleep,
they don't...
Cheers!
next prev parent reply other threads:[~2024-01-31 19:16 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 16:51 [PATCH] usb: dwc3: Fix spurious wakeup when port is on device mode Guilherme G. Piccoli
2023-12-04 11:36 ` Guilherme G. Piccoli
2023-12-05 1:23 ` Thinh Nguyen
2023-12-05 14:40 ` Guilherme G. Piccoli
2024-01-09 18:00 ` Guilherme G. Piccoli
2024-01-11 2:01 ` Thinh Nguyen
2024-01-11 16:13 ` Guilherme G. Piccoli
2024-01-13 1:33 ` Thinh Nguyen
2024-01-15 10:44 ` Vivek Dasmohapatra
2024-01-17 0:37 ` Thinh Nguyen
2024-01-16 16:11 ` Guilherme G. Piccoli
2024-01-17 0:34 ` Thinh Nguyen
2024-01-17 10:44 ` Guilherme G. Piccoli
2024-01-18 0:39 ` Thinh Nguyen
2024-01-21 17:48 ` Guilherme G. Piccoli
2024-01-23 2:12 ` Thinh Nguyen
2024-01-28 15:25 ` Guilherme G. Piccoli
2024-01-30 2:17 ` Thinh Nguyen
2024-01-31 18:16 ` Guilherme G. Piccoli
2024-01-31 19:16 ` Guilherme G. Piccoli [this message]
2024-02-01 1:23 ` Thinh Nguyen
2024-02-01 1:23 ` Thinh Nguyen
2024-02-01 14:39 ` Guilherme G. Piccoli
2024-02-06 2:53 ` Thinh Nguyen
2024-02-06 10:30 ` Guilherme G. Piccoli
2024-02-08 23:53 ` Thinh Nguyen
2024-02-09 1:18 ` Guilherme G. Piccoli
2024-03-04 15:59 ` Guilherme G. Piccoli
2024-03-05 2:41 ` Thinh Nguyen
2024-03-07 0:40 ` Thinh Nguyen
2024-03-07 19:22 ` Guilherme G. Piccoli
2024-03-08 2:42 ` Thinh Nguyen
2024-03-08 11:52 ` Guilherme G. Piccoli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e21fe04-6571-2c29-e40d-4d16b55ae46e@igalia.com \
--to=gpiccoli@igalia.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=andrew.smirnov@gmail.com \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=kernel-dev@igalia.com \
--cc=kernel@gpiccoli.net \
--cc=linux-usb@vger.kernel.org \
--cc=piyush.mehta@amd.com \
--cc=quic_wcheng@quicinc.com \
--cc=ray.huang@amd.com \
--cc=vivek@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox