drm/amdgpu/pm: Add default case for smu IH process func
authorMa Jun <Jun.Ma2@amd.com>
Mon, 22 Jan 2024 06:21:11 +0000 (14:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 19:49:12 +0000 (14:49 -0500)
Add default case for smu IH process func.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 8047150fddd490c48e08f22efadd00ade899160b..fbeb31bf9e482284f4558933732505e1c7554806 100644 (file)
@@ -1462,6 +1462,10 @@ static int smu_v11_0_irq_process(struct amdgpu_device *adev,
                                        schedule_work(&smu->throttling_logging_work);
 
                                break;
+                       default:
+                               dev_dbg(adev->dev, "Unhandled context id %d from client:%d!\n",
+                                                                       ctxid, client_id);
+                               break;
                        }
                }
        }
index c486182ff275222fedfaa1e27c417f9be80d19d0..6edf0e94c65e2fdb1e76296c0c51100213f07ca1 100644 (file)
@@ -1429,6 +1429,10 @@ static int smu_v13_0_irq_process(struct amdgpu_device *adev,
                                data = data & (~THM_THERMAL_INT_CTRL__THERM_TRIGGER_MASK_MASK);
                                WREG32_SOC15(THM, 0, regTHM_THERMAL_INT_CTRL, data);
                                break;
+                       default:
+                               dev_dbg(adev->dev, "Unhandled context id %d from client:%d!\n",
+                                                                       ctxid, client_id);
+                               break;
                        }
                }
        }
index bf1c7e63db7d112a3d53e33e59122e8c6f48fedd..d6e14a5f406e63cf29e362ee718d8b435bae72cd 100644 (file)
@@ -1439,7 +1439,10 @@ static int smu_v13_0_6_irq_process(struct amdgpu_device *adev,
                                                        entry->src_data[1]);
                                        schedule_work(&smu->throttling_logging_work);
                                }
-
+                               break;
+                       default:
+                               dev_dbg(adev->dev, "Unhandled context id %d from client:%d!\n",
+                                                                       ctxid, client_id);
                                break;
                        }
                }