Skip to contentSkip to conversation

drm/amd/pm: Restrict NPM data to primary socket for smu_v15_0_8

PATCH In review Asad Kamal 2 participants 3 messages Apr 1 – Apr 6

Subsystems (3)
lore
Share & tools
lore

Asad Kamal

author
#0 lore raw

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
index 756cf4ac00fa..b0faf57b0655 100644
@@ -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
#1 lore raw

[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
index 756cf4ac00fa..b0faf57b0655 100644
@@ -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

#2 lore raw
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 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 -1
index 756cf4ac00fa..b0faf57b0655 100644
@@ -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