Kernel – 6.8 Pre-testing – Breaks NVIDIA and VMware – VMware fix available.. — 3 Comments

  1. Hello Robert,

    I’ve been able to compile + boot the 6.8-rc1 pre-release with the following changes.
    I’ve changed the ‘|DROM_UNLOCK’ stuff with ‘|0’ (that’s a zero) and ‘DRM_UNLOCK|’ with ‘0|’ in nvidia-drm-drv.c.

    Perhaps this can even be omitted completely?

    That seems to do the trick. But when compiling the DKMS modules I got some GPL errors for which I created a patch for the kernel source itself for the files: arch/x86/kernel/alternative.c and kernel/rcu/tree_plugin.h

    Hope this helps…
    I used this kernel commit for this ‘experiment’:

    diff -rupN linux-6.8-rc1/arch/x86/kernel/alternative.c linux-6.8-rc1p/arch/x86/kernel/alternative.c
    — linux-6.8-rc1/arch/x86/kernel/alternative.c 2024-01-19 03:22:40.000000000 +0100
    +++ linux-6.8-rc1p/arch/x86/kernel/alternative.c 2024-01-19 14:06:22.727924046 +0100
    @@ -403,7 +403,7 @@ noinstr void BUG_func(void)

    #define CALL_RIP_REL_OPCODE 0xff
    #define CALL_RIP_REL_MODRM 0x15
    diff -rupN linux-6.8-rc1/kernel/rcu/tree_plugin.h linux-6.8-rc1p/kernel/rcu/tree_plugin.h
    — linux-6.8-rc1/kernel/rcu/tree_plugin.h 2024-01-19 03:22:40.000000000 +0100
    +++ linux-6.8-rc1p/kernel/rcu/tree_plugin.h 2024-01-19 14:05:48.555779664 +0100
    @@ -406,7 +406,7 @@ void __rcu_read_lock(void)
    WRITE_ONCE(current->rcu_read_unlock_special.b.need_qs, true);
    barrier(); /* critical section after entry code. */

    * Preemptible RCU implementation for rcu_read_unlock().
    @@ -431,7 +431,7 @@ void __rcu_read_unlock(void)

    * Advance a ->blkd_tasks-list pointer to the next entry, instead

    • Thanks for this.. I’ve been having odd issues with the interim pre versions of 6.8, and the version (with debugging deselected) does not throw the GPL errors with NVIDIA 535.154.05, but the Fedora 40 version _does_.. For some reason, the graphics console works, but the text one does not, although it does work on the F40 version.. There seems to be some strange issue with fonts.. I’m waiting for the ‘real’ -rc1 before more testing…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.