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>
Wed, 24 Mar 2021 03:27:45 +0000 (23:27 -0400)
commit1a31474cdb48257bad3edb174a261a27192c2107
tree6b3481e5ce5ae66299e300ac6da61bc07be49b8b
parent1c7b0adae8ea408cb49311e4d315f55d7929eb58
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>
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