From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 107376] Raven: `flush_delayed_work()` takes 500 ms
Date: Wed, 25 Jul 2018 13:51:58 +0000
Message-ID:
Bug ID
107376
Summary
Raven: `flush_delayed_work()` takes 500 ms
Product
DRI
Version
DRI git
Hardware
Other
OS
All
Status
NEW
Severity
normal
Priority
medium
Component
DRM/AMDgpu
Assignee
dri-devel@lists.freedesktop.org
Reporter
pmenzel+bugs.freedesktop@molgen.mpg.de
Created attac=
hment 140811 [details]
HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg`
(devicelist: amdgpu, maxdepth: 12)
Created attachment 140810<=
/a> [details]
HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg`
(devicelist: amdgpu, maxdepth: 12)
Profiling the suspend and resume time [1] on a MSI B350M MORTAR (MS-7A37) w=
ith
AMD Ryzen 3 2200G with Radeon Vega Graphics with Linux 4.18-rc6+ and
amd-staging-drm-next [2], `pci_pm_suspend()` takes over one second, which is
too long [3], cf. bug 107278 [3].
This is spent in `amdgpu_device_ip_resume_phase2()`, where 505 ms are spent=
in
`flush_delayed_work()`.
=E2=80=A2 flush_delayed_work (505.026 ms @ 98.640854)
[=E2=80=A6]
=E2=80=A2 flush_work (505.017 ms @ 98.640863)
[=E2=80=A6]
=E2=80=A2 wait_for_completion (504.985 ms @ 98.640894)
[=E2=80=A6]
=E2=80=A2 schedule_timeout (504.963 ms @ 98.640914)
[=E2=80=A6]
=E2=80=A2 schedule (504.963 ms @ 98.640914)
[1]: https://01.org/suspendresume<=
/a>
[2]: https://cgit.freedesktop.org/~agd5f/linux/log/?h=3Damd-stagin=
g-drm-next
[3]: https://bugs.freedesktop.org/show_bug.=
cgi?id=3D107278