All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression
@ 2022-08-11  0:47 bugzilla-daemon
  2022-08-11  3:51 ` [Bug 216352] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11  0:47 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

            Bug ID: 216352
           Summary: [BISECTED] 250 ms system suspend performance
                    regression
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.19
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Bluetooth
          Assignee: linux-bluetooth@vger.kernel.org
          Reporter: lenb@kernel.org
        Regression: No

My skylake laptop suspends with median performance of 427 ms
up through 5.19-rc8.

After this commit, median performance slows to 684 ms in 5.19.0.

ef61b6ea154464fefd8a6712d7a3b43b445c3d4a is the first bad commit
commit ef61b6ea154464fefd8a6712d7a3b43b445c3d4a
Author: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Date:   Mon Jul 25 15:34:21 2022 -0700

    Bluetooth: Always set event mask on suspend

    When suspending, always set the event mask once disconnects are
    successful. Otherwise, if wakeup is disallowed, the event mask is not
    set before suspend continues and can result in an early wakeup.

    Fixes: 182ee45da083 ("Bluetooth: hci_sync: Rework hci_suspend_notifier")
    Cc: stable@vger.kernel.org
    Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

 net/bluetooth/hci_sync.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
@ 2022-08-11  3:51 ` bugzilla-daemon
  2022-08-11  3:59 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11  3:51 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

Len Brown (lenb@kernel.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Regression|No                          |Yes

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
  2022-08-11  3:51 ` [Bug 216352] " bugzilla-daemon
@ 2022-08-11  3:59 ` bugzilla-daemon
  2022-08-11  4:01 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11  3:59 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

--- Comment #1 from Len Brown (lenb@kernel.org) ---
Created attachment 301548
  --> https://bugzilla.kernel.org/attachment.cgi?id=301548&action=edit
sleepgraph 5.19-rc8: 411ms suspend

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
  2022-08-11  3:51 ` [Bug 216352] " bugzilla-daemon
  2022-08-11  3:59 ` bugzilla-daemon
@ 2022-08-11  4:01 ` bugzilla-daemon
  2022-08-11  4:10 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11  4:01 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

--- Comment #2 from Len Brown (lenb@kernel.org) ---
Created attachment 301549
  --> https://bugzilla.kernel.org/attachment.cgi?id=301549&action=edit
sleepgraph 5.19.0: 686 ms suspend

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
                   ` (2 preceding siblings ...)
  2022-08-11  4:01 ` bugzilla-daemon
@ 2022-08-11  4:10 ` bugzilla-daemon
  2022-08-11 21:03 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11  4:10 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

--- Comment #3 from Len Brown (lenb@kernel.org) ---
Comparing the attached sleepgraph output of 5.19 to 5.19-rc8...

acpi_ps_execute_method(PCI.XHC._PS0) plus
msleep 120
msleep 40
msleep 40
msleep 10

have, as a group, shifted left from the suspend phase,
where they used to overlap with other tasks,
into the suspend_prepare phase, where they are the
slowest operation.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
                   ` (3 preceding siblings ...)
  2022-08-11  4:10 ` bugzilla-daemon
@ 2022-08-11 21:03 ` bugzilla-daemon
  2022-08-11 21:23 ` bugzilla-daemon
  2022-08-12 18:10 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11 21:03 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

--- Comment #4 from Luiz Von Dentz (luiz.dentz@gmail.com) ---
(In reply to Len Brown from comment #3)
> Comparing the attached sleepgraph output of 5.19 to 5.19-rc8...
> 
> acpi_ps_execute_method(PCI.XHC._PS0) plus
> msleep 120
> msleep 40
> msleep 40
> msleep 10
> 
> have, as a group, shifted left from the suspend phase,
> where they used to overlap with other tasks,
> into the suspend_prepare phase, where they are the
> slowest operation.

We can probably return to the way it was if we detect the event mask needs
updating or not by checking if there is any connections, anyway if you attempt
to suspend while there is a bluetooth connection this extra latency would
probably reappear since in that case we need to update the event mask in order
to not wakeup the system by events such Disconnect Complete, not sure if this
is acceptable or perhaps the root cause is that notifiers are serialized so
while these commands are pending it prevents other notifiers to be run?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
                   ` (4 preceding siblings ...)
  2022-08-11 21:03 ` bugzilla-daemon
@ 2022-08-11 21:23 ` bugzilla-daemon
  2022-08-12 18:10 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-11 21:23 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

--- Comment #5 from Luiz Von Dentz (luiz.dentz@gmail.com) ---
Created attachment 301553
  --> https://bugzilla.kernel.org/attachment.cgi?id=301553&action=edit
Bluetooth: hci_sync: Fix suspend performance regression

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 216352] [BISECTED] 250 ms system suspend performance regression
  2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
                   ` (5 preceding siblings ...)
  2022-08-11 21:23 ` bugzilla-daemon
@ 2022-08-12 18:10 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2022-08-12 18:10 UTC (permalink / raw)
  To: linux-bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=216352

--- Comment #6 from Luiz Von Dentz (luiz.dentz@gmail.com) ---
@Len Brown any chance to test with the above patch?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-12 18:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11  0:47 [Bug 216352] New: [BISECTED] 250 ms system suspend performance regression bugzilla-daemon
2022-08-11  3:51 ` [Bug 216352] " bugzilla-daemon
2022-08-11  3:59 ` bugzilla-daemon
2022-08-11  4:01 ` bugzilla-daemon
2022-08-11  4:10 ` bugzilla-daemon
2022-08-11 21:03 ` bugzilla-daemon
2022-08-11 21:23 ` bugzilla-daemon
2022-08-12 18:10 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.