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 8047150..fbeb31b 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 c486182..6edf0e9 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 bf1c7e6..d6e14a5 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;
                        }
                }