Skip to content

Critical: modesetting driver refuses to give way to another driver and crashes #1505

@ONykyf

Description

@ONykyf

Select the version

Git master branch

Describe your issue

modesetting driver on master tries to initialize its Screen 1 (modeset(1)) in parallel to Screen 0 for a preferred driver (NVIDIA(0) or RADEON(0)). On xlibre-xserver-25.0.0.16 (and previous versions) finally

(II) UnloadModule: "modesetting"
(II) Unloading modesetting
(II) UnloadModule: "vesa"
(II) Unloading vesa

is done, and everything is OK both for NVidia and Radeon. But on master modeset(1) goes on initializing. For NVidia, it just comes to

(II) modeset(1): Damage tracking initialized
(II) modeset(1): Setting screen physical size to 508 x 285
(II) Screen(s) initialized

and then to

(II) Input(s) initialized
(II) modeset(1): Disabling kernel dirty updates, not required.
(EE) modeset(1): failed to set mode: Invalid argument

which is the last message from this screen - not good, but no harm. But for Radeon, I get

(EE) modeset(1): drmSetMaster failed: Device or resource busy

Fatal server error:
AddScreen/ScreenInit failed for driver 1

#1479 has been applied to both master and xlibre-xserver-25.0.0.16, to avoid problems with registering private keys, otherwise crashes would appear earlier.

I attach logs with time marks stripped off, to make diffing easier.

Steps to reproduce

  1. Start X on Radeon HD 5700
  2. Observe xserver crashed

What did you expect?

modesetting driver to give way to others gracefully.

Additional Information

X logs:

xlibre-server-25.0.0.16 on NVidia GTX 760

Xorg.0.log-nvidia470-16-cleared.txt

xlibre-server-master on NVidia GTX 760

Xorg.0.log-nvidia470-master-cleared.txt

xlibre-server-25.0.0.16 on Radeon HD 5700

Xorg.0.log-radeon-16-cleared.txt

xlibre-server-master on Radeon HD 5700

Xorg.0.log-radeon-master-cleared.txt

Extra fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageThis needs to be reviewed and categorized.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions