Commit 996aede2 authored by Changfeng's avatar Changfeng Committed by Alex Deucher
Browse files

drm/amdgpu: decline max_me for mec2_fw remove in renoir/arcturus



The value of max_me in amdgpu_gfx_rlc_setup_cp_table should reduce to 4
when mec2_fw is removed on asic renoir/arcturus. Or it will cause kernel
NULL pointer when modprobe driver.

Signed-off-by: default avatarChangfeng <Changfeng.Zhu@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 650bc7ae
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1890,7 +1890,10 @@ static void gfx_v9_0_enable_lbpw(struct amdgpu_device *adev, bool enable)

static int gfx_v9_0_cp_jump_table_num(struct amdgpu_device *adev)
{
	if (gfx_v9_0_load_mec2_fw_bin_support(adev))
		return 5;
	else
		return 4;
}

static int gfx_v9_0_rlc_init(struct amdgpu_device *adev)