Skip to contentSkip to conversation

drm: amdgpu: fix comment about amdgpu.abmlevel defaults

PATCH Applied [email protected] 2 participants 2 messages Oct 24, 2024 – Oct 29, 2024

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

PATCH 1/1 drm: amdgpu: fix comment about amdgpu.abmlevel defaults

Since 040fdcde288a2830edc31dd507963d6aadf990d2 ("drm/amdgpu: respect the abmlevel module parameter value if it is set"), the default value for amdgpu.abmlevel was set to -1, or auto. However, the comment explaining the default value was not updated to reflect the change (-1, or auto; not -1, or disabled).

Clarify that the default value (-1) means auto.

Fixes 040fdcde288a2830edc31dd507963d6aadf990d2 ("drm/amdgpu: respect the abmlevel module parameter value if it is set")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -0
index 81d9877c8735..b248d7096abc 100644
@@ -892,7 +892,7 @@ module_param_named(visualconfirm, amdgpu_dc_visual_confirm, uint, 0444);
  * the ABM algorithm, with 1 being the least reduction and 4 being the 

most
* reduction.
*
- * Defaults to -1, or disabled. Userspace can only override this level after
+ * Defaults to -1, or auto. Userspace can only override this level after
* boot if it's set to auto.
*/
int amdgpu_dm_abm_level = -1;

Signature · 1 line
2.47.0
Applied
#1 lore raw

Applied. Thanks!

Alex

Quoted 39 lines · On Thu, Oct 24, 2024 at 9:07 AM <[email protected]> wrote:

Since 040fdcde288a2830edc31dd507963d6aadf990d2 ("drm/amdgpu: respect the abmlevel module parameter value if it is set"), the default value for amdgpu.abmlevel was set to -1, or auto. However, the comment explaining the default value was not updated to reflect the change (-1, or auto; not
-1, or disabled).

Clarify that the default value (-1) means auto.

Fixes 040fdcde288a2830edc31dd507963d6aadf990d2 ("drm/amdgpu: respect

the abmlevel module parameter value if it is set")

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -0
index 81d9877c8735..b248d7096abc 100644
@@ -892,7 +892,7 @@ module_param_named(visualconfirm,
 amdgpu_dc_visual_confirm, uint, 0444);
   * the ABM algorithm, with 1 being the least reduction and 4 being the

most
* reduction.
*
- * Defaults to -1, or disabled. Userspace can only override this level after
+ * Defaults to -1, or auto. Userspace can only override this level after
* boot if it's set to auto.
*/
int amdgpu_dm_abm_level = -1;
--
2.47.0