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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");