drm/amd/pm: Modify mode2 msg sequence on aldebaran
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 16 Mar 2021 11:19:09 +0000 (19:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:45:57 +0000 (16:45 -0400)
commite42569d02acb25bc3a840caeb6dbf35d859dcec4
tree34ab9cfd2a49669e2b1012df4482a87a75a7c90c
parente6c6338f393b74ac0b303d567bb918b44ae7ad75
drm/amd/pm: Modify mode2 msg sequence on aldebaran

v1: During mode2 reset, PCI space is lost after message is sent.
Restore PCI space before waiting for response from firmware.

v2: Move mode2 sequence to aldebaran and update PMFW version.
Handle generic sequence in smu13 without PMFW version check.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h