aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c1
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
index b4906d2f30d3..f91aab38637c 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
@@ -353,5 +353,6 @@ const struct amdgpu_virt_ops xgpu_ai_virt_ops = {
353 .req_full_gpu = xgpu_ai_request_full_gpu_access, 353 .req_full_gpu = xgpu_ai_request_full_gpu_access,
354 .rel_full_gpu = xgpu_ai_release_full_gpu_access, 354 .rel_full_gpu = xgpu_ai_release_full_gpu_access,
355 .reset_gpu = xgpu_ai_request_reset, 355 .reset_gpu = xgpu_ai_request_reset,
356 .wait_reset = NULL,
356 .trans_msg = xgpu_ai_mailbox_trans_msg, 357 .trans_msg = xgpu_ai_mailbox_trans_msg,
357}; 358};
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
index c25a831f94ec..27b03c773b1b 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
@@ -458,6 +458,11 @@ static int xgpu_vi_request_reset(struct amdgpu_device *adev)
458 return xgpu_vi_send_access_requests(adev, IDH_REQ_GPU_RESET_ACCESS); 458 return xgpu_vi_send_access_requests(adev, IDH_REQ_GPU_RESET_ACCESS);
459} 459}
460 460
461static int xgpu_vi_wait_reset_cmpl(struct amdgpu_device *adev)
462{
463 return xgpu_vi_poll_msg(adev, IDH_FLR_NOTIFICATION_CMPL);
464}
465
461static int xgpu_vi_request_full_gpu_access(struct amdgpu_device *adev, 466static int xgpu_vi_request_full_gpu_access(struct amdgpu_device *adev,
462 bool init) 467 bool init)
463{ 468{
@@ -613,5 +618,6 @@ const struct amdgpu_virt_ops xgpu_vi_virt_ops = {
613 .req_full_gpu = xgpu_vi_request_full_gpu_access, 618 .req_full_gpu = xgpu_vi_request_full_gpu_access,
614 .rel_full_gpu = xgpu_vi_release_full_gpu_access, 619 .rel_full_gpu = xgpu_vi_release_full_gpu_access,
615 .reset_gpu = xgpu_vi_request_reset, 620 .reset_gpu = xgpu_vi_request_reset,
621 .wait_reset = xgpu_vi_wait_reset_cmpl,
616 .trans_msg = NULL, /* Does not need to trans VF errors to host. */ 622 .trans_msg = NULL, /* Does not need to trans VF errors to host. */
617}; 623};