Commit 0f216364 authored by Lijo Lazar's avatar Lijo Lazar Committed by Alex Deucher

drm/amd/pm: Don't send unload message for reset

No need to notify about unload during reset. Also remove the FW version
check.
Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarYang Wang <kevinyang.wang@amd.com>
Reviewed-by: default avatarAsad Kamal <asad.kamal@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 07ee43fa
...@@ -1454,7 +1454,7 @@ static int smu_v13_0_6_register_irq_handler(struct smu_context *smu) ...@@ -1454,7 +1454,7 @@ static int smu_v13_0_6_register_irq_handler(struct smu_context *smu)
static int smu_v13_0_6_notify_unload(struct smu_context *smu) static int smu_v13_0_6_notify_unload(struct smu_context *smu)
{ {
if (smu->smc_fw_version <= 0x553500) if (amdgpu_in_reset(smu->adev))
return 0; return 0;
dev_dbg(smu->adev->dev, "Notify PMFW about driver unload"); dev_dbg(smu->adev->dev, "Notify PMFW about driver unload");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment