Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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