drm/amdgpu: jt_size was wrongly counted twice
authorEvan Quan <evan.quan@amd.com>
Thu, 10 Aug 2017 08:12:45 +0000 (16:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2017 18:46:21 +0000 (14:46 -0400)
Signed-off-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

index d3468a2d8839752bac49cfe55e4e9aa3e1b08cd0..36c763310df5f6402fc3d28be2f2ab5b85245f9f 100644 (file)
@@ -358,8 +358,6 @@ static int amdgpu_ucode_patch_jt(struct amdgpu_firmware_info *ucode,
                           (le32_to_cpu(header->jt_offset) * 4);
        memcpy(dst_addr, src_addr, le32_to_cpu(header->jt_size) * 4);
 
-       ucode->ucode_size += le32_to_cpu(header->jt_size) * 4;
-
        return 0;
 }