drm/amdgpu/runpm: enable runpm on baco capable VI+ asics
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 01:45:33 +0000 (20:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 21:01:03 +0000 (16:01 -0500)
commit4fdda2e66de0b7d37aa27af3c1bbe25ecb2d5408
treed26a39f6233620aa8c3d1017d7b27930b962b475
parent9593f4d6a69b0bc9577a7edb4c79be533957c161
drm/amdgpu/runpm: enable runpm on baco capable VI+ asics

Seems to work reliably on VI+ except for a few so enable runpm barring
those where baco for runtime power management is not supported.

[rajneesh] Picked https://patchwork.freedesktop.org/patch/335402/ to
enable runtime pm with baco for kfd. Also fixed a checkpatch warning and
added extra checks for VEGA20 and ARCTURUS.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c