Commit c52bf21
committed
drm: apple: Remove conflicting devices as late as possible
Call aperture_remove_conflicting_devices() just before
drm_dev_register(). This reduces the the time at startup without KMS drm
device to a minimum. sddm/kwin(-wayland) fails with "kwin_wayland_drm:
No suitable DRM devices have been found" in this case and never retries.
Reverts commit "drm/apple: Remove simpledrm framebuffer before DRM
device alloc". User space needs to deal with KMS device not being card0.
The attempt to take card0 over from simpledrm was futile as the GPU
driver is racing for this and won in many cases.
Signed-off-by: Janne Grunau <j@jannau.net>1 parent d7f45a0 commit c52bf21
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | 627 | | |
636 | 628 | | |
637 | 629 | | |
| |||
673 | 665 | | |
674 | 666 | | |
675 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| |||
0 commit comments