Commit f66cb86
committed
nvidia-drm: handle -EDEADLK in nv_drm_reset_input_colorspace
drm_atomic_get_plane_state() and drm_atomic_commit() can return -EDEADLK when
ww-mutex deadlock avoidance triggers. The current
nv_drm_reset_input_colorspace() path drops locks and returns without running
the required modeset backoff/retry flow.
Rework the function to retry the atomic sequence with drm_modeset_backoff(&ctx),
rebuilding atomic state on each retry, and only finish once the sequence
succeeds or another error is returned.
Signed-off-by: Paul Moses <p@1g4.org>1 parent 2ccbad2 commit f66cb86
2 files changed
Lines changed: 33 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | 940 | | |
945 | 941 | | |
946 | 942 | | |
947 | 943 | | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
948 | 952 | | |
949 | 953 | | |
950 | 954 | | |
951 | 955 | | |
952 | 956 | | |
953 | 957 | | |
954 | | - | |
| 958 | + | |
955 | 959 | | |
956 | 960 | | |
957 | 961 | | |
| |||
967 | 971 | | |
968 | 972 | | |
969 | 973 | | |
970 | | - | |
| 974 | + | |
971 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
972 | 985 | | |
973 | 986 | | |
974 | 987 | | |
| |||
1386 | 1399 | | |
1387 | 1400 | | |
1388 | 1401 | | |
1389 | | - | |
1390 | | - | |
| 1402 | + | |
| 1403 | + | |
1391 | 1404 | | |
1392 | 1405 | | |
1393 | 1406 | | |
| |||
1398 | 1411 | | |
1399 | 1412 | | |
1400 | 1413 | | |
1401 | | - | |
1402 | | - | |
| 1414 | + | |
| 1415 | + | |
1403 | 1416 | | |
1404 | 1417 | | |
1405 | 1418 | | |
| |||
1442 | 1455 | | |
1443 | 1456 | | |
1444 | 1457 | | |
| 1458 | + | |
1445 | 1459 | | |
1446 | 1460 | | |
1447 | 1461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| |||
0 commit comments