<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Short desktop freezes with Radeon 7850"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97940">97940</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Short desktop freezes with Radeon 7850
</td>
</tr>
<tr>
<th>Product</th>
<td>xorg
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver/Radeon
</td>
</tr>
<tr>
<th>Assignee</th>
<td>xorg-driver-ati@lists.x.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>daniel.lichtenberger@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>xorg-team@lists.x.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=126797" name="attach_126797" title="test program to list all connectors">attachment 126797</a> <a href="attachment.cgi?id=126797&action=edit" title="test program to list all connectors">[details]</a></span>
test program to list all connectors
Kernel: openSUSE Tumbleweed 4.7.4-2-default
HW: Radeon 7850 2GB, dual DVI monitors
I have an annoying issue on my Radeon 7850. At some point in
the kernel 4.x timeframe, the entire desktop started to freeze for
short periods (< 1 second), almost exclusively during startup when
the desktop applets/widgets were loading. It's very
noticeable/annoying because the mouse cursor freezes as well.
Aside from the startup freezes that happen every time, the issue
is hard to reproduce (I get also short freezes when opening a PDF
in a new instance of Okular - the KDE PDF viewer).
With the help of perf I stumbled over suspicious traces of DRM
getconnector calls. I hacked together a small program that reproduces
the issue on my system: when run in a loop, I can barely move the
mouse cursor and I get perf traces like the following:
- drm_helper_probe_single_connector_modes
- 45,15% 0,00% drm-getconnecto [kernel.kallsyms]
[k] drm_helper_probe_single_connector_modes
- 41,70% radeon_dvi_detect
- 40,19% radeon_connector_get_edid
- drm_get_edid
- 39,30% drm_do_get_edid
drm_do_probe_ddc_edid
i2c_transfer
__i2c_transfer
- bit_xfer
+ 16,45% sclhi
15,74% delay_tsc
+ 4,39% acknak
1,14% set_clock
0,76% get_data
+ 0,54% try_address
+ 0,89% drm_do_probe_ddc_edid
+ 1,51% radeon_ddc_probe
+ 3,37% radeon_dp_detect
The program enumerates the VGA connectors with DRM_IOCTL_MODE_GETRESOURCES and
DRM_IOCTL_MODE_GETCONNECTOR syscalls. It's the first call to
DRM_IOCTL_MODE_GETCONNECTOR that seems to cause the issues on my system.
After I stop the program all is well again, the system is stable and I
experience no other issues.
When I ran the program on another system with a Radeon 5750 and a
recent kernel (4.5 or 4.6), it did not cause the intermittent freezes and
worked faster.
I'm running a dual DVI monitor setup and KDE 5. The issue also happens
under other window managers/DEs (IceWM, XFCE), so I don't think it is
related to KDE (but the pattern of connector lookups may have changed in a
recent Qt or xorg version so that the issue became more noticeable).</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>