OSDN Git Service

drm/amdgpu: check rlc_g firmware pointer is valid before using it
authorshaoyunl <shaoyun.liu@amd.com>
Fri, 10 Jan 2020 18:27:23 +0000 (13:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 18:35:17 +0000 (13:35 -0500)
commitb4df2823ec10c695ae4218965d55ac8909c8842c
tree18e5ba5593589cea7f8737aa14942f55184d6cd1
parent971fe55545de2f67463def381df57d803dddf61d
drm/amdgpu: check rlc_g firmware pointer is valid before using it

In SRIOV, rlc_g firmware is loaded by host, guest driver won't load it which will
cause the rlc_fw pointer is null

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c