[PATCH 2/6] drm/amdgpu: disallow foreign BOs for UVD/VCE
Felix Kuehling
Felix.Kuehling at amd.com
Thu Jul 6 20:16:23 UTC 2017
From: Christian König <christian.koenig at amd.com>
They don't support VM mode yet.
Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index 82131d7..24035e4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -1343,7 +1343,8 @@ struct amdgpu_bo_va_mapping *
struct amdgpu_bo_list_entry *lobj;
lobj = &parser->bo_list->array[i];
- if (!lobj->bo_va)
+ if (!lobj->bo_va ||
+ amdgpu_ttm_adev(lobj->bo_va->bo->tbo.bdev) != parser->adev)
continue;
list_for_each_entry(mapping, &lobj->bo_va->valids, list) {
--
1.9.1
More information about the amd-gfx
mailing list