Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Ports
bumblebee
nvidia-uvm-modeset-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nvidia-uvm-modeset-support.patch of Package bumblebee
--- a/src/bbsecondary.c 2013-04-26 17:49:03.000000000 +0200 +++ b/src/bbsecondary.c 2015-10-20 22:25:52.874484211 +0200 @@ -119,6 +119,17 @@ if (!module_load(module_name, driver_name)) { set_bb_error("Could not load GPU driver"); return false; + } else { + /* XXX NVIDIA UVM support */ + if (strstr(module_name, "nvidia")) { /* We are using NVIDIA's proprietary driver */ + char uvm_module_name[1024]; + sprintf(uvm_module_name, "%s-uvm", module_name); + if (!module_load(uvm_module_name, "nvidia_uvm")) { + char log_string[1024]; + sprintf(log_string, "Cannot load UVM module: %s\n", uvm_module_name); + bb_log(LOG_ERR, log_string); + } + } } } return true; @@ -232,6 +243,11 @@ } /* unload the driver loaded by the graphica card */ if (pci_get_driver(driver, pci_bus_id_discrete, sizeof driver)) { + /* XXX NVIDIA UVM,MODESET support */ + if (strstr(driver, "nvidia")) { + module_unload("nvidia_modeset"); + module_unload("nvidia_uvm"); + } module_unload(driver); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor