]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: workaround for audio noise issue
authorKenneth Feng <kenneth.feng@amd.com>
Thu, 11 Mar 2021 04:19:57 +0000 (12:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Mar 2021 13:34:26 +0000 (09:34 -0400)
commitc6e1cee2839691e56680ee68d79070ac31b5b568
tree735e306176b81600dc30b5cbc274eb4450f9c436
parent1b4a1709112f1aeee9cadf794d49d22a9b19f56b
drm/amd/pm: workaround for audio noise issue

On some Intel platforms, audio noise can be detected due to
high pcie speed switch latency.
This patch leaverages ppfeaturemask to fix to the highest pcie
speed then disable pcie switching.

v2:
coding style fix

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c