mirror_ubuntu-kernels/drivers/gpu/drm/amd
Piotr Redlewski c1fe75c9e4 drm/amd/amdgpu: fix UVD mc offsets
When UVD bo is created, its size is based on the information from firmware
header (ucode_size_bytes). The same value should be be used when programming
UVD mc controller offsets, otherwise it can happen that
(mmUVD_VCPU_CACHE_OFFSET2 + mmUVD_VCPU_CACHE_SIZE2) will point
AMDGPU_GPU_PAGE_SIZE bytes after the UVD bo end.

Second issue is that when programming the mmUVD_VCPU_CACHE_SIZE0 register,
AMDGPU_UVD_FIRMWARE_OFFSET should be taken into account. If it isn't,
(mmUVD_VCPU_CACHE_OFFSET2 + mmUVD_VCPU_CACHE_SIZE2) will always point
AMDGPU_UVD_FIRMWARE_OFFSET bytes after the UVD bo end.

v2: move firmware size calculation into macro definition
v3: align firmware size to the gpu page size

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Piotr Redlewski <predlewski@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-06 12:47:22 -05:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu drm/amd/amdgpu: fix UVD mc offsets 2017-12-06 12:47:22 -05:00
amdkfd Merge tag 'drm-amdkfd-fixes-2017-11-26' of git://people.freedesktop.org/~gabbayo/linux into drm-fixes 2017-12-01 09:14:46 +10:00
display drm/amd/display: Multi display synchronization logic 2017-12-06 12:47:22 -05:00
include drm/amdgpu: add new pp function point notify_smu_memory_info 2017-12-04 16:33:18 -05:00
lib drm/amd/chash: Fix typo 2017-09-28 16:03:29 -04:00
powerplay drm/amd/pp: delete an outdated comment in amd_powerplay.c 2017-12-04 16:33:19 -05:00
scheduler drm/amd/scheduler: add WARN_ON for s_fence->parent 2017-12-06 12:47:18 -05:00