diff options
| author | Hawking Zhang <[email protected]> | 2018-12-12 17:29:53 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-06-21 02:46:50 +0000 |
| commit | 119eb6db542f9d81ba9e488175ac171f3b29aee2 (patch) | |
| tree | 301dba7faa76d307609194e2d7224c8659e9abfb /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
| parent | drm/amd/amdgpu: add flag to mark whether autoload is supported or not (diff) | |
| download | kernel-119eb6db542f9d81ba9e488175ac171f3b29aee2.tar.gz kernel-119eb6db542f9d81ba9e488175ac171f3b29aee2.zip | |
drm/amdgpu/psp: skip mec jt when autoload is enabled
When autoload is enabled, there is no need to load mec jt,
RLC will handle it automatically
Signed-off-by: Hawking Zhang <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Jack Xiao <[email protected]>
Reviewed-by: Le Ma <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index f4e4d7b918c8..d6009772ad8d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -939,6 +939,11 @@ static int psp_np_fw_load(struct psp_context *psp) || ucode->ucode_id == AMDGPU_UCODE_ID_RLC_G)) /*skip ucode loading in SRIOV VF */ continue; + if (psp->autoload_supported && + (ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC1_JT || + ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC2_JT)) + /* skip mec JT when autoload is enabled */ + continue; ret = psp_prep_load_ip_fw_cmd_buf(ucode, psp->cmd); if (ret) |
