]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/swsmu/i2c: return an error if the SMU is not running
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jan 2022 17:17:23 +0000 (12:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jan 2022 20:50:03 +0000 (15:50 -0500)
commita48974735bbf741182ca096bf474925b23ad6a55
treeefafddada5a7a4374b402460c5d7779bbec56c0c
parent1a32f85db682e00e5585fc11b7852fedec2b55af
drm/amdgpu/swsmu/i2c: return an error if the SMU is not running

Return an error if someone tries to use the i2c bus when the
SMU is not running.  Otherwise we can end up sending commands
to the SMU which will either get ignored or could cause other
issues depending on what state the GPU and SMU are in.

Cc: Luben.Tuikov@amd.com
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c