mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
drm/amd/pm: Add error log for smu v13.0.6 reset
For all mode-2 reset fail cases, add error log. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.7.x
This commit is contained in:
parent
d7a254fad8
commit
91739a897c
|
|
@ -2235,17 +2235,18 @@ static int smu_v13_0_6_mode2_reset(struct smu_context *smu)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
dev_err(adev->dev,
|
||||
"failed to send mode2 message \tparam: 0x%08x error code %d\n",
|
||||
SMU_RESET_MODE_2, ret);
|
||||
if (ret)
|
||||
goto out;
|
||||
}
|
||||
|
||||
} while (ret == -ETIME && timeout);
|
||||
|
||||
out:
|
||||
mutex_unlock(&smu->message_lock);
|
||||
|
||||
if (ret)
|
||||
dev_err(adev->dev, "failed to send mode2 reset, error code %d",
|
||||
ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user