diff options
author | Tiecheng Zhou <Tiecheng.Zhou@amd.com> | 2020-04-26 19:03:17 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-04-28 11:44:11 -0400 |
commit | c7833d332e05cfa7b190b37dd3094c7257f1ea6d (patch) | |
tree | aa6ab8ab929582dcd6dc325831f4cf0873dd0de9 /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | |
parent | a1cd1289a68c4f9fb7551edd06c6a6b4661a4cbb (diff) | |
download | linux-c7833d332e05cfa7b190b37dd3094c7257f1ea6d.tar.bz2 |
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 <evan.quan@amd.com>
Signed-off-by: Tiecheng Zhou <Tiecheng.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions