]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu: correct vce fw data and stack size
authorFrank Min <Frank.Min@amd.com>
Mon, 6 Nov 2017 07:34:55 +0000 (15:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Dec 2017 19:50:12 +0000 (14:50 -0500)
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>
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c

index 0071a5c43e3d4ea5ae4d80ef5e53c87c7694085f..308949d6eddef6c55cc8a31aff09016c2372c8b0 100755 (executable)
@@ -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;