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)
commit9d03730ecbc5afabfda26d4dbb014310bc4ea4d9
tree735e306176b81600dc30b5cbc274eb4450f9c436
parentac5789ef927006a8449ea235a866922b2d8f8290
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