<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Heavy screen flickering in OpenGL apps on R9 390"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96326#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Heavy screen flickering in OpenGL apps on R9 390"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96326">bug 96326</a>
from <span class="vcard"><a class="email" href="mailto:0xe2.0x9a.0x9b@gmail.com" title="Jan Ziak <0xe2.0x9a.0x9b@gmail.com>"> <span class="fn">Jan Ziak</span></a>
</span></b>
<pre>(In reply to Alex Deucher from <a href="show_bug.cgi?id=96326#c7">comment #7</a>)
<span class="quote">> (In reply to Jan Ziak from <a href="show_bug.cgi?id=96326#c6">comment #6</a>)
> > (In reply to Alex Deucher from <a href="show_bug.cgi?id=96326#c3">comment #3</a>)
> > > Please attach your xorg log and dmesg output.
> >
> > Upstream Linux kernel does not support variable mclk on R9 390. I enabled
> > variable mclk by patching some code in drivers/gpu/drm/amd/amdgpu/ (mostly
> > ci_dpm.c).
>
> What patch(es) did you use?</span >
I added a function based on ci_dpm_force_state_mclk() in ci_dpm.c.
mask is 0x3.
----
static int ci_dpm_force_state_mclk_mask(struct amdgpu_device *adev, u32 mask) {
struct ci_power_info *pi = ci_get_pi(adev);
if (!pi->mclk_dpm_key_disabled) {
PPSMC_Result smc_result =
amdgpu_ci_send_msg_to_smc_with_parameter(adev,
PPSMC_MSG_MCLKDPM_SetEnabledMask, mask);
printk("[atomsymbol] %s:%d: mask=0x%X, ok=%d\n", __FUNCTION__,
__LINE__, mask, smc_result == PPSMC_Result_OK);
if (smc_result != PPSMC_Result_OK)
return -EINVAL;
}
return 0;
}
----
/sys/class/drm/card?/device/power_dpm_force_performance_level is set to "auto".</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>