Skip to content
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

[setup] Add NVK support #750

Closed
LukeShortCloud opened this issue Jan 17, 2024 · 10 comments
Closed

[setup] Add NVK support #750

LukeShortCloud opened this issue Jan 17, 2024 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@LukeShortCloud
Copy link
Owner

We need to ensure things such as the linux-t2 being updated to Linux 6.7 and GSP firmware being enabled.

Related: #520

@LukeShortCloud LukeShortCloud added the enhancement New feature or request label Jan 17, 2024
@LukeShortCloud
Copy link
Owner Author

Mesa 24.0 is now available in the Arch Linux repositories but NVK is still disabled and hidden behind an experimental build flag.

@LukeShortCloud
Copy link
Owner Author

Mesa 24.1 is slated to come out on 2024-05-01 which might finally enable NVK by default.

https://docs.mesa3d.org/release-calendar.html

As it is today, we can test with linux-t2 and vulkan-nouveau-git.

@LukeShortCloud
Copy link
Owner Author

Confirmed: NVK will be enabled by default in Mesa 24.1.0!

https://www.phoronix.com/news/Mesa-NVK-Vulkan-Conformant

@LukeShortCloud
Copy link
Owner Author

NVK recommends using Zink for OpenGL instead of nouveau.

$ sudo vim /etc/environment
__GLX_VENDOR_LIBRARY_NAME=mesa
MESA_LOADER_DRIVER_OVERRIDE=zink
GALLIUM_DRIVER=zink

Eventually, older GPUs (Kepler through Maxell) will be fully supported. Until then, we can enable experimental support.

$ sudo vim /etc/environment
NVK_I_WANT_A_BROKEN_VULKAN_DRIVER=1

https://docs.mesa3d.org/drivers/nvk.html

@LukeShortCloud
Copy link
Owner Author

We need to change this line in our README.md file to include NVIDIA:

Open source OpenGL and Vulkan drivers are installed for AMD, Intel, VirtualBox, and VMware graphics.

@LukeShortCloud
Copy link
Owner Author

LukeShortCloud commented Apr 14, 2024

The GSP firmware can be enabled for all NVIDIA devices by setting this kernel boot argument: nouveau.config=NvGspRm=1

https://lists.freedesktop.org/archives/nouveau/2023-September/043193.html

@LukeShortCloud
Copy link
Owner Author

Since we are using Wayland by default now and the open source Mesa drivers for NVIDIA have greatly improved, we can remove the xf86-video-nouveau package from being installed in the winesapOS build.

@LukeShortCloud LukeShortCloud self-assigned this May 15, 2024
@LukeShortCloud
Copy link
Owner Author

As mentioned here, NVK is now available in the official Arch Linux repositories as these two packages: vulkan-nouveau and lib32-vulkan-nouveau.

@LukeShortCloud
Copy link
Owner Author

Related to all this: nova is being worked on as a new kernel driver for NVIDIA as a successor to nouveau. For the NVIDIA open kernel module drivers, we should block it.

https://www.phoronix.com/news/Red-Hat-Nova-Rust-Abstractions

LukeShortCloud added a commit that referenced this issue May 16, 2024
Use the Mesa NVK graphics driver for older graphics cards starting
with Kepler. It can also be used for portability.

Also block the upcoming 'nova' graphics driver when installing the
NVIDIA open kernel module drivers.

Enable the use of GSP firmware binaries for both the NVIDIA open
kernel module drivers and the Mesa NVK driver.

Resolves #750
@LukeShortCloud
Copy link
Owner Author

I tested enabling Zink globally with NVK and that leads to a black screen. This is consistent with my previous testing, too.

#512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant