Displaying 1 result from an estimated 1 matches for "modeset_init".
2023 Mar 01
0
[PATCH v4] drm/virtio: Add option to disable KMS support
...> to have a per-driver option (and not global) because there are scenarios
> of using passthrough GPU + virtio-gpu in a guest, hence we would only
> want to toggle KMS for a particular driver.
IMHO both ways options to disable the KMS bits should work the same way.
With the current patch modeset_init() runs with num_scanouts == 0 but
doesn't with CONFIG_KMS=n. There are also two different ways to tweak
driver_features. Can we get rid of that please, for robustness reasons?
I'd suggest to have a is_kms_enabled() helper function (probably best as
inline so gcc can figure it is constant...