File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,7 +303,11 @@ int evdi_gem_vmap(struct evdi_gem_object *obj)
303303#endif
304304
305305#if KERNEL_VERSION (5 , 11 , 0 ) <= LINUX_VERSION_CODE || defined(EL8 )
306+ # if KERNEL_VERSION (6 , 2 , 0 ) <= LINUX_VERSION_CODE || defined(EL8 ) || defined(EL9 )
307+ ret = dma_buf_vmap_unlocked (obj -> base .import_attach -> dmabuf , & map );
308+ # else
306309 ret = dma_buf_vmap (obj -> base .import_attach -> dmabuf , & map );
310+ # endif
307311 if (ret )
308312 return - ENOMEM ;
309313 obj -> vmapping = map .vaddr ;
@@ -337,7 +341,11 @@ void evdi_gem_vunmap(struct evdi_gem_object *obj)
337341 else
338342 iosys_map_set_vaddr (& map , obj -> vmapping );
339343
344+ # if KERNEL_VERSION (6 , 2 , 0 ) <= LINUX_VERSION_CODE || defined(EL8 ) || defined(EL9 )
345+ dma_buf_vunmap_unlocked (obj -> base .import_attach -> dmabuf , & map );
346+ # else
340347 dma_buf_vunmap (obj -> base .import_attach -> dmabuf , & map );
348+ # endif
341349
342350#elif KERNEL_VERSION (5 , 11 , 0 ) <= LINUX_VERSION_CODE
343351 struct dma_buf_map map ;
You can’t perform that action at this time.
0 commit comments