hi,
maybe this page helps:
https://gist.github.com/joanbm

Best Regards | Freundliche Grüße | Cordialement | Cordiali Saluti | Atenciosamente | Saludos Cordiales

DI Rainer Klier

DevOps, Research & Development



Von: Patrick Shanahan <paka@opensuse.org>
Gesendet: Montag, 25. März 2024 13:57
An: users@lists.opensuse.org <users@lists.opensuse.org>
Betreff: Re: Again: error with kernel 6.8.1-1 when compiling nVidia
 
* Masaru Nomiya <nomiya@lake.dti.ne.jp> [03-25-24 00:46]:
> Hello,
>
> In the Message;
>
>   Subject    : Re: Again: error with kernel 6.8.1-1 when compiling nVidia
>   Message-ID : <987fc246-4e3f-456e-b01f-f5128fcc8985@yahoo.de>
>   Date & Time: Sat, 23 Mar 2024 20:28:12 +0100
>
> [PM] == Peter Maffter via openSUSE Users <users@lists.opensuse.org> has written:
>
> [...]
> PM>  after editing nvidia-drm-drv.c and replacing DRM_UNLOCKED with 0 according to
> PM>  https://urldefense.com/v3/__https://github.com/CachyOS/kernel-patches/blob/master/6.8/misc/nvidia/0001-nvidia-545.patch__;!!LFrK7YXB0Q!pc-LAqKs8C396fNdtbeHhI7HbyPlVcTGhy4LgZm50AJ4rljQEaw2NKs1xudW-bzO1upVFTV_8Mx_$
> [...]
>
> I don't think 'replacing DRM_UNLOCKED with 0' is correct.
> So, looking at 550.67, replacing 'DRM_RENDER_ALLOW|0' seems correct.
>
> I've created a patch along these lines, so please give it a try.
>
> The patched driver is created as follows;
>
>   $ sh ./NVIDIA-Linux-x86_64-390.157.run --apply-patch 390.patch
>

on my nvidia modules I see:
  static const enum drm_ioctl_flags DRM_UNLOCKED = 0;
  

--
(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
https://urldefense.com/v3/__http://en.opensuse.org__;!!LFrK7YXB0Q!pc-LAqKs8C396fNdtbeHhI7HbyPlVcTGhy4LgZm50AJ4rljQEaw2NKs1xudW-bzO1upVFVZCZOZL$     openSUSE Community Member    facebook/ptilopteri
Photos: https://urldefense.com/v3/__http://wahoo.no-ip.org/piwigo__;!!LFrK7YXB0Q!pc-LAqKs8C396fNdtbeHhI7HbyPlVcTGhy4LgZm50AJ4rljQEaw2NKs1xudW-bzO1upVFWrV6biw$                    paka @ IRCnet oftc