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: skip RAS error injection in SRIOV

Injection on guest is not allowed.

v2: return directly in SRIOV environment.

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
248c9635 6a822b7a

+4
+4
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
··· 1087 1087 info->head.block, 1088 1088 info->head.sub_block_index); 1089 1089 1090 + /* inject on guest isn't allowed, return success directly */ 1091 + if (amdgpu_sriov_vf(adev)) 1092 + return 0; 1093 + 1090 1094 if (!obj) 1091 1095 return -EINVAL; 1092 1096