From: Likun Gao Date: Thu, 29 Feb 2024 13:20:51 +0000 (+0800) Subject: drm/amdgpu: skip dpm check to init imu fw X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b32edc2340c6ed9164093aaf43f8fe8eb04e20e7;p=users%2Fwilly%2Flinux.git drm/amdgpu: skip dpm check to init imu fw Skip dpm check to init imu firmware for imu v12. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 6a2af12b5e29..33fe519e617d 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c @@ -461,7 +461,7 @@ static int gfx_v12_0_init_microcode(struct amdgpu_device *adev) /* only one MEC for gfx 12 */ adev->gfx.mec2_fw = NULL; - if (adev->gfx.imu.funcs && (amdgpu_dpm > 0)) { + if (adev->gfx.imu.funcs) { if (adev->gfx.imu.funcs->init_microcode) { err = adev->gfx.imu.funcs->init_microcode(adev); if (err)