platform/x86: amd-pmc: Send command to dump data after clearing OS_HINT
authorSanket Goswami <Sanket.Goswami@amd.com>
Tue, 21 Sep 2021 11:59:10 +0000 (17:29 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 28 Sep 2021 14:24:09 +0000 (16:24 +0200)
commit9c93f8f4fc8cd938bc0ee8d121809c6941e03347
tree4df2addfe6e5c10047e65707e5a130b5881f3286
parent40635cd32f0d83573a558dc30e9ba3469e769249
platform/x86: amd-pmc: Send command to dump data after clearing OS_HINT

It was reported that the resume stats received from the firmware are
always zero. This happens because the SMU expects the driver to send the
command to dump the log data after clearing the OS_HINT.

Adjust the order of the commands sent to SMU.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Link: https://lore.kernel.org/r/20210921115910.19401-1-Sanket.Goswami@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c