diff options
author | Tiecheng Zhou <[email protected]> | 2020-04-26 19:03:17 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-04-28 11:44:11 -0400 |
commit | c7833d332e05cfa7b190b37dd3094c7257f1ea6d (patch) | |
tree | aa6ab8ab929582dcd6dc325831f4cf0873dd0de9 /scripts/gdb/linux/utils.py | |
parent | a1cd1289a68c4f9fb7551edd06c6a6b4661a4cbb (diff) |
drm/amd/powerplay: avoid using pm_en before it is initialized revised
hwmgr->pm_en is initialized at hwmgr_hw_init.
during amdgpu_device_init, there is amdgpu_asic_reset that calls to
soc15_asic_reset (for V320 usecase, Vega10 asic), in which:
1) soc15_asic_reset_method calls to pp_get_asic_baco_capability (pm_en)
2) soc15_asic_baco_reset calls to pp_set_asic_baco_state (pm_en)
pm_en is used in the above two cases while it has not yet been initialized
So avoid using pm_en in the above two functions for V320 passthrough.
Reviewed-by: Evan Quan <[email protected]>
Signed-off-by: Tiecheng Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions