drm/amd/pm: Restrict NPM data to primary socket for smu_v15_0_8
Subsystems (3)
PATCH 1/1 drm/amd/pm: Restrict NPM data to primary socket for smu_v15_0_8
NPM data is only defined for primary socket. On secondary nodes, return -EOPNOTSUPP instead of continuing, thereby exposing npm node only for master socket.
--- drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c +3 -0
@@ -578,6 +578,9 @@ static int smu_v15_0_8_get_npm_data(struct smu_context *smu,struct smu_table *sys_table;int ret; +if (smu->adev->gmc.xgmi.physical_node_id !=0 ) +return -EOPNOTSUPP ; +if (sensor ==AMDGPU_PP_SENSOR_MAXNODEPOWERLIMIT ) {/*TBD as of now put 0 */ *value =0 ;
Signature · 1 line
2.46.0
[AMD Official Use Only - AMD Internal Distribution Only]
ping
-----Original Message-----
From: Kamal, Asad <[email protected]>
Sent: Wednesday, April 1, 2026 10:07 PM
To: [email protected]
Cc: Lazar, Lijo <[email protected]>; Zhang, Hawking <[email protected]>; Ma, Le <[email protected]>; Zhang, Morris <[email protected]>; Deucher, Alexander <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Kamal, Asad <[email protected]>
Subject: [PATCH] drm/amd/pm: Restrict NPM data to primary socket for smu_v15_0_8
NPM data is only defined for primary socket. On secondary nodes, return -EOPNOTSUPP instead of continuing, thereby exposing npm node only for master socket.
--- drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c +3 -0
@@ -578,6 +578,9 @@ static int smu_v15_0_8_get_npm_data(struct smu_context *smu,struct smu_table *sys_table;int ret; +if (smu->adev->gmc.xgmi.physical_node_id !=0 ) +return -EOPNOTSUPP ; +if (sensor ==AMDGPU_PP_SENSOR_MAXNODEPOWERLIMIT ) {/*TBD as of now put 0 */ *value =0 ;
--
2.46.0
Quoted 3 lines · Asad
[AMD Official Use Only - AMD Internal Distribution Only]
ping
Please hold off this for the timebeing.
Thanks,
Lijo
Quoted 32 lines
-----Original Message-----
From: Kamal, Asad <[email protected]>
Sent: Wednesday, April 1, 2026 10:07 PM
To: [email protected]
Cc: Lazar, Lijo <[email protected]>; Zhang, Hawking <[email protected]>; Ma, Le <[email protected]>; Zhang, Morris <[email protected]>; Deucher, Alexander <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Kamal, Asad <[email protected]>
Subject: [PATCH] drm/amd/pm: Restrict NPM data to primary socket forsmu_v15_0_8NPM data is only defined for primary socket. On secondary nodes, return
-EOPNOTSUPPinstead of continuing, thereby exposing npm node only for master socket.Signed-off-by Asad Kamal <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c +3
-1@@ -578,6 +578,9 @@ static int smu_v15_0_8_get_npm_data(struct smu_context *smu,struct smu_table *sys_table;int ret; +if (smu->adev->gmc.xgmi.physical_node_id !=0 ) +return -EOPNOTSUPP ; +if (sensor ==AMDGPU_PP_SENSOR_MAXNODEPOWERLIMIT ) {/*TBD as of now put 0 */ *value =0 ; --2.46.0