Bug 91388

Summary: X always loads modesetting driver for gpus activated after X was started
Product: xorg Reporter: Karol Herbst <karolherbst>
Component: Server/DDX/XorgAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.conf
none
bt from gdb
none
X log with no driver loaded at launch time
none
X log with a driver loaded at launch time none

Description Karol Herbst 2015-07-18 17:18:21 UTC
Created attachment 117234 [details]
xorg.conf

Whenever I load a kernel module for my nvidia card (nvidia or nouveau, doesn't matter) the X server always loads the modsetting driver for this gpu as long as no module was loaded at X launch time.

This conflicts with my xorg.conf, where I force the dummy module for the nvidia card. And yes I don't want the nouveau nor the modesetting DDX to be loaded, because it makes it impossible for me to unload the module while X is running. And because I only use DRI3 to get gpu offloading.

This actually causes the X server to crash directly after loading the nouveau module.

When a module was loaded at X launch time (nvidia or nouveau), the X server doesn't load anything for this card as expected, whenever I remove and load the modules again.

On a side note: even if I use bumblebee and load the nvidia ddx module in another X server, my primary X server still will load the modesetting driver in the former case, not the latter one.

System information:
laptop hybrid graphics intel hsw + nvidia
gentoo
x server 1.17.2
Comment 1 Karol Herbst 2015-07-18 17:18:35 UTC
Created attachment 117235 [details]
bt from gdb
Comment 2 Karol Herbst 2015-07-18 17:19:31 UTC
Created attachment 117236 [details]
X log with no driver loaded at launch time
Comment 3 Karol Herbst 2015-07-18 17:20:06 UTC
Created attachment 117237 [details]
X log with a driver loaded at launch time
Comment 4 GitLab Migration User 2018-12-13 18:29:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/168.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.