]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc42e8849e1504b1b07fbfbc0d05f30f3206b3d25
tree6b00f4a3160e1b4ece0d63f11f31a11cd13a39da
parent41de9fc855350e387df021b1e49a225c4fc97d70
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