NVIDIA 364.12 release: Vulkan, GLVND, DRM KMS, and EGLStreams
[quote=""]I've been trying this intermittently since the first release, when it worked. I figured someone broke something and it would be fixed, but seemingly not. Anyway, for a long time, launching weston just goes to a completely black screen, but is seemingly reactive to input. I get the following kernel messages at that time: [code][ 25.886961] [b]usercopy: kernel memory overwrite attempt detected[/b] to ffff8804290b7ce0 [/code] [/quote] You will need to recompile the kernel with CONFIG_HARDENED_USERCOPY=n https://devtalk.nvidia.com/default/topic/974491/linux/gtx-580-375-10-weston-eglstream-produces-crash-in-kernel/
said:I've been trying this intermittently since the first release, when it worked. I figured someone broke something and it would be fixed, but seemingly not. Anyway, for a long time, launching weston just goes to a completely black screen, but is seemingly reactive to input. I get the following kernel messages at that time:

[   25.886961] usercopy: kernel memory overwrite attempt detected to ffff8804290b7ce0




You will need to recompile the kernel with CONFIG_HARDENED_USERCOPY=n


https://devtalk.nvidia.com/default/topic/974491/linux/gtx-580-375-10-weston-eglstream-produces-crash-in-kernel/

#61
Posted 12/13/2016 08:03 AM   
[quote=""] You will need to recompile the kernel with CONFIG_HARDENED_USERCOPY=n https://devtalk.nvidia.com/default/topic/974491/linux/gtx-580-375-10-weston-eglstream-produces-crash-in-kernel/[/quote] Thanks, Weston works again. Anyone figured out how to start a Gnome wayland session without using a login manager? I can run "mutter" stand-alone, and it starts a compositor instance, but it doesn't do anything without everything else running.
said:
You will need to recompile the kernel with CONFIG_HARDENED_USERCOPY=n


https://devtalk.nvidia.com/default/topic/974491/linux/gtx-580-375-10-weston-eglstream-produces-crash-in-kernel/


Thanks, Weston works again.

Anyone figured out how to start a Gnome wayland session without using a login manager? I can run "mutter" stand-alone, and it starts a compositor instance, but it doesn't do anything without everything else running.

#62
Posted 12/13/2016 11:59 PM   
Are the Weston patches supposed to work with the latest nvidia packages? I keep getting "failed to initialize egl" and "fatal: failed to create compositor backend" errors whenever I try to launch Weston. Am I running into the same kernel issue?
Are the Weston patches supposed to work with the latest nvidia packages? I keep getting "failed to initialize egl" and "fatal: failed to create compositor backend" errors whenever I try to launch Weston. Am I running into the same kernel issue?

#63
Posted 12/16/2016 04:57 AM   
[quote=""]Are the Weston patches supposed to work with the latest nvidia packages? I keep getting "failed to initialize egl" and "fatal: failed to create compositor backend" errors whenever I try to launch Weston. Am I running into the same kernel issue?[/quote] Do you load the nvidia-drm module with modeset=1 and launch weston with "weston --use-egldevice"? Weston with EGLStreams/EGLDevice starts fine with the latest driver.
said:Are the Weston patches supposed to work with the latest nvidia packages? I keep getting "failed to initialize egl" and "fatal: failed to create compositor backend" errors whenever I try to launch Weston. Am I running into the same kernel issue?


Do you load the nvidia-drm module with modeset=1 and launch weston with "weston --use-egldevice"? Weston with EGLStreams/EGLDevice starts fine with the latest driver.

#64
Posted 12/17/2016 07:37 PM   
Thanks for the info. I did do that, but at least I know it's not a driver issue. I'll look more into it when I get back home.
Thanks for the info. I did do that, but at least I know it's not a driver issue. I'll look more into it when I get back home.

#65
Posted 12/17/2016 08:08 PM   
See: [url]http://imgur.com/a/CBmac[/url] Followed the instructions for Arch here: [url]https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting[/url]
See: http://imgur.com/a/CBmac

Followed the instructions for Arch here: https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting

#66
Posted 12/18/2016 05:29 AM   
I'm trying to use the modesetting interface through the libdrm API (drmModeGetResources() etc) to query the video device configuration. The application works with the nouveau, radeon, amdgpu, and i915 drivers, but not with the nvidia proprietary driver. drmAvailable() returns false, and most other calls return an error value of EINVAL (invalid argument). I have tested using driver 375.26 on Fedora 25, kernel 4.9.8 and driver 367.27 on Ubuntu 14.04, kernel 4.4.0. I see 3 possibilities: 1) I've misunderstood this post. Support for KMS in the Nvidia driver does not refer to these facilities. 2) The Nvidia driver is not properly configured. Parameter nvida-drm.modeset=1 is passed on the command line, as well as being set in modprobe.d. modprobe -n -vv nvidia-drm reports: [code] insmod /lib/modules/4.4.0-62-generic/updates/dkms/nvidia_367_drm.ko modeset=0 modeset=1 modeset=1 [/code] And dmeg contains the following lines: [code] 2.113245] [drm] Initialized drm 1.1.0 20060810 [ 2.135747] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver [ 2.964251] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 2.964253] [drm] No driver support for vblank timestamp query. [/code] From other posts, I believe this indicates that modesetting is configured. But perhaps there's something else that needs to be done. 3) There's some secret sauce that needs to be added to the code. As I said, the application works with the common open source drivers. Guidance appreciated
I'm trying to use the modesetting interface through the libdrm API (drmModeGetResources() etc) to query the video device configuration. The application works with the nouveau, radeon, amdgpu, and i915 drivers, but not with the nvidia proprietary driver. drmAvailable() returns false, and most other calls return an error value of EINVAL (invalid argument).

I have tested using driver 375.26 on Fedora 25, kernel 4.9.8 and driver 367.27 on Ubuntu 14.04, kernel 4.4.0.

I see 3 possibilities:

1) I've misunderstood this post. Support for KMS in the Nvidia driver does not refer to these facilities.

2) The Nvidia driver is not properly configured.

Parameter nvida-drm.modeset=1 is passed on the command line, as well as being set in modprobe.d.

modprobe -n -vv nvidia-drm reports:

insmod /lib/modules/4.4.0-62-generic/updates/dkms/nvidia_367_drm.ko modeset=0 modeset=1 modeset=1


And dmeg contains the following lines:
2.113245] [drm] Initialized drm 1.1.0 20060810
[ 2.135747] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 2.964251] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.964253] [drm] No driver support for vblank timestamp query.


From other posts, I believe this indicates that modesetting is configured. But perhaps there's something else that needs to be done.

3) There's some secret sauce that needs to be added to the code. As I said, the application works with the common open source drivers.

Guidance appreciated

#67
Posted 02/13/2017 03:05 PM   
Hello, small question regarding libglvnd and nvidia optimus. Is glvnd a step into "windows-like-dynamic-switching" direction?
Hello,

small question regarding libglvnd and nvidia optimus. Is glvnd a step into "windows-like-dynamic-switching" direction?

#68
Posted 05/10/2017 04:29 PM   
Hello. Is there a plans to support Xwayland on Nvidia driver? I can't run any GLX application on GNOME Wayland with Nvidia drivers, it give's me "Could not initialize GLX"
Hello. Is there a plans to support Xwayland on Nvidia driver? I can't run any GLX application on GNOME Wayland with Nvidia drivers, it give's me "Could not initialize GLX"

#69
Posted 07/13/2017 11:11 PM   
libglvnd allows X clients to choose the appropriate GLX driver based on the GLX vendor provided by the X server. To get true "windows-like-dynamic-switching" you also need the X server to be able to choose the correct vendor based on which X screen the client is talking to. Work on that part is still in the prototype phase. There's a thread about it here: https://lists.x.org/archives/xorg-devel/2017-July/054121.html We currently have no plans to support Xwayland.
libglvnd allows X clients to choose the appropriate GLX driver based on the GLX vendor provided by the X server. To get true "windows-like-dynamic-switching" you also need the X server to be able to choose the correct vendor based on which X screen the client is talking to. Work on that part is still in the prototype phase. There's a thread about it here: https://lists.x.org/archives/xorg-devel/2017-July/054121.html


We currently have no plans to support Xwayland.

Aaron Plattner
NVIDIA Linux Graphics

#70
Posted 07/20/2017 06:25 PM   
Hello, I'm having problems on running any kind of vulkan example. I wrote a small triangle snippet that was working once and now it gives me: VkResult is "ERROR_OUT_OF_HOST_MEMORY" Moreover, this dmesg is displayed whenever I try to run a vulkan program or a wayland session (running a wayland session usually leads to a freeze) [code] [ 46.575238] nvidia-modeset: Allocated GPU:0 (GPU-11f5c854-549f-e316-402b-12d0ed756f2a) @ PCI:0000:01:00.0 [ 46.575364] nvidia-modeset: Freed GPU:0 (GPU-11f5c854-549f-e316-402b-12d0ed756f2a) @ PCI:0000:01:00.0 [/code] Opengl runs smoothly, it may be a misconfiguration but I don't understand where it could be. Could you help me? Just tell me what kind of info you need. Thank you, -l
Hello,

I'm having problems on running any kind of vulkan example.
I wrote a small triangle snippet that was working once and now it gives me:

VkResult is "ERROR_OUT_OF_HOST_MEMORY"

Moreover, this dmesg is displayed whenever I try to run a vulkan program or a wayland session (running a wayland session usually leads to a freeze)

[   46.575238] nvidia-modeset: Allocated GPU:0 (GPU-11f5c854-549f-e316-402b-12d0ed756f2a) @ PCI:0000:01:00.0
[ 46.575364] nvidia-modeset: Freed GPU:0 (GPU-11f5c854-549f-e316-402b-12d0ed756f2a) @ PCI:0000:01:00.0



Opengl runs smoothly, it may be a misconfiguration but I don't understand where it could be.
Could you help me? Just tell me what kind of info you need.

Thank you,

-l

#71
Posted 10/06/2017 01:52 PM   
Scroll To Top

Add Reply