Created
November 29, 2020 10:22
-
-
Save tdrkDev/716c4a5fbddbdabffd1411229df63a72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN NVIDIA-Linux-x86_64-340.108/kernel/nv-drm.c Patchedfor510/kernel/nv-drm.c | |
--- NVIDIA-Linux-x86_64-340.108/kernel/nv-drm.c 2020-11-29 13:16:00.788410148 +0300 | |
+++ Patched-for-5.10/kernel/nv-drm.c 2020-11-29 13:05:44.628654208 +0300 | |
@@ -365,7 +365,7 @@ | |
struct nv_gem_object *nv_obj = container_of(obj, struct nv_gem_object, base); | |
int page_count = obj->size >> PAGE_SHIFT; | |
- return drm_prime_pages_to_sg(nv_obj->pages, page_count); | |
+ return drm_prime_pages_to_sg(nv_obj->base.dev, nv_obj->pages, page_count); | |
} | |
static void* nv_gem_prime_vmap( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment