drm/amdgpu: add module parameter choose runtime method
authorLikun Gao <Likun.Gao@amd.com>
Fri, 20 Nov 2020 07:54:00 +0000 (15:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:03:52 +0000 (12:03 -0500)
commit2261229cef728da98355e63a6068901640acd504
tree65462e6fab3089b169bfba7b7a011bcc2990ef2c
parentddc3344f165d0e99d877747e73448c5b9fe0f57e
drm/amdgpu: add module parameter choose runtime method

Default runtime logic not changed.
Provide an alternative runtime method. (set 1 to use BACO; 2 to use BAMACO)
When set reset_method to 4, it will use BACO or BAMACO for gpu reset,
according to runpm value.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c