aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/si_dma.c
diff options
context:
space:
mode:
authorYong Zhao <yong.zhao@amd.com>2017-09-19 12:58:15 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 15:14:22 -0400
commite6d921974a51e607515b39baa8d1c3f1a27d008b (patch)
tree4aeb7393832e368bc09c256cb15ce3ba59383ace /drivers/gpu/drm/amd/amdgpu/si_dma.c
parentdrm/amdgpu: Fix a bug in amdgpu_fill_buffer() (diff)
downloadlinux-dev-e6d921974a51e607515b39baa8d1c3f1a27d008b.tar.xz
linux-dev-e6d921974a51e607515b39baa8d1c3f1a27d008b.zip
drm/amdgpu: Add copy_pte_num_dw member in amdgpu_vm_pte_funcs
Use it to replace the hard coded value in amdgpu_vm_bo_update_mapping(). Signed-off-by: Yong Zhao <yong.zhao@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_dma.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/si_dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c b/drivers/gpu/drm/amd/amdgpu/si_dma.c
index adb6ae7d63ef..3fa2fbf8c9a1 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dma.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dma.c
@@ -887,7 +887,9 @@ static void si_dma_set_buffer_funcs(struct amdgpu_device *adev)
}
static const struct amdgpu_vm_pte_funcs si_dma_vm_pte_funcs = {
+ .copy_pte_num_dw = 5,
.copy_pte = si_dma_vm_copy_pte,
+
.write_pte = si_dma_vm_write_pte,
.set_max_nums_pte_pde = 0xffff8 >> 3,