[PATCH 2/4] amdgpu: set va flag with input parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>
---
 amdgpu/amdgpu_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index 6189e5a..800b77a 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -941,7 +941,7 @@ int amdgpu_bo_va_op(amdgpu_bo_handle bo,
 	memset(&va, 0, sizeof(va));
 	va.handle = bo->handle;
 	va.operation = ops;
-	va.flags = AMDGPU_VM_PAGE_READABLE |
+	va.flags = flags | AMDGPU_VM_PAGE_READABLE |
 		   AMDGPU_VM_PAGE_WRITEABLE |
 		   AMDGPU_VM_PAGE_EXECUTABLE;
 	va.va_address = addr;
-- 
1.9.1



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux