diff options
author | 2023-04-21 20:58:39 +0800 | |
---|---|---|
committer | 2023-06-09 12:39:58 -0400 | |
commit | 3898c8fc42b247c26c43c26873895b87fe58b477 (patch) | |
tree | 14d272b4ebee8e3859888adab9b4b91668b4d2df /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | drm/amdgpu: support check vcn jpeg block mask (diff) | |
download | linux-3898c8fc42b247c26c43c26873895b87fe58b477.tar.gz linux-3898c8fc42b247c26c43c26873895b87fe58b477.tar.bz2 linux-3898c8fc42b247c26c43c26873895b87fe58b477.zip |
drm/amdgpu: convert vcn/jpeg logical mask to physical mask
Changed from V1:
Remove amdgpu_ras_logical_mask_to_physical_mask
due to GET_MASK provides same feature.
Support convert VCN/JPEG logical mask to physical
mask.
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 3c7c9fca2391..27559a05a67b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -1691,6 +1691,10 @@ int psp_ras_trigger_error(struct psp_context *psp, case TA_RAS_BLOCK__SDMA: dev_mask = GET_MASK(SDMA0, instance_mask); break; + case TA_RAS_BLOCK__VCN: + case TA_RAS_BLOCK__JPEG: + dev_mask = GET_MASK(VCN, instance_mask); + break; default: dev_mask = instance_mask; break; |