Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: add VCN poison consumption handler for SRIOV

Inform host and let host handle consumption interrupt.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tao Zhou and committed by
Alex Deucher
6a822b7a e643823d

+10 -2
+10 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
··· 1250 1250 if (!ras_if) 1251 1251 return 0; 1252 1252 1253 - ih_data.head = *ras_if; 1254 - amdgpu_ras_interrupt_dispatch(adev, &ih_data); 1253 + if (!amdgpu_sriov_vf(adev)) { 1254 + ih_data.head = *ras_if; 1255 + amdgpu_ras_interrupt_dispatch(adev, &ih_data); 1256 + } else { 1257 + if (adev->virt.ops && adev->virt.ops->ras_poison_handler) 1258 + adev->virt.ops->ras_poison_handler(adev); 1259 + else 1260 + dev_warn(adev->dev, 1261 + "No ras_poison_handler interface in SRIOV for VCN!\n"); 1262 + } 1255 1263 1256 1264 return 0; 1257 1265 }