From: Lin Cao <[email protected]>

PSP should not accept a GART VA directly from VF
Add logical to allocate VPE cmdbuf from VRAM

Signed-off-by: Lin Cao <[email protected]>
Reviewed-by: Frank Min <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 39bf218b6f7cd..1f1e1a4343d82 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
@@ -378,7 +378,7 @@ static int vpe_common_init(struct amdgpu_vpe *vpe)
        int r;
 
        r = amdgpu_bo_create_kernel(adev, PAGE_SIZE, PAGE_SIZE,
-                                   AMDGPU_GEM_DOMAIN_GTT,
+                                   AMDGPU_GEM_DOMAIN_VRAM | 
AMDGPU_GEM_DOMAIN_GTT,
                                    &adev->vpe.cmdbuf_obj,
                                    &adev->vpe.cmdbuf_gpu_addr,
                                    (void **)&adev->vpe.cmdbuf_cpu_addr);
-- 
2.55.0

Reply via email to