Selaa lähdekoodia

drm/amdgpu/pm: document pp_table

This file is for uploading new powerplay tables.

Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Deucher 7 vuotta sitten
vanhempi
commit
d54bb40f60
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11 0
      drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

+ 11 - 0
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

@@ -408,6 +408,17 @@ fail:
 	return count;
 	return count;
 }
 }
 
 
+/**
+ * DOC: pp_table
+ *
+ * The amdgpu driver provides a sysfs API for uploading new powerplay
+ * tables.  The file pp_table is used for this.  Reading the file
+ * will dump the current power play table.  Writing to the file
+ * will attempt to upload a new powerplay table and re-initialize
+ * powerplay using that new table.
+ *
+ */
+
 static ssize_t amdgpu_get_pp_table(struct device *dev,
 static ssize_t amdgpu_get_pp_table(struct device *dev,
 		struct device_attribute *attr,
 		struct device_attribute *attr,
 		char *buf)
 		char *buf)