All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 100941] Improve time to suspend on
@ 2017-05-05  7:04 bugzilla-daemon
  2017-05-05  7:05 ` bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-05  7:04 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2877 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

            Bug ID: 100941
           Summary: Improve time to suspend on
           Product: DRI
           Version: DRI git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/Radeon
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: paulepanter@users.sourceforge.net

Created attachment 131223
  --> https://bugs.freedesktop.org/attachment.cgi?id=131223&action=edit
TML page generated by pm-graph (`sudo ./analyze_suspend.py -config
config/suspend-callgraph.cfg`)

The ASRock E350M1 has a Radeon HD 6310.

```
$ sudo lspci -s 0:01.0 -nn -v
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Wrestler [Radeon HD 6310] [1002:9802] (prog-if 00 [VGA controller])
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD
6310] [1002:9802]
        Flags: bus master, fast devsel, latency 0, IRQ 28
        Memory at e0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 2000 [size=256]
        Memory at f0100000 (32-bit, non-prefetchable) [size=256K]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010
<?>
        Kernel driver in use: radeon
        Kernel modules: radeon
```

With Debian Sid/unstable with Linux 4.9.25 suspend and resume times are
benchmarked with pm-graph [1], and the command below.

```
sudo ./analyze_suspend.py -config config/suspend-callgraph.cfg
```

It turns out that with 258 ms the radeon module takes the majority of the time
during suspend.

In that cycle one `radeon_bo_evict_vram` call takes the longest with 198 ms.

```
[…]
  459.186778 |   0)  kworker-1495  |   0.974 us    |         
radeon_fence_wait_empty [radeon]();
  459.186780 |   0)  kworker-1495  |   0.440 us    |         
radeon_fence_wait_empty [radeon]();
  459.186783 |   0)  kworker-1495  |   0.501 us    |         
radeon_fence_wait_empty [radeon]();
  459.186785 |   0)  kworker-1495  |   5.424 us    |         
radeon_save_bios_scratch_regs [radeon]();
  459.186793 |   0)  kworker-1495  |   7625.511 us |          evergreen_suspend
[radeon]();
  459.194422 |   0)  kworker-1495  |   10.158 us   |         
evergreen_hpd_fini [radeon]();
  459.194434 |   0)  kworker-1495  |   198203.3 us |         
radeon_bo_evict_vram [radeon]();
[…]
```

Please see the attached files for more details.

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

[-- Attachment #1.2: Type: text/html, Size: 4443 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
@ 2017-05-05  7:05 ` bugzilla-daemon
  2017-05-05  7:06 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-05  7:05 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 862 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

Paul Menzel <paulepanter@users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paulepanter@users.sourcefor
                   |                            |ge.net
 Attachment #131223|TML page generated by       |HTML page generated by
        description|pm-graph (`sudo             |pm-graph (`sudo
                   |./analyze_suspend.py        |./analyze_suspend.py
                   |-config                     |-config
                   |config/suspend-callgraph.cf |config/suspend-callgraph.cf
                   |g`)                         |g`)

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

[-- Attachment #1.2: Type: text/html, Size: 1485 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
  2017-05-05  7:05 ` bugzilla-daemon
@ 2017-05-05  7:06 ` bugzilla-daemon
  2017-05-06 18:50 ` [Bug 100941] Improve time to suspend on Radeon HD 6310 bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-05  7:06 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 413 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

--- Comment #1 from Paul Menzel <paulepanter@users.sourceforge.net> ---
Created attachment 131224
  --> https://bugs.freedesktop.org/attachment.cgi?id=131224&action=edit
ftrace messages generated by pm-graph (`sudo ./analyze_suspend.py -config
config/suspend-callgraph.cfg`)

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

[-- Attachment #1.2: Type: text/html, Size: 1463 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on Radeon HD 6310
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
  2017-05-05  7:05 ` bugzilla-daemon
  2017-05-05  7:06 ` bugzilla-daemon
@ 2017-05-06 18:50 ` bugzilla-daemon
  2017-05-06 18:57 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-06 18:50 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 469 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

Paul Menzel <paulepanter@users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Improve time to suspend on  |Improve time to suspend on
                   |                            |Radeon HD 6310

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

[-- Attachment #1.2: Type: text/html, Size: 1136 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on Radeon HD 6310
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-05-06 18:50 ` [Bug 100941] Improve time to suspend on Radeon HD 6310 bugzilla-daemon
@ 2017-05-06 18:57 ` bugzilla-daemon
  2017-05-06 19:44 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-06 18:57 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 608 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

Christian König <deathsimple@vodafone.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #2 from Christian König <deathsimple@vodafone.de> ---
That is expected. During suspend we need to backup VRAM and that can be
multiple gigs of memory.

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

[-- Attachment #1.2: Type: text/html, Size: 2106 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on Radeon HD 6310
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-05-06 18:57 ` bugzilla-daemon
@ 2017-05-06 19:44 ` bugzilla-daemon
  2017-05-07  8:55 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-06 19:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 519 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

--- Comment #3 from Paul Menzel <paulepanter@users.sourceforge.net> ---
(In reply to Christian König from comment #2)
> That is expected. During suspend we need to backup VRAM and that can be
> multiple gigs of memory.

The board has the Fusion APU E-350, which is not external card, and which uses
the “normal system memory”, right? So I wonder what needs to be backed up?

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

[-- Attachment #1.2: Type: text/html, Size: 1429 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on Radeon HD 6310
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-05-06 19:44 ` bugzilla-daemon
@ 2017-05-07  8:55 ` bugzilla-daemon
  2018-07-31 16:41 ` bugzilla-daemon
  2019-11-19  9:28 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-07  8:55 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1421 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

Christian König <deathsimple@vodafone.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
         Resolution|NOTABUG                     |---
             Status|RESOLVED                    |REOPENED
           Priority|medium                      |high

--- Comment #4 from Christian König <deathsimple@vodafone.de> ---
Ah, sorry! Yes that is a known issue on APUs.

See the comment in radeon_bo_evict_vram():

        /* late 2.6.33 fix IGP hibernate - we need pm ops to do this correct */
        if (0 && (rdev->flags & RADEON_IS_IGP)) {
                if (rdev->mc.igp_sideport_enabled == false)
                        /* Useless to evict on IGP chips */
                        return 0;
        }
        return ttm_bo_evict_mm(&rdev->mman.bdev, TTM_PL_VRAM);

The problem is the driver doesn't know if we are suspending or hibernating.

For pure suspending (when system memory is still being refreshed) you don't
need to evict VRAM on APUs.

But for hibernating (when system memory is written to disk) you need to evict
VRAM because the normal OS doesn't know about it and won't back it up.

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

[-- Attachment #1.2: Type: text/html, Size: 3127 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on Radeon HD 6310
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-05-07  8:55 ` bugzilla-daemon
@ 2018-07-31 16:41 ` bugzilla-daemon
  2019-11-19  9:28 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-31 16:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 348 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

--- Comment #5 from Paul Menzel <pmenzel+bugs.freedesktop@molgen.mpg.de> ---
For the record, bug #107277 [1] is the same for amdgpu (like Raven devices.

[1]: https://bugs.freedesktop.org/show_bug.cgi?id=107277

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

[-- Attachment #1.2: Type: text/html, Size: 1449 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [Bug 100941] Improve time to suspend on Radeon HD 6310
  2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-07-31 16:41 ` bugzilla-daemon
@ 2019-11-19  9:28 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2019-11-19  9:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 805 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100941

Martin Peres <martin.peres@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |MOVED
             Status|REOPENED                    |RESOLVED

--- Comment #6 from Martin Peres <martin.peres@free.fr> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/798.

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

[-- Attachment #1.2: Type: text/html, Size: 2352 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-11-19  9:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-05  7:04 [Bug 100941] Improve time to suspend on bugzilla-daemon
2017-05-05  7:05 ` bugzilla-daemon
2017-05-05  7:06 ` bugzilla-daemon
2017-05-06 18:50 ` [Bug 100941] Improve time to suspend on Radeon HD 6310 bugzilla-daemon
2017-05-06 18:57 ` bugzilla-daemon
2017-05-06 19:44 ` bugzilla-daemon
2017-05-07  8:55 ` bugzilla-daemon
2018-07-31 16:41 ` bugzilla-daemon
2019-11-19  9:28 ` 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.