Commit 7be1587
amdgpu/pm/legacy: fix suspend/resume issues
commit 91dcc66 upstream.
resume and irq handler happily races in set_power_state()
* amdgpu_legacy_dpm_compute_clocks() needs lock
* protect irq work handler
* fix dpm_enabled usage
v2: fix clang build, integrate Lijo's comments (Alex)
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2524
Fixes: 3712e7a ("drm/amd/pm: unified lock protections in amdgpu_dpm.c")
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Tested-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> # on Oland PRO
Signed-off-by: chr[] <chris@rudorff.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit ee3dc9e)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit c52d6aa)1 parent ceda819 commit 7be1587
3 files changed
Lines changed: 45 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3043 | 3043 | | |
3044 | 3044 | | |
3045 | 3045 | | |
| 3046 | + | |
3046 | 3047 | | |
3047 | 3048 | | |
3048 | 3049 | | |
3049 | 3050 | | |
3050 | 3051 | | |
3051 | 3052 | | |
3052 | 3053 | | |
| 3054 | + | |
| 3055 | + | |
3053 | 3056 | | |
3054 | 3057 | | |
3055 | 3058 | | |
| |||
3067 | 3070 | | |
3068 | 3071 | | |
3069 | 3072 | | |
| 3073 | + | |
| 3074 | + | |
3070 | 3075 | | |
| 3076 | + | |
| 3077 | + | |
3071 | 3078 | | |
3072 | 3079 | | |
3073 | 3080 | | |
3074 | 3081 | | |
| 3082 | + | |
3075 | 3083 | | |
3076 | 3084 | | |
3077 | 3085 | | |
3078 | 3086 | | |
3079 | 3087 | | |
3080 | 3088 | | |
3081 | | - | |
| 3089 | + | |
3082 | 3090 | | |
3083 | 3091 | | |
3084 | | - | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
3085 | 3097 | | |
3086 | 3098 | | |
3087 | 3099 | | |
3088 | | - | |
| 3100 | + | |
3089 | 3101 | | |
3090 | | - | |
| 3102 | + | |
3091 | 3103 | | |
3092 | | - | |
3093 | 3104 | | |
| 3105 | + | |
| 3106 | + | |
3094 | 3107 | | |
3095 | | - | |
| 3108 | + | |
3096 | 3109 | | |
3097 | 3110 | | |
3098 | 3111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
1021 | | - | |
1022 | | - | |
| 1021 | + | |
1023 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1024 | 1027 | | |
1025 | 1028 | | |
1026 | 1029 | | |
| |||
1042 | 1045 | | |
1043 | 1046 | | |
1044 | 1047 | | |
| 1048 | + | |
1045 | 1049 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7789 | 7789 | | |
7790 | 7790 | | |
7791 | 7791 | | |
| 7792 | + | |
7792 | 7793 | | |
7793 | 7794 | | |
7794 | 7795 | | |
7795 | 7796 | | |
7796 | 7797 | | |
7797 | 7798 | | |
7798 | 7799 | | |
| 7800 | + | |
7799 | 7801 | | |
7800 | 7802 | | |
7801 | 7803 | | |
| |||
7813 | 7815 | | |
7814 | 7816 | | |
7815 | 7817 | | |
| 7818 | + | |
| 7819 | + | |
7816 | 7820 | | |
| 7821 | + | |
| 7822 | + | |
7817 | 7823 | | |
7818 | 7824 | | |
7819 | 7825 | | |
7820 | 7826 | | |
| 7827 | + | |
7821 | 7828 | | |
| 7829 | + | |
7822 | 7830 | | |
7823 | 7831 | | |
7824 | 7832 | | |
7825 | 7833 | | |
7826 | 7834 | | |
7827 | | - | |
| 7835 | + | |
7828 | 7836 | | |
7829 | 7837 | | |
7830 | | - | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
| 7841 | + | |
7831 | 7842 | | |
| 7843 | + | |
7832 | 7844 | | |
7833 | 7845 | | |
7834 | | - | |
| 7846 | + | |
7835 | 7847 | | |
7836 | | - | |
| 7848 | + | |
7837 | 7849 | | |
7838 | | - | |
7839 | 7850 | | |
| 7851 | + | |
| 7852 | + | |
7840 | 7853 | | |
7841 | | - | |
| 7854 | + | |
| 7855 | + | |
7842 | 7856 | | |
7843 | 7857 | | |
7844 | 7858 | | |
| |||
0 commit comments