OpenCloudOS-Kernel/drivers/gpu/drm/amd
Yong Zhao 7bdc53f925 drm/amdgpu: Fix a bug in amdgpu_fill_buffer()
When max_bytes is not 8 bytes aligned and bo size is larger than
max_bytes, the last 8 bytes in a ttm node may be left unchanged.
For example, on pre SDMA 4.0, max_bytes = 0x1fffff, and the bo size
is 0x200000, the problem will happen.

In order to fix the problem, we separately store the max nums of
PTEs/PDEs a single operation can set in amdgpu_vm_pte_funcs
structure, rather than inferring it from bytes limit of SDMA
constant fill, i.e. fill_max_bytes.

Together with the fix, we replace the hard code value "10" in
amdgpu_vm_bo_update_mapping() with the corresponding values from
structure amdgpu_vm_pte_funcs.

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>
2017-09-26 15:14:21 -04:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu drm/amdgpu: Fix a bug in amdgpu_fill_buffer() 2017-09-26 15:14:21 -04:00
amdkfd drm/amdkfd: Use PASID manager from KGD 2017-09-26 13:07:04 -04:00
include drm/amdgpu: add cgs query info of pci bus devfn 2017-09-26 15:14:16 -04:00
lib drm/amd: Closed hash table with low overhead (v2) 2017-09-26 14:53:19 -04:00
powerplay drm/amd/powerplay: refine phm_register_thermal_interrupt interface 2017-09-26 15:14:19 -04:00
scheduler drm/amdgpu: discard commands of killed processes 2017-08-29 15:27:42 -04:00