Skip to content

Commit ebdc526

Browse files
ISCAS-Vulabalexdeucher
authored andcommitted
drm/amdgpu/gfx12: correct cleanup of 'me' field with gfx_v12_0_me_fini()
In gfx_v12_0_cp_gfx_load_me_microcode_rs64(), gfx_v12_0_pfp_fini() is incorrectly used to free 'me' field of 'gfx', since gfx_v12_0_pfp_fini() can only release 'pfp' field of 'gfx'. The release function of 'me' field should be gfx_v12_0_me_fini(). Fixes: 52cb80c ("drm/amdgpu: Add gfx v12_0 ip block support (v6)") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 42d9d7b commit ebdc526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ static int gfx_v12_0_cp_gfx_load_me_microcode_rs64(struct amdgpu_device *adev)
24552455
(void **)&adev->gfx.me.me_fw_data_ptr);
24562456
if (r) {
24572457
dev_err(adev->dev, "(%d) failed to create me data bo\n", r);
2458-
gfx_v12_0_pfp_fini(adev);
2458+
gfx_v12_0_me_fini(adev);
24592459
return r;
24602460
}
24612461

0 commit comments

Comments
 (0)