From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 100761] `radeon_ib_ring_tests` takes 0.5 s on resume Date: Sun, 23 Apr 2017 08:45:54 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0799506449==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 586C36E57D for ; Sun, 23 Apr 2017 08:45:54 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0799506449== Content-Type: multipart/alternative; boundary="14929371540.A13a.20621"; charset="UTF-8" --14929371540.A13a.20621 Date: Sun, 23 Apr 2017 08:45:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D100761 Bug ID: 100761 Summary: `radeon_ib_ring_tests` takes 0.5 s on resume 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 130987 --> https://bugs.freedesktop.org/attachment.cgi?id=3D130987&action=3Dedit HTML page generated by pm-graph (`sudo ./analyze_suspend.py -config config/suspend-callgraph.cfg -filter radeon`) 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=3D256M] I/O ports at 2000 [size=3D256] Memory at f0100000 (32-bit, non-prefetchable) [size=3D256K] [virtual] Expansion ROM at 000c0000 [disabled] [size=3D128K] Capabilities: [50] Power Management version 3 Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [a0] MSI: Enable+ Count=3D1/1 Maskable- 64bit+ Capabilities: [100] Vendor Specific Information: ID=3D0001 Rev=3D1 = Len=3D010 Kernel driver in use: radeon Kernel modules: radeon ``` With Debian Sid/unstable with Linux 4.9.18 suspend and resume times are benchmarked with pm-graph [1], and the command below. ``` sudo ./analyze_suspend.py -config config/suspend-callgraph.cfg -filter rade= on ``` It turns out that with 700 ms the radeon module takes the majority of the t= ime during resume. ``` [ 1182.585217] rtc_cmos 00:00: System wakeup disabled by ACPI [ 1182.589380] [drm] Found smc ucode version: 0x00010601 [ 1182.595454] sd 0:0:0:0: [sda] Starting disk [ 1182.608583] [drm] PCIE GART of 1024M enabled (table at 0x000000000016200= 0). [ 1182.608873] radeon 0000:00:01.0: WB enabled [ 1182.608880] radeon 0000:00:01.0: fence driver on ring 0 use gpu addr 0x0000000018000c00 and cpu addr 0xffa80c00 [ 1182.608884] radeon 0000:00:01.0: fence driver on ring 3 use gpu addr 0x0000000018000c0c and cpu addr 0xffa80c0c [ 1182.609743] radeon 0000:00:01.0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0xf8e32118 [ 1182.611934] r8169 0000:03:00.0 enp3s0: link down [ 1182.626087] [drm] ring test on 0 succeeded in 1 usecs [ 1182.626096] [drm] ring test on 3 succeeded in 3 usecs [ 1182.671894] [drm] ring test on 5 succeeded in 1 usecs [ 1182.691820] [drm] UVD initialized successfully. [ 1182.691935] [drm] ib test on ring 0 succeeded in 0 usecs [ 1182.691977] [drm] ib test on ring 3 succeeded in 0 usecs [ 1182.909916] ata5: SATA link down (SStatus 0 SControl 300) [ 1182.909975] ata6: SATA link down (SStatus 0 SControl 300) [ 1182.910021] ata3: SATA link down (SStatus 0 SControl 300) [ 1182.910095] ata2: SATA link down (SStatus 0 SControl 300) [ 1182.910133] ata4: SATA link down (SStatus 0 SControl 300) [ 1183.070885] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 1183.073953] ata1.00: configured for UDMA/133 [ 1183.219034] [drm] ib test on ring 5 succeeded [ 1183.290348] PM: resume of devices complete after 705.896 msecs ``` Looking at the generated graph 540 ms is spent in `radeon_ib_ring_tests`, w= hich contributes most of the time. It=E2=80=99d be awesome to improve these times. [1] https://github.com/01org/pm-graph --=20 You are receiving this mail because: You are the assignee for the bug.= --14929371540.A13a.20621 Date: Sun, 23 Apr 2017 08:45:54 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 100761
Summary `radeon_ib_ring_tests` takes 0.5 s on resume
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 a=
ttachment 130987 [details]
HTML page generated by pm-graph (`sudo ./analyze_suspend.py -config
config/suspend-callgraph.cfg -filter radeon`)

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=3D256M]
        I/O ports at 2000 [size=3D256]
        Memory at f0100000 (32-bit, non-prefetchable) [size=3D256K]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=3D128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=3D1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=3D0001 Rev=3D1 =
Len=3D010
<?>
        Kernel driver in use: radeon
        Kernel modules: radeon
```

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

```
sudo ./analyze_suspend.py -config config/suspend-callgraph.cfg -filter rade=
on
```

It turns out that with 700 ms the radeon module takes the majority of the t=
ime
during resume.

```
[ 1182.585217] rtc_cmos 00:00: System wakeup disabled by ACPI
[ 1182.589380] [drm] Found smc ucode version: 0x00010601
[ 1182.595454] sd 0:0:0:0: [sda] Starting disk
[ 1182.608583] [drm] PCIE GART of 1024M enabled (table at 0x000000000016200=
0).
[ 1182.608873] radeon 0000:00:01.0: WB enabled
[ 1182.608880] radeon 0000:00:01.0: fence driver on ring 0 use gpu addr
0x0000000018000c00 and cpu addr 0xffa80c00
[ 1182.608884] radeon 0000:00:01.0: fence driver on ring 3 use gpu addr
0x0000000018000c0c and cpu addr 0xffa80c0c
[ 1182.609743] radeon 0000:00:01.0: fence driver on ring 5 use gpu addr
0x0000000000072118 and cpu addr 0xf8e32118
[ 1182.611934] r8169 0000:03:00.0 enp3s0: link down
[ 1182.626087] [drm] ring test on 0 succeeded in 1 usecs
[ 1182.626096] [drm] ring test on 3 succeeded in 3 usecs
[ 1182.671894] [drm] ring test on 5 succeeded in 1 usecs
[ 1182.691820] [drm] UVD initialized successfully.
[ 1182.691935] [drm] ib test on ring 0 succeeded in 0 usecs
[ 1182.691977] [drm] ib test on ring 3 succeeded in 0 usecs
[ 1182.909916] ata5: SATA link down (SStatus 0 SControl 300)
[ 1182.909975] ata6: SATA link down (SStatus 0 SControl 300)
[ 1182.910021] ata3: SATA link down (SStatus 0 SControl 300)
[ 1182.910095] ata2: SATA link down (SStatus 0 SControl 300)
[ 1182.910133] ata4: SATA link down (SStatus 0 SControl 300)
[ 1183.070885] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1183.073953] ata1.00: configured for UDMA/133
[ 1183.219034] [drm] ib test on ring 5 succeeded
[ 1183.290348] PM: resume of devices complete after 705.896 msecs
```

Looking at the generated graph 540 ms is spent in `radeon_ib_ring_tests`, w=
hich
contributes most of the time.

It=E2=80=99d be awesome to improve these times.


[1] https://github.com/01org/=
pm-graph


You are receiving this mail because:
  • You are the assignee for the bug.
= --14929371540.A13a.20621-- --===============0799506449== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0799506449==--