linux/drivers/gpu/drm/amd/powerplay
Hua Zhang a16be2fe14 drm/amd/powerplay: skip smu_i2c_eeprom_init/fini under sriov mode
When smu_i2c_eeprom_init is called on the smu resuming process
under sroiv mode, there will be a call trace:
[  436.377690]  dump_stack+0x63/0x85
[  436.377695]  kobject_init+0x77/0x90
[  436.377704]  device_initialize+0x28/0x110
[  436.377708]  device_register+0x12/0x20
[  436.377756]  i2c_register_adapter+0xeb/0x400
[  436.377763]  i2c_add_adapter+0x5a/0x80
[  436.377951]  arcturus_i2c_eeprom_control_init+0x60/0x80 [amdgpu]
[  436.378123]  smu_resume+0xcc/0x110 [amdgpu]
[  436.378247]  amdgpu_device_gpu_recover+0xfb1/0xfc0 [amdgpu]
[  436.378401]  amdgpu_job_timedout+0xf2/0x150 [amdgpu]
[  436.378414]  drm_sched_job_timedout+0x70/0xc0 [amd_sched]
[  436.378420]  ? drm_sched_job_timedout+0x70/0xc0 [amd_sched]
[  436.378430]  process_one_work+0x1fd/0x3f0
[  436.378438]  worker_thread+0x34/0x410
[  436.378444]  kthread+0x121/0x140
[  436.378451]  ? process_one_work+0x3f0/0x3f0
[  436.378456]  ? kthread_create_worker_on_cpu+0x70/0x70
[  436.378464]  ret_from_fork+0x35/0x40

This is because smu_i2c_eeprom is not released on gpu recovering.
Actually, smu_i2c_eeprom_init/fini are only needed under bare
mental mode.

Signed-off-by: Hua Zhang <hua.zhang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-05-28 14:00:49 -04:00
..
hwmgr drm/amdgpu: add apu flags (v2) 2020-05-22 13:41:53 -04:00
inc drm/amd/powerplay: remove the support of vega20 from swsmu 2020-05-28 14:00:49 -04:00
smumgr drm/amdgpu: add apu flags (v2) 2020-05-22 13:41:53 -04:00
amd_powerplay.c drm/amd/powerplay: perform PG ungate prior to CG ungate 2020-05-06 16:51:15 -04:00
amdgpu_smu.c drm/amd/powerplay: skip smu_i2c_eeprom_init/fini under sriov mode 2020-05-28 14:00:49 -04:00
arcturus_ppt.c drm/amdgpu: resolve ras recovery vs smi race condition 2020-05-21 12:46:51 -04:00
arcturus_ppt.h drm/amd/powerplay: update arcturus_ppt.c/h V3 2019-07-30 23:48:33 -05:00
Makefile drm/amd/powerplay: remove the support of vega20 from swsmu 2020-05-28 14:00:49 -04:00
navi10_ppt.c drm/amdgpu/navi10: fix unsigned comparison with 0 2020-05-06 16:51:39 -04:00
navi10_ppt.h drm/amdgpu/smu: custom pstate profiling clock frequence for navi series asics 2020-01-07 12:01:09 -05:00
renoir_ppt.c drm/amdgpu/powerplay:avoid to show invalid DPM table info 2020-04-22 18:11:49 -04:00
renoir_ppt.h drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK 2020-04-03 17:20:15 -04:00
smu_internal.h drm/amd/powerplay: correct i2c eeprom init/fini sequence 2020-04-22 18:11:45 -04:00
smu_v11_0.c drm/amd/powerplay: remove the support of vega20 from swsmu 2020-05-28 14:00:49 -04:00
smu_v12_0.c drm/amdgpu: cache smu fw version info 2020-04-22 18:11:46 -04:00