summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
diff options
context:
space:
mode:
authorFrank Min <Frank.Min@amd.com>2017-11-06 10:34:55 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-12-12 22:50:12 +0300
commit1cb4ca59687dc941d5df56aa63ff9c7fa7f7e92f (patch)
tree86442487116400bf51189fea3b8806837dfe09a8 /drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
parentf4534f0654fcaad4bfb4678c9370f315ed30e2f2 (diff)
downloadlinux-1cb4ca59687dc941d5df56aa63ff9c7fa7f7e92f.tar.xz
drm/amdgpu: correct vce fw data and stack size
this fix the VCE world switch hang issue Signed-off-by: Frank Min <Frank.Min@amd.com> Acked-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/vce_v4_0.c')
-rwxr-xr-xdrivers/gpu/drm/amd/amdgpu/vce_v4_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
index 0071a5c43e3d..308949d6edde 100755
--- a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
@@ -423,7 +423,7 @@ static int vce_v4_0_sw_init(void *handle)
if (r)
return r;
- size = (VCE_V4_0_STACK_SIZE + VCE_V4_0_DATA_SIZE) * 2;
+ size = VCE_V4_0_STACK_SIZE + VCE_V4_0_DATA_SIZE;
if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP)
size += VCE_V4_0_FW_SIZE;