Commit 67e1e92
committed
accel/amdxdna: Fix missing import_attach in amdxdna_gem_prime_import
Set gobj->import_attach in amdxdna_gem_prime_import() so that
drm_gem_shmem_vmap_locked() takes the dma-buf import path instead of
calling drm_gem_get_pages() on an object with a NULL file pointer.
Without this, imported BOs (e.g. from virtio-gpu in QEMU) trigger a
WARNING in drm_gem_get_pages and vmap fails with -EINVAL.
Signed-off-by: Wendy Liang <wendy.liang@amd.com>1 parent acbbf9c commit 67e1e92
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| 874 | + | |
874 | 875 | | |
875 | 876 | | |
876 | 877 | | |
| |||
0 commit comments