drm/amd/pm: Add warning for unexpected PG requests
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 25 Nov 2021 11:45:42 +0000 (19:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:03:13 +0000 (16:03 -0500)
commit85c1b9bd13b0b298bbbf128e26a470ec54c4d0e3
treeec759ee8519d8b1583c1f552e4f6292328431026
parent700de2c8aadcae459a4db19b943962e709df45f2
drm/amd/pm: Add warning for unexpected PG requests

v1: Ideally power gate/ungate requests shouldn't come when smu block is
uninitialized. Add a WARN message to check the origins if such a thing
ever happens.

v2: Use dev_WARN to log device info (Felix/Guchun).

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Kevin Yang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c