Skip to content

Commit 4eb0b49

Browse files
Tong Liu01alexdeucher
authored andcommitted
drm/amdgpu: add mes resume when do gfx post soft reset
[why] when gfx do soft reset, mes will also do reset, if mes is not resumed when do recover from soft reset, mes is unable to respond in later sequence [how] resume mes when do gfx post soft reset Signed-off-by: Tong Liu01 <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b589626 commit 4eb0b49

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4655,6 +4655,14 @@ static bool gfx_v11_0_check_soft_reset(void *handle)
46554655
return false;
46564656
}
46574657

4658+
static int gfx_v11_0_post_soft_reset(void *handle)
4659+
{
4660+
/**
4661+
* GFX soft reset will impact MES, need resume MES when do GFX soft reset
4662+
*/
4663+
return amdgpu_mes_resume((struct amdgpu_device *)handle);
4664+
}
4665+
46584666
static uint64_t gfx_v11_0_get_gpu_clock_counter(struct amdgpu_device *adev)
46594667
{
46604668
uint64_t clock;
@@ -6166,6 +6174,7 @@ static const struct amd_ip_funcs gfx_v11_0_ip_funcs = {
61666174
.wait_for_idle = gfx_v11_0_wait_for_idle,
61676175
.soft_reset = gfx_v11_0_soft_reset,
61686176
.check_soft_reset = gfx_v11_0_check_soft_reset,
6177+
.post_soft_reset = gfx_v11_0_post_soft_reset,
61696178
.set_clockgating_state = gfx_v11_0_set_clockgating_state,
61706179
.set_powergating_state = gfx_v11_0_set_powergating_state,
61716180
.get_clockgating_state = gfx_v11_0_get_clockgating_state,

0 commit comments

Comments
 (0)