-
Notifications
You must be signed in to change notification settings - Fork 197
Make IgnoreABI configurable through config files #1473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
It is patch 1/4 of a series that provides a convenient way to specify IgnoreABI on a per-driver/per-module basis through config files. Two Bool variables LoaderIgnoreABI (specific) and LoaderIgnoreAllABI (server-wide) together with helper functions are used to control loader and modules behavior. More verbosity added. Signed-off-by: Oleh Nykyforchyn <[email protected]>
It is patch 2/4 of a series that provides a convenient way to specify IgnoreABI on a per-driver/per-module basis through config files. A list of such modules is specified in OutputClass, which is applied only if certain conditions are met e.g., nvidia-drm driver is loaded. Signed-off-by: Oleh Nykyforchyn <[email protected]>
It is patch 3/4 of a series that provides a convenient way to specify IgnoreABI on a per-driver/per-module basis through config files. This patch adds an "Option IgnoreABI" line to the file /usr/share/X11/xorg.conf.d/10-nvidia.conf with an OutputClass, which makes the loader ignore ABI for the drivers and modules for all devices managed by the nvidia-drm kernel driver. Signed-off-by: Oleh Nykyforchyn <[email protected]>
It is patch 4/4 of a series that provides a convenient way to specify IgnoreABI on a per-driver/per-module basis through config files. This patch updates the man page. Signed-off-by: Oleh Nykyforchyn <[email protected]>
|
@ONykyf Is this desired for anything other than Nvidia? |
For now - no. I rather leave this as a room for future decisions if ignoring ABI will (hypothetically) NOT be necessary for future NVidia releases. |
hw/xfree86/common/xf86platformBus.c
Outdated
| if (cl->modules) { | ||
| LogMessageVerb(X_CONFIG, 1, " and for modules \"%s\" as well\n", | ||
| cl->modules); | ||
| XNFasprintf(©, "%s", cl->modules); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we please use asprintf() here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we please use asprintf() here ?
OK, I'll do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@metux
So XNFasprintf / XNFvasprintf will be eliminated completely in the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@metux I have replaced all previously introduced XNFasprintfs with asprintfs.
This patch replaces all occurences of XNFasprintf() in xf86platformBus.c and OutputClass.c with asprintf(). Signed-off-by: Oleh Nykyforchyn <[email protected]>
This patch series gives a user/maintainer the power to decide whether to ignore ABI version for any driver/module depending on the loaded DRM kernel drivers (with NVidia legacy drivers in mind, and a configuration file for this is included), and this policy is controlled via
/usr/share/X11/xorg.conf.d/*.conffiles.