From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 107277] Raven: pci_pm_suspend takes over 1 second
Date: Wed, 18 Jul 2018 17:17:21 +0000 [thread overview]
Message-ID: <bug-107277-502-Hc0xrVdySY@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-107277-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 2100 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=107277
Paul Menzel <pmenzel+bugs.freedesktop@molgen.mpg.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #6 from Paul Menzel <pmenzel+bugs.freedesktop@molgen.mpg.de> ---
(In reply to Paul Menzel from comment #3)
> (In reply to Christian König from comment #2)
[…]
> > > amdgpu_device_ip_suspend [amdgpu] (694.390 ms @ 75.000977)
> >
> > This is hardware teardown and rather interesting and the only point we could
> > actually do something. Can you figure out what takes so long here?
>
> I’ll try to figure that out.
I increased the maximum depth to 10, and according to the trace the loop in
`gfx_v9_0_enter_rlc_safe_mode()` is the culprit. Also, in all the function is
called three times.
static void gfx_v9_0_enter_rlc_safe_mode(struct amdgpu_device *adev)
{
uint32_t rlc_setting, data;
unsigned i;
if (adev->gfx.rlc.in_safe_mode)
return;
/* if RLC is not enabled, do nothing */
rlc_setting = RREG32_SOC15(GC, 0, mmRLC_CNTL);
if (!(rlc_setting & RLC_CNTL__RLC_ENABLE_F32_MASK))
return;
if (adev->cg_flags &
(AMD_CG_SUPPORT_GFX_CGCG | AMD_CG_SUPPORT_GFX_MGCG |
AMD_CG_SUPPORT_GFX_3D_CGCG)) {
data = RLC_SAFE_MODE__CMD_MASK;
data |= (1 << RLC_SAFE_MODE__MESSAGE__SHIFT);
WREG32_SOC15(GC, 0, mmRLC_SAFE_MODE, data);
/* wait for RLC_SAFE_MODE */
for (i = 0; i < adev->usec_timeout; i++) {
if (!REG_GET_FIELD(SOC15_REG_OFFSET(GC, 0,
mmRLC_SAFE_MODE), RLC_SAFE_MODE, CMD))
break;
udelay(1);
}
adev->gfx.rlc.in_safe_mode = true;
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3631 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
next prev parent reply other threads:[~2018-07-18 17:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 14:47 [Bug 107277] Raven: pci_pm_suspend takes over 1 second bugzilla-daemon
2018-07-18 14:50 ` bugzilla-daemon
2018-07-18 15:05 ` bugzilla-daemon
2018-07-18 15:19 ` bugzilla-daemon
2018-07-18 15:27 ` bugzilla-daemon
2018-07-18 15:37 ` bugzilla-daemon
2018-07-18 15:44 ` bugzilla-daemon
2018-07-18 15:44 ` bugzilla-daemon
2018-07-18 17:17 ` bugzilla-daemon [this message]
2018-07-19 15:15 ` bugzilla-daemon
2018-07-19 15:46 ` bugzilla-daemon
2018-07-19 15:56 ` bugzilla-daemon
2018-07-19 16:35 ` bugzilla-daemon
2018-07-20 15:28 ` bugzilla-daemon
2018-07-20 16:30 ` bugzilla-daemon
2018-07-23 9:36 ` bugzilla-daemon
2018-07-31 16:43 ` bugzilla-daemon
2019-11-19 8:44 ` bugzilla-daemon
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=bug-107277-502-Hc0xrVdySY@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/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