]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3a999bc68347cc6e5e34d27a6a7753b75b80c2d
tree4df2addfe6e5c10047e65707e5a130b5881f3286
parentd83b4ba4915ce9d81ab61d4b48860e2a94237a60
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