Repository navigation
Commit 2f228aa
drm/amdgpu/dc: Require primary plane to be enabled whenever the CRTC is
Don't check drm_crtc_state::active for this either, per its
documentation in include/drm/drm_crtc.h:
* Hence drivers must not consult @Active in their various
* &drm_mode_config_funcs.atomic_check callback to reject an atomic
* commit.
atomic_remove_fb disables the CRTC as needed for disabling the primary
plane.
This prevents at least the following problems if the primary plane gets
disabled (e.g. due to destroying the FB assigned to the primary plane,
as happens e.g. with mutter in Wayland mode):
* The legacy cursor ioctl returned EINVAL for a non-0 cursor FB ID
(which enables the cursor plane).
* If the cursor plane was enabled, changing the legacy DPMS property
value from off to on returned EINVAL.
v2:
* Minor changes to code comment and commit log, per review feedback.
GitLab: https://gitlab.gnome.org/GNOME/mutter/-/issues/1108
GitLab: https://gitlab.gnome.org/GNOME/mutter/-/issues/1165
GitLab: https://gitlab.gnome.org/GNOME/mutter/-/issues/1344
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 40eab0f commit 2f228aa
1 file changed
Lines changed: 10 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5278 | 5278 | | |
5279 | 5279 | | |
5280 | 5280 | | |
5281 | | - | |
5282 | | - | |
5283 | | - | |
5284 | | - | |
5285 | | - | |
5286 | | - | |
5287 | | - | |
5288 | | - | |
5289 | | - | |
5290 | | - | |
5291 | | - | |
5292 | | - | |
5293 | | - | |
5294 | 5281 | | |
5295 | 5282 | | |
5296 | 5283 | | |
| |||
5354 | 5341 | | |
5355 | 5342 | | |
5356 | 5343 | | |
5357 | | - | |
5358 | | - | |
5359 | | - | |
5360 | | - | |
5361 | 5344 | | |
5362 | | - | |
5363 | | - | |
| 5345 | + | |
| 5346 | + | |
| 5347 | + | |
| 5348 | + | |
5364 | 5349 | | |
5365 | | - | |
5366 | | - | |
5367 | | - | |
| 5350 | + | |
| 5351 | + | |
5368 | 5352 | | |
5369 | 5353 | | |
| 5354 | + | |
| 5355 | + | |
| 5356 | + | |
| 5357 | + | |
5370 | 5358 | | |
5371 | 5359 | | |
5372 | 5360 | | |
| |||
0 commit comments