Skip to content

Sles12 sp7 alternative kmp path#121

Closed
e4t wants to merge 1 commit intoopenSUSE:sles15-sp7from
e4t:sles12-sp7-alternative_kmp_path
Closed

Sles12 sp7 alternative kmp path#121
e4t wants to merge 1 commit intoopenSUSE:sles15-sp7from
e4t:sles12-sp7-alternative_kmp_path

Conversation

@e4t
Copy link
Copy Markdown

@e4t e4t commented Sep 22, 2025

This is experimental code that adds /lib/modules/kmp(/) als alternativen module install path. The advantage of this path is that the KMP is not directly installed into the kernel it was built with. Instead weak-updates2 should take care of making this available for this kernel as well.
This ensures there are not multiple versions of the same module available for a single kernel.

@e4t e4t changed the base branch from master to sles15-sp7 September 22, 2025 13:38
Installing KMPs separately from the kernel they are built and using
weak-updates for all kernel versions - including the one the module
was originally built for.
The weak-modules2 script already incorporates logic to create
weak updates for only one module version (i.e. the latest one) per
kernel version.
This way - together with the use of a versioned installation directory
using  INSTALL_MOD_DIR during module installation it is possible to
overcome the one KMP update per kernel version limitation (see
discussion in jsc#PED-12049).

Signed-off-by: Egbert Eich <eich@suse.com>
@e4t e4t force-pushed the sles12-sp7-alternative_kmp_path branch from 306a2cc to 89b8779 Compare September 29, 2025 09:01
@hramrach
Copy link
Copy Markdown
Contributor

Why does the /kmp/ need to be added?

Shouldn't modules installed in /usr/lib/modules/nvdia-G04-175.25 already get scanned for modules?

If not why not?

@hramrach
Copy link
Copy Markdown
Contributor

Duplicate of #123

@hramrach hramrach marked this as a duplicate of #123 Sep 29, 2025
@hramrach hramrach closed this Sep 29, 2025
@e4t
Copy link
Copy Markdown
Author

e4t commented Sep 29, 2025

Why does the /kmp/ need to be added?

Shouldn't modules installed in /usr/lib/modules/nvdia-G04-175.25 already get scanned for modules?

If not why not?

With multiversion(kernel) set but without (/usr)/lib/modules/kmp we will have multiple modules installed (not 'weak-update' linked!) for the build kernel (ie. the kernel the KMP is built against). Thus, we will leave it to depmod to pick the right module.
If we install KMPs outside of the kernel (ie. in (/usr)/lib/modules/kmp ) we leave it to weak_modules2 to pick one kernel and create a weak-update link - giving the control to it instead of relying on depmod to do the right thing.
This is one step towards making multiversion(kernel) work. I'm not a fan of it and I'm advocating to drop it from the NVIDIA open driver, but since others seem to find it useful we should make it work - and I happened to have the patch already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants