diff options
| author | Yong Zhao <[email protected]> | 2017-09-19 16:58:15 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-09-26 19:14:22 +0000 |
| commit | e6d921974a51e607515b39baa8d1c3f1a27d008b (patch) | |
| tree | 4aeb7393832e368bc09c256cb15ce3ba59383ace /drivers/gpu/drm/amd/amdgpu/cik_sdma.c | |
| parent | drm/amdgpu: Fix a bug in amdgpu_fill_buffer() (diff) | |
| download | kernel-e6d921974a51e607515b39baa8d1c3f1a27d008b.tar.gz kernel-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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik_sdma.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c index c64dcd1883b5..60cecd117705 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c @@ -1387,7 +1387,9 @@ static void cik_sdma_set_buffer_funcs(struct amdgpu_device *adev) } static const struct amdgpu_vm_pte_funcs cik_sdma_vm_pte_funcs = { + .copy_pte_num_dw = 7, .copy_pte = cik_sdma_vm_copy_pte, + .write_pte = cik_sdma_vm_write_pte, .set_max_nums_pte_pde = 0x1fffff >> 3, |
