]> 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)
commita28b87493ab8015690cecb00afac2e883d6dac41
tree18e5ba5593589cea7f8737aa14942f55184d6cd1
parentc6acbdc4b1d27ef781fa5f36a06b2ed0c2c1e030
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