]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/pm: Correct comment of xe_pm_set_vram_threshold()
authorShuicheng Lin <shuicheng.lin@intel.com>
Tue, 8 Jul 2025 02:14:51 +0000 (02:14 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 10 Jul 2025 18:51:04 +0000 (14:51 -0400)
The parameter threshold is with size in MiB, not in bits.
Correct it to avoid any confusion.

v2: s/mb/MiB, s/vram/VRAM, fix return section. (Michal)

Fixes: 30c399529f4c ("drm/xe: Document Xe PM component")
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://lore.kernel.org/r/20250708021450.3602087-2-shuicheng.lin@intel.com
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pm.c

index f171a91b849c14bfa5a5a23791936b8c6bf0f804..e279b47ba03bf60cf88544e3a1090e48c2604473 100644 (file)
@@ -761,11 +761,13 @@ void xe_pm_assert_unbounded_bridge(struct xe_device *xe)
 }
 
 /**
- * xe_pm_set_vram_threshold - Set a vram threshold for allowing/blocking D3Cold
+ * xe_pm_set_vram_threshold - Set a VRAM threshold for allowing/blocking D3Cold
  * @xe: xe device instance
- * @threshold: VRAM size in bites for the D3cold threshold
+ * @threshold: VRAM size in MiB for the D3cold threshold
  *
- * Returns 0 for success, negative error code otherwise.
+ * Return:
+ * * 0         - success
+ * * -EINVAL   - invalid argument
  */
 int xe_pm_set_vram_threshold(struct xe_device *xe, u32 threshold)
 {