mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu: add vcn jpeg irq support
Add vcn jpeg irq support. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e612bcc3ab
commit
59dd2b883f
|
@ -88,6 +88,11 @@ static int vcn_v1_0_sw_init(void *handle)
|
|||
return r;
|
||||
}
|
||||
|
||||
/* VCN JPEG TRAP */
|
||||
r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN, 126, &adev->vcn.irq);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
r = amdgpu_vcn_sw_init(adev);
|
||||
if (r)
|
||||
return r;
|
||||
|
@ -1438,6 +1443,9 @@ static int vcn_v1_0_process_interrupt(struct amdgpu_device *adev,
|
|||
case 120:
|
||||
amdgpu_fence_process(&adev->vcn.ring_enc[1]);
|
||||
break;
|
||||
case 126:
|
||||
amdgpu_fence_process(&adev->vcn.ring_jpeg);
|
||||
break;
|
||||
default:
|
||||
DRM_ERROR("Unhandled interrupt: %d %d\n",
|
||||
entry->src_id, entry->src_data[0]);
|
||||
|
|
Loading…
Reference in New Issue