drm/amd/pm: Don't send unload message for reset
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 10 Nov 2023 07:45:39 +0000 (13:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 05:52:44 +0000 (00:52 -0500)
No need to notify about unload during reset. Also remove the FW version
check.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 84fac499cf0cb801bb37624e0f9c20bd7525d1cb..0e5a77c3c2e216362b2e5363f1ec25f62940ede3 100644 (file)
@@ -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)
 {
-       if (smu->smc_fw_version <= 0x553500)
+       if (amdgpu_in_reset(smu->adev))
                return 0;
 
        dev_dbg(smu->adev->dev, "Notify PMFW about driver unload");