Skip to content

Commit 64261a0

Browse files
YuBiao Wangalexdeucher
authored andcommitted
drm/amd/amdgpu: Add ready_to_reset resp for vega10
Send response to host after received the flr notification from host. Port NV change to vega10. Signed-off-by: YuBiao Wang <[email protected]> Reviewed-by: Jingwen Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8f0c93f commit 64261a0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ static void xgpu_ai_mailbox_flr_work(struct work_struct *work)
258258
amdgpu_virt_fini_data_exchange(adev);
259259
atomic_set(&adev->in_gpu_reset, 1);
260260

261+
xgpu_ai_mailbox_trans_msg(adev, IDH_READY_TO_RESET, 0, 0, 0);
262+
261263
do {
262264
if (xgpu_ai_mailbox_peek_msg(adev) == IDH_FLR_NOTIFICATION_CMPL)
263265
goto flr_done;

drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ enum idh_request {
3737
IDH_REQ_GPU_RESET_ACCESS,
3838

3939
IDH_LOG_VF_ERROR = 200,
40+
IDH_READY_TO_RESET = 201,
4041
};
4142

4243
enum idh_event {

0 commit comments

Comments
 (0)