Skip to contentSkip to conversation

drm/amdgpu: fix documentation around busy_percentage

PATCH In review Alex Deucher 3 participants 3 messages Jun 15, 2020 – Jun 16, 2020

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

PATCH 1/1 drm/amdgpu: fix documentation around busy_percentage

Add rename the gpu busy percentage for consistency and add the mem busy percentage documentation.

---
 Documentation/gpu/amdgpu.rst           | 9 ++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)
Documentation/gpu/amdgpu.rst +6 -3
index 4cc74325bf91..17112352f605 100644
@@ -197,11 +197,14 @@ pp_power_profile_mode
 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
    :doc: pp_power_profile_mode
 
-busy_percent
-~~~~~~~~~~~~
+*_busy_percent
+~~~~~~~~~~~~~~
 
 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
-   :doc: busy_percent
+   :doc: gpu_busy_percent
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+   :doc: mem_busy_percent
 
 GPU Product Information
 =======================
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +1 -1
index 5a8e177e4f56..42bbdf49458e 100644
@@ -1668,7 +1668,7 @@ static ssize_t amdgpu_set_pp_power_profile_mode(struct device *dev,
 }
 
 /**
- * DOC: busy_percent
+ * DOC: gpu_busy_percent
  *
  * The amdgpu driver provides a sysfs API for reading how busy the GPU
  * is as a percentage.  The file gpu_busy_percent is used for this.
Signature · 6 lines
2.25.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by Nirmoy Das on v1 1/1
#1 lore raw
Quoted 36 lines · Alex Deucher

Add rename the gpu busy percentage for consistency and add the mem busy percentage documentation.

---
  Documentation/gpu/amdgpu.rst           | 9 ++++++---
  drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 +-
  2 files changed, 7 insertions(+), 4 deletions(-)
Documentation/gpu/amdgpu.rst +6 -3
index 4cc74325bf91..17112352f605 100644
@@ -197,11 +197,14 @@ pp_power_profile_mode
  .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
     :doc: pp_power_profile_mode
 
-busy_percent
-~~~~~~~~~~~~
+*_busy_percent
+~~~~~~~~~~~~~~
 
  .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
-   :doc: busy_percent
+   :doc: gpu_busy_percent
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+   :doc: mem_busy_percent
 
  GPU Product Information
  =======================
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +0 -0
index 5a8e177e4f56..42bbdf49458e 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c static ssize_t amdgpu_set_pp_power_profile_mode(struct device *dev, · line 1674

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +1 -1
@@ -1668,7 +1668,7 @@ static ssize_t amdgpu_set_pp_power_profile_mode(struct device *dev,
  }
 
  /**
- * DOC: busy_percent
+ * DOC: gpu_busy_percent
   *
   * The amdgpu driver provides a sysfs API for reading how busy the GPU
   * is as a percentage.  The file gpu_busy_percent is used for this.

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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Alex Deucher

[AMD Official Use Only - Internal Distribution Only]

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Tuesday, June 16, 2020 4:40 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu: fix documentation around busy_percentage

Add rename the gpu busy percentage for consistency and add the mem busy percentage documentation.

---
 Documentation/gpu/amdgpu.rst           | 9 ++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)
Documentation/gpu/amdgpu.rst +6 -3
@@ -197,11 +197,14 @@ pp_power_profile_mode  .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
    :doc: pp_power_profile_mode
 
-busy_percent
-~~~~~~~~~~~~
+*_busy_percent
+~~~~~~~~~~~~~~
 
 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
-   :doc: busy_percent
+   :doc: gpu_busy_percent
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+   :doc: mem_busy_percent
 
 GPU Product Information
 =======================
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +1 -2
index 5a8e177e4f56..42bbdf49458e 100644
@@ -1668,7 +1668,7 @@ static ssize_t amdgpu_set_pp_power_profile_mode(struct device *dev,  }
 
 /**
- * DOC: busy_percent
+ * DOC: gpu_busy_percent
  *
  * The amdgpu driver provides a sysfs API for reading how busy the GPU
  * is as a percentage.  The file gpu_busy_percent is used for this.
--

2.25.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cevan.quan%40amd.com%7C691ad901d90841f2421008d8116c520a%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278504263353044&amp;sdata=HMgi9aI7smavcUz4XyNbKUvCPSAjoxns7HRzDrqNf%2Bc%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx