Commit 4c1a0fc
drm/radeon: Do not hold console lock during resume
The function radeon_resume_kms() acquires the console lock. It is
inconsistent, as it depends on the notify_client argument. That
lock then covers a number of suspend operations that are unrelated
to the console.
Remove the calls to console_lock() and console_unlock() from the
radeon function. The console lock is only required by DRM's fbdev
emulation, which acquires it as necessary.
Also fixes a possible circular dependency between the console lock
and the client-list mutex, where the mutex is supposed to be taken
first.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit fff8e05)1 parent 5dd0b96 commit 4c1a0fc
1 file changed
+3
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
1659 | 1658 | | |
1660 | 1659 | | |
1661 | 1660 | | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | 1661 | | |
1666 | 1662 | | |
1667 | 1663 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1664 | + | |
1671 | 1665 | | |
1672 | | - | |
1673 | 1666 | | |
1674 | 1667 | | |
1675 | 1668 | | |
| |||
1745 | 1738 | | |
1746 | 1739 | | |
1747 | 1740 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
| 1741 | + | |
| 1742 | + | |
1752 | 1743 | | |
1753 | 1744 | | |
1754 | 1745 | | |
| |||
0 commit comments