[PATCH] drm/amdgpu: remove imu start dependency on amdgpu_dpm.

Yu, Lang Lang.Yu at amd.com
Tue Jan 30 08:33:39 UTC 2024


[Public]

Reviewed-by: Lang Yu <lang.yu at amd.com>

>-----Original Message-----
>From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Yifan Zhang
>Sent: Saturday, January 20, 2024 4:32 PM
>To: amd-gfx at lists.freedesktop.org
>Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Huang, Tim
><Tim.Huang at amd.com>; Feng, Kenneth <Kenneth.Feng at amd.com>; Ma, Li
><Li.Ma at amd.com>; Zhang, Yifan <Yifan1.Zhang at amd.com>
>Subject: [PATCH] drm/amdgpu: remove imu start dependency on amdgpu_dpm.
>
>IMU starts anyway when dpm is disabled in backdoor loading.
>
>Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
>---
> drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
>b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
>index a2d3cced8f19..c5b1d036c95d 100644
>--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
>+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
>@@ -4324,7 +4324,7 @@ static int gfx_v11_0_hw_init(void *handle)
>                       return r;
>       } else {
>               if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) {
>-                      if (adev->gfx.imu.funcs && (amdgpu_dpm > 0)) {
>+                      if (adev->gfx.imu.funcs) {
>                               if (adev->gfx.imu.funcs->load_microcode)
>                                       adev->gfx.imu.funcs-
>>load_microcode(adev);
>                               if (adev->gfx.imu.funcs->setup_imu)
>--
>2.37.3



More information about the amd-gfx mailing list