Skip to contentSkip to conversation

drm/amd/amdgpu: Add MEM_LOAD to amdgpu_pm_info debugfs file

PATCH In review StDenis, Tom 3 participants 3 messages May 2, 2019 – May 3, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/amdgpu: Add MEM_LOAD to amdgpu_pm_info debugfs file

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +4 -0
index 5e2d039e09ad..e0789f0f2670 100644
@@ -2955,6 +2955,10 @@ static int amdgpu_debugfs_pm_info_pp(struct seq_file *m, struct amdgpu_device *a
 	/* GPU Load */
 	if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_LOAD, (void *)&value, &size))
 		seq_printf(m, "GPU Load: %u %%\n", value);
+	/* MEM Load */
+	if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_MEM_LOAD, (void *)&value, &size))
+		seq_printf(m, "MEM Load: %u %%\n", value);
+
 	seq_printf(m, "\n");
 
 	/* SMC feature mask */
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by
#2 lore raw

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of StDenis, Tom <[email protected]>
Sent: Thursday, May 2, 2019 10:22 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/amd/amdgpu: Add MEM_LOAD to amdgpu_pm_info debugfs file

[CAUTION: External Email]

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +4 -0
index 5e2d039e09ad..e0789f0f2670 100644
@@ -2955,6 +2955,10 @@ static int amdgpu_debugfs_pm_info_pp(struct seq_file *m, struct amdgpu_device *a
        /* GPU Load */
        if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_LOAD, (void *)&value, &size))
                seq_printf(m, "GPU Load: %u %%\n", value);
+       /* MEM Load */
+       if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_MEM_LOAD, (void *)&value, &size))
+               seq_printf(m, "MEM Load: %u %%\n", value);
+
        seq_printf(m, "\n");
 
        /* SMC feature mask */

--
2.20.1

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by Evan Quan
#3 lore raw
In reply to a message not in the archive
Quoted 38 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of StDenis, Tom
Sent: 2019年5月2日 22:23
To: [email protected]
Cc: StDenis, Tom <[email protected]>
Subject: [PATCH] drm/amd/amdgpu: Add MEM_LOAD to amdgpu_pm_info debugfs file

[CAUTION: External Email]

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +0 -0
index 5e2d039e09ad..e0789f0f2670 100644
@@ -2955,6 +2955,10 @@ static int amdgpu_debugfs_pm_info_pp(struct

seq_file *m, struct amdgpu_device *a

        /* GPU Load */
        if (!amdgpu_dpm_read_sensor(adev,
AMDGPU_PP_SENSOR_GPU_LOAD, (void *)&value, &size))
                seq_printf(m, "GPU Load: %u %%\n", value);
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +2 -0
+       /* MEM Load */
+       if (!amdgpu_dpm_read_sensor(adev,

AMDGPU_PP_SENSOR_MEM_LOAD, (void *)&value, &size))

drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +2 -1
+               seq_printf(m, "MEM Load: %u %%\n", value);
+
        seq_printf(m, "\n");
 
        /* SMC feature mask */
--

2.20.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx