]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9191096d72cf0654664c9ed7ed0ba50fe4cab0d8
tree18e5ba5593589cea7f8737aa14942f55184d6cd1
parent281b42742947557bffd7357afc09d2e935c2a7eb
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