drm/amd/pm: fix missing handle PERF_DETERMINISM level in smu13 & 14 & 15
Subsystems (3)
PATCH 1/1 drm/amd/pm: fix missing handle PERF_DETERMINISM level in smu13 & 14 & 15
add missing performance level AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM in smu13,14,15.
kernel dmesg log:
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performance level 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 1 + 3 files changed, 3 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1 -0
@@ -1659,6 +1659,7 @@ int smu_v13_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c +1 -0
@@ -1321,6 +1321,7 @@ int smu_v14_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c +1 -0
@@ -1210,6 +1210,7 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);
Signature · 1 line
2.47.3
Quoted 8 lines · Yang Wang
add missing performance level
AMD_DPM_FORCED_LEVEL_PERF_DETERMINISMin smu13,14,15.kernel dmesg log:
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performance level 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512Fixes 6be6424684cb ("drm/amd/pm: Enable performance determinism on aldebaran")
Determinism level is only available for specific SOCs, so the the error message is still valid.
Thanks,
Lijo
Quoted 43 lines
Signed-off-by Yang Wang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 1 + 3 files changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1
-0@@ -1659,6 +1659,7 @@ int smu_v13_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c +1
-0@@ -1321,6 +1321,7 @@ int smu_v14_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c +1
-0@@ -1210,6 +1210,7 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);
[AMD Official Use Only - AMD Internal Distribution Only]
The term "invalid" in the dmesg log may cause ambiguity for customers.
The software-defined performance levels shall be properly handled by all pm swsmu/powerplay backends.
In addition, the kgd interface should provide a consistent set of APIs to ensure that user-space programs (e.g., amd-smi) can invoke these interfaces without issues.
Best Regards,
Kevin
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, February 4, 2026 11:52 AM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix missing handle PERF_DETERMINISM level in smu13 & 14 & 15
Quoted 10 lines · Yang Wang
add missing performance level
AMD_DPM_FORCED_LEVEL_PERF_DETERMINISMin smu13,14,15.kernel dmesg log:
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performancelevel 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512
Fixes 6be6424684cb ("drm/amd/pm: Enable performance determinism onaldebaran")
Determinism level is only available for specific SOCs, so the the error message is still valid.
Thanks,
Lijo
Quoted 46 lines
Signed-off-by Yang Wang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 1 + 3 files changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1
-1@@ -1659,6 +1659,7 @@ int smu_v13_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level); diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
index7dc6687c3693..68ecba0d5e0b100644drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c +1
-1@@ -1321,6 +1321,7 @@ int smu_v14_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level); diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
b/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
indexa2854d528bab..1860bd0f1091100644drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c +1
-0@@ -1210,6 +1210,7 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);
Quoted 3 lines · Yang(Kevin)
[AMD Official Use Only - AMD Internal Distribution Only]
The term "invalid" in the dmesg log may cause ambiguity for customers.
I don't see anything wrong with that, it says it is not a valid mode this SOC. Similarly, modes like AMD_DPM_FORCED_LEVEL_PROFILE_PEAK, AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD etc. are not valid on Aldebaran.
Quoted 1 line
The software-defined performance levels shall be properly handled by all pm swsmu/powerplay backends.
I don't see anything wrong in returning invalid for something which is definitely invalid.
Quoted 2 lines
In addition, the kgd interface should provide a consistent set of APIs to ensure that user-space programs (e.g., amd-smi) can invoke these interfaces without issues.
That is missing a query interface for valid modes. It doesn't mean not returning invalid for something that is definitely invalid.
Thanks,
Lijo
Quoted 76 lines
Best Regards,
Kevin-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, February 4, 2026 11:52 AM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix missing handlePERF_DETERMINISMlevel in smu13 & 14 & 15Quoted 10 lines · Yang Wang
add missing performance level
AMD_DPM_FORCED_LEVEL_PERF_DETERMINISMin smu13,14,15.kernel dmesg log:
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performancelevel 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512
Fixes 6be6424684cb ("drm/amd/pm: Enable performance determinism onaldebaran")
Determinism level is only available for specific SOCs, so the the error message is still valid.
Thanks,
LijoQuoted 46 lines
Signed-off-by Yang Wang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 1 + 3 files changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1
-1@@ -1659,6 +1659,7 @@ int smu_v13_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level); diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
index7dc6687c3693..68ecba0d5e0b100644drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c +1
-1@@ -1321,6 +1321,7 @@ int smu_v14_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level); diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
b/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
indexa2854d528bab..1860bd0f1091100644drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c +1
-0@@ -1210,6 +1210,7 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default :dev_err (adev->dev,"Invalid performance level %d\n" , level);
[AMD Official Use Only - AMD Internal Distribution Only]
I think you are confusing concepts. How do you explain the EXIT/MANUAL case according to your logic?
Best Regards,
Kevin
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, February 4, 2026 12:49 PM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix missing handle PERF_DETERMINISM level in smu13 & 14 & 15
Quoted 3 lines · Yang(Kevin)
[AMD Official Use Only - AMD Internal Distribution Only]
The term "invalid" in the dmesg log may cause ambiguity for customers.
I don't see anything wrong with that, it says it is not a valid mode this SOC. Similarly, modes like AMD_DPM_FORCED_LEVEL_PROFILE_PEAK, AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD etc. are not valid on Aldebaran.
Quoted 1 line
The software-defined performance levels shall be properly handled by all pm swsmu/powerplay backends.
I don't see anything wrong in returning invalid for something which is definitely invalid.
Quoted 2 lines
In addition, the kgd interface should provide a consistent set of APIs to ensure that user-space programs (e.g., amd-smi) can invoke these interfaces without issues.
That is missing a query interface for valid modes. It doesn't mean not returning invalid for something that is definitely invalid.
Thanks,
Lijo
Quoted 80 lines
Best Regards,
Kevin-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, February 4, 2026 11:52 AM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix missing handlePERF_DETERMINISMlevel in smu13 & 14 & 15Quoted 10 lines · Yang Wang
add missing performance level
AMD_DPM_FORCED_LEVEL_PERF_DETERMINISMin smu13,14,15.kernel dmesg log:
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performancelevel 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512
Fixes 6be6424684cb ("drm/amd/pm: Enable performance determinism onaldebaran")
Determinism level is only available for specific SOCs, so the the error message is still valid.
Thanks,
LijoQuoted 47 lines
Signed-off-by Yang Wang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 1 + 3 files changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1
-0@@ -1659,6 +1659,7 @@ int smu_v13_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default : dev_err(adev->dev, "Invalid performance level %d\n",level); diff --git
a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.cb/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
index7dc6687c3693..68ecba0d5e0b100644drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c +1
-0@@ -1321,6 +1321,7 @@ int smu_v14_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default : dev_err(adev->dev, "Invalid performance level %d\n",level); diff --git
a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.cb/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
indexa2854d528bab..1860bd0f1091100644drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c +1
-0@@ -1210,6 +1210,7 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default : dev_err(adev->dev, "Invalid performance level %d\n",level);
Quoted 4 lines · Yang(Kevin)
[AMD Official Use Only - AMD Internal Distribution Only]
I think you are confusing concepts. How do you explain the EXIT/MANUAL case according to your logic?
I don't understand.
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performance level 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512
As per this error message, the user tried to set a performance level which is invalid for the SOC. That is the correct behavior.
Thanks,
Lijo
Quoted 114 lines
Best Regards,
Kevin-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, February 4, 2026 12:49 PM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix missing handlePERF_DETERMINISMlevel in smu13 & 14 & 15Quoted 3 lines · Yang(Kevin)
[AMD Official Use Only - AMD Internal Distribution Only]
The term "invalid" in the dmesg log may cause ambiguity for customers.
I don't see anything wrong with that, it says it is not a valid mode this SOC. Similarly, modes like
AMD_DPM_FORCED_LEVEL_PROFILE_PEAK,AMD_DPM_FORCED_LEVEL_PROFILE_STANDARDetc. are not valid on Aldebaran.Quoted 1 line
The software-defined performance levels shall be properly handled by all pm swsmu/powerplay backends.
I don't see anything wrong in returning invalid for something which is definitely invalid.
Quoted 2 lines
In addition, the kgd interface should provide a consistent set of APIs to ensure that user-space programs (e.g., amd-smi) can invoke these interfaces without issues.
That is missing a query interface for valid modes. It doesn't mean not returning invalid for something that is definitely invalid.
Thanks,
LijoQuoted 80 lines
Best Regards,
Kevin-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, February 4, 2026 11:52 AM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix missing handlePERF_DETERMINISMlevel in smu13 & 14 & 15Quoted 10 lines · Yang Wang
add missing performance level
AMD_DPM_FORCED_LEVEL_PERF_DETERMINISMin smu13,14,15.kernel dmesg log:
[1217924.810528] amdgpu 0000:44:00.0: amdgpu: Invalid performancelevel 512 [1217924.810537] amdgpu 0000:44:00.0: amdgpu: Failed to set performance level 512
Fixes 6be6424684cb ("drm/amd/pm: Enable performance determinism onaldebaran")
Determinism level is only available for specific SOCs, so the the error message is still valid.
Thanks,
LijoQuoted 47 lines
Signed-off-by Yang Wang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c | 1 + 3 files changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1
-0@@ -1659,6 +1659,7 @@ int smu_v13_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default : dev_err(adev->dev, "Invalid performance level %d\n",level); diff --git
a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.cb/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
index7dc6687c3693..68ecba0d5e0b100644drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c +1
-0@@ -1321,6 +1321,7 @@ int smu_v14_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default : dev_err(adev->dev, "Invalid performance level %d\n",level); diff --git
a/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.cb/drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
indexa2854d528bab..1860bd0f1091100644drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c +1
-0@@ -1210,6 +1210,7 @@ int smu_v15_0_set_performance_level(struct smu_context *smu,break ;case AMD_DPM_FORCED_LEVEL_MANUAL :case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT : +case AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM :return 0 ;default : dev_err(adev->dev, "Invalid performance level %d\n",level);