]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: Add interface to lock SMU HW I2C.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 1 May 2019 22:19:48 +0000 (18:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Aug 2019 13:17:42 +0000 (08:17 -0500)
commitf9f6b318b12caf20ec8c8761dddd168577d134cd
tree8bcbf9b5913f2962718c223b77e7847718a05294
parentfc8ad5faefa778f606863f226dd76c69fb62b18c
drm/amd/powerplay: Add interface to lock SMU HW I2C.

v2:
PPSMC_MSG_RequestI2CBus seems not to work and so to avoid conflict
over I2C bus and engine disable thermal control access to
force SMU stop using the I2C bus until the issue is reslolved.

Expose and call vega20_is_smc_ram_running to skip locking when SMU
FW is not yet loaded.

v3:
Remove the prevoius hack as the SMU found the bug.

v5: Typo fix

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.h