drm/amdgpu:fix typo for mxgpu_ai
authorMonk Liu <Monk.Liu@amd.com>
Wed, 5 Apr 2017 04:16:44 +0000 (12:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Apr 2017 17:28:05 +0000 (13:28 -0400)
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c

index cfd5e54777bb0251b5e6a7c105acf3f0ac741592..740c0f8e4b226ba062e21396fb18ef8eb2db055a 100644 (file)
@@ -133,7 +133,7 @@ static int xgpu_ai_poll_ack(struct amdgpu_device *adev)
        return r;
 }
 
-static int xgpu_vi_poll_msg(struct amdgpu_device *adev, enum idh_event event)
+static int xgpu_ai_poll_msg(struct amdgpu_device *adev, enum idh_event event)
 {
        int r = 0, timeout = AI_MAILBOX_TIMEDOUT;
 
@@ -172,7 +172,7 @@ static int xgpu_ai_send_access_requests(struct amdgpu_device *adev,
        if (req == IDH_REQ_GPU_INIT_ACCESS ||
                req == IDH_REQ_GPU_FINI_ACCESS ||
                req == IDH_REQ_GPU_RESET_ACCESS) {
-               r = xgpu_vi_poll_msg(adev, IDH_READY_TO_ACCESS_GPU);
+               r = xgpu_ai_poll_msg(adev, IDH_READY_TO_ACCESS_GPU);
                if (r)
                        return r;
        }