drm/amd/powerplay: report correct AC/DC event based on ctxid V2
authorEvan Quan <evan.quan@amd.com>
Fri, 8 May 2020 09:55:42 +0000 (17:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 May 2020 20:42:44 +0000 (16:42 -0400)
commitcd598d6cfd217f18e53f6c26b2397692666eb3a4
tree6b00f4a3160e1b4ece0d63f11f31a11cd13a39da
parente528ccf9320c3634395e39d467bb6daed3bec4e8
drm/amd/powerplay: report correct AC/DC event based on ctxid V2

'ctxid' is used to distinguish different events raised from SMC.
0x3 and 0x4 are for AC and DC power mode.

V2: update the way to retrieve the ctxid and change the log level
    to debug

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c