drm/amd/pm: skip PrepareMp1ForUnload message in s0ix
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Mon, 28 Jun 2021 07:54:40 +0000 (13:24 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:18 +0000 (00:05 -0400)
commit0e2125227eeef98dbd1cb93c5dd7158981b3355e
tree7b999021797181479340ed302ad4687f4ee2bd7f
parent9f6a78572033b9c35268387630353fa1bdee0320
drm/amd/pm: skip PrepareMp1ForUnload message in s0ix

The documentation around PrepareMp1ForUnload message says that
anything sent to SMU after this command would be stalled as the
PMFW would not be in a state to take further job requests.

Technically this is right in case of S3 scenario. But, this might
not be the case during s0ix as the PMC driver would be the last
to send the SMU on the OS_HINT. If SMU gets a PrepareMp1ForUnload
message before the OS_HINT, this would stall the entire S0ix process.

Results show that, this message to SMU is not required during S0ix
and hence skip it.

Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c