Hotplug blacklist and video devices
Why are all of the framebuffer drivers on the hotplug blacklist?
Signature · 2 lines
Jon Smirl [email protected]
Quoted 1 line · Jon Smirl
Why are all of the framebuffer drivers on the hotplug blacklist?
Well, that probably depends on your distribution. :)
Under Fedora (and RHEL), they're there because we generally don't want to load them unless the user asked for them.
Bill
Quoted 2 lines · Bill Nottingham
Under Fedora (and RHEL), they're there because we generally don't want to load them unless the user asked for them.
Is there a specific reason why they are blocked?
For example I'm looking at making changes to DRM such that DRM will require the corresponding framebuffer driver to be loaded. If you back up further this is part of fixing X so that it won't mess with the hardware from user space. Mode setting would come from the framebuffer driver instead of the X 2D XAA driver.
Signature · 2 lines
Jon Smirl [email protected]
Quoted 5 lines · Jon Smirl
Quoted 2 lines · Bill Nottingham
Under Fedora (and RHEL), they're there because we generally don't want to load them unless the user asked for them.
Is there a specific reason why they are blocked?
One reaseon might be that the framebuffer devices can cause problems, e.g. with proprietary X drivers.
Quoted 2 lines
For example I'm looking at making changes to DRM such that DRM will require the corresponding framebuffer driver to be loaded.
Ignoring my suspicion that people won't like stuff getting forced down their throats like this (why would a DRM _require_ a framebuffer device?), does the hotplug blacklisting of the framebuffer devices matter at all if the DRM depends on them, i.e. won't they be loaded regardless when the DRM is loaded?
Signature · 10 lines
Earthling Michel Dänzer | Debian (powerpc), X and DRI developer Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
Quoted 8 lines · Michel Dänzer
Quoted 2 lines
For example I'm looking at making changes to DRM such that DRM will require the corresponding framebuffer driver to be loaded.
Ignoring my suspicion that people won't like stuff getting forced down their throats like this (why would a DRM _require_ a framebuffer device?), does the hotplug blacklisting of the framebuffer devices matter at all if the DRM depends on them, i.e. won't they be loaded regardless when the DRM is loaded?
There is no mechanism for getting a hotplug remove event into a driver like DRM that doesn't attach to the PCI device.
Signature · 9 lines
Jon Smirl [email protected] ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
Quoted 5 lines · Jon Smirl
For example I'm looking at making changes to DRM such that DRM will require the corresponding framebuffer driver to be loaded. If you back up further this is part of fixing X so that it won't mess with the hardware from user space. Mode setting would come from the framebuffer driver instead of the X 2D XAA driver.
Please don't until all the framebuffer drivers are able to deal with suspend and resume (which will also require some mechanism to switch backlights back on). Currently, it's far easier to restore some amount of state on a standard VGA or VESA mode. There's no real support for doing so with most accelerated framebuffers.
Signature · 1 line
Matthew Garrett | [email protected]
Quoted 8 lines · Matthew Garrett
Quoted 5 lines · Jon Smirl
For example I'm looking at making changes to DRM such that DRM will require the corresponding framebuffer driver to be loaded. If you back up further this is part of fixing X so that it won't mess with the hardware from user space. Mode setting would come from the framebuffer driver instead of the X 2D XAA driver.
Quoted 5 lines
Please don't until all the framebuffer drivers are able to deal with suspend and resume (which will also require some mechanism to switch backlights back on). Currently, it's far easier to restore some amount of state on a standard VGA or VESA mode. There's no real support for doing so with most accelerated framebuffers.
I didn't say make framebuffer depend on DRM, you can still unload DRM before suspend. It's the other way around DRM needs framebuffer. Suspend/resume are part of this. In the current model there is no way for the DRM driver to see the suspend/resume events. I haven't tried it but I suspect a suspend/resume with DRM running has a bad outcome right now.
Signature · 2 lines
Jon Smirl [email protected]
Quoted 6 lines · Jon Smirl
I didn't say make framebuffer depend on DRM, you can still unload DRM before suspend. It's the other way around DRM needs framebuffer. Suspend/resume are part of this. In the current model there is no way for the DRM driver to see the suspend/resume events. I haven't tried it but I suspect a suspend/resume with DRM running has a bad outcome right now.
Right. But for most machines, it's not possible to successfully resume if an accelerated framebuffer driver is loaded. Until that's fixed, tying DRM functionality to the framebuffer will make it impractical to use DRM on laptops. That's a regression from the current situation.
Signature · 1 line
Matthew Garrett | [email protected]
Quoted 3 lines · Jon Smirl
I didn't say make framebuffer depend on DRM, you can still unload DRM before suspend. It's the other way around DRM needs framebuffer.
Only if you want to see the output, surely? I have an application which doesn't need a framebuffer (or more strictly, scan-out), but does use DRM.
J
Quoted 7 lines · Jon Smirl
Is there a specific reason why they are blocked?
For example I'm looking at making changes to DRM such that DRM will require the corresponding framebuffer driver to be loaded. If you back up further this is part of fixing X so that it won't mess with the hardware from user space. Mode setting would come from the framebuffer driver instead of the X 2D XAA driver.
If it's a hard module dep, I don't see how that would be a problem; that would ignore the blacklist.
Bill