Skip to contentSkip to conversation

drm/ttm: Fix @alloc_flags description

PATCH In review Bagas Sanjaya 4 participants 6 messages Nov 6, 2025

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

PATCH 1/1 drm/ttm: Fix @alloc_flags description

Stephen Rothwell reports htmldocs warnings when merging drm-misc tree:

Documentation/gpu/drm-mm:40: include/drm/ttm/ttm_device.h:225: ERROR: Unknown target name: "ttm_allocation". [docutils] Documentation/gpu/drm-mm:43: drivers/gpu/drm/ttm/ttm_device.c:202: ERROR: Unknown target name: "ttm_allocation". [docutils] Documentation/gpu/drm-mm:73: include/drm/ttm/ttm_pool.h:68: ERROR: Unknown target name: "ttm_allocation_pool". [docutils] Documentation/gpu/drm-mm:76: drivers/gpu/drm/ttm/ttm_pool.c:1070: ERROR: Unknown target name: "ttm_allocation_pool". [docutils]

Fix these by adding missing wildcard on TTM_ALLOCATION_* and TTM_ALLOCATION_POOL_* in @alloc_flags description.

Fixes 0af5b6a8f8dd ("drm/ttm: Replace multiple booleans with flags in pool init")
Fixes 77e19f8d3297 ("drm/ttm: Replace multiple booleans with flags in device init")
Fixes 402b3a865090 ("drm/ttm: Add an allocation flag to propagate -ENOSPC on OOM")
---
 drivers/gpu/drm/ttm/ttm_device.c | 2 +-
 drivers/gpu/drm/ttm/ttm_pool.c   | 2 +-
 include/drm/ttm/ttm_device.h     | 2 +-
 include/drm/ttm/ttm_pool.h       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/ttm/ttm_device.c +1 -1
index 5c10e5fbf43b7f..9a51afaf0749e2 100644
@@ -199,7 +199,7 @@ EXPORT_SYMBOL(ttm_device_swapout);
  * @dev: The core kernel device pointer for DMA mappings and allocations.
  * @mapping: The address space to use for this bo.
  * @vma_manager: A pointer to a vma manager.
- * @alloc_flags: TTM_ALLOCATION_ flags.
+ * @alloc_flags: TTM_ALLOCATION_* flags.
  *
  * Initializes a struct ttm_device:
  * Returns:
drivers/gpu/drm/ttm/ttm_pool.c +1 -1
index 97e9ce505cf68d..18b6db015619c0 100644
@@ -1067,7 +1067,7 @@ long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt *tt,
  * @pool: the pool to initialize
  * @dev: device for DMA allocations and mappings
  * @nid: NUMA node to use for allocations
- * @alloc_flags: TTM_ALLOCATION_POOL_ flags
+ * @alloc_flags: TTM_ALLOCATION_POOL_* flags
  *
  * Initialize the pool and its pool types.
  */
include/drm/ttm/ttm_device.h +1 -1
index d016360e5cebbc..5618aef462f21b 100644
@@ -221,7 +221,7 @@ struct ttm_device {
 	struct list_head device_list;
 
 	/**
-	 * @alloc_flags: TTM_ALLOCATION_ flags.
+	 * @alloc_flags: TTM_ALLOCATION_* flags.
 	 */
 	unsigned int alloc_flags;
 
include/drm/ttm/ttm_pool.h +1 -1
index 67c72de913bb9d..233581670e7825 100644
@@ -64,7 +64,7 @@ struct ttm_pool_type {
  *
  * @dev: the device we allocate pages for
  * @nid: which numa node to use
- * @alloc_flags: TTM_ALLOCATION_POOL_ flags
+ * @alloc_flags: TTM_ALLOCATION_POOL_* flags
  * @caching: pools for each caching/order
  */
 struct ttm_pool {

base-commit: c553832116b8d0039b13ae84d1ed06e7ee4f1fdf

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

✗ LGCI.VerificationFailed: failure for drm/ttm: Fix @alloc_flags description

== Series Details ==

== Series Details ==

Series: drm/ttm: Fix @alloc_flags description
URL : https://patchwork.freedesktop.org/series/157105/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist, which prevents CI from being triggered for this patch. If you want Intel GFX CI to accept this address, please contact the script maintainers at [email protected]. Exception occurred during validation, bailing out!

Acked-by on v1 1/1
#2 lore raw
In reply to Bagas Sanjaya
Quoted 9 lines · Bagas Sanjaya

Stephen Rothwell reports htmldocs warnings when merging drm-misc tree:

Documentation/gpu/drm-mm:40: include/drm/ttm/ttm_device.h:225: ERROR: Unknown target name: "ttm_allocation". [docutils] Documentation/gpu/drm-mm:43: drivers/gpu/drm/ttm/ttm_device.c:202: ERROR: Unknown target name: "ttm_allocation". [docutils] Documentation/gpu/drm-mm:73: include/drm/ttm/ttm_pool.h:68: ERROR: Unknown target name: "ttm_allocation_pool". [docutils] Documentation/gpu/drm-mm:76: drivers/gpu/drm/ttm/ttm_pool.c:1070: ERROR: Unknown target name: "ttm_allocation_pool". [docutils]

Fix these by adding missing wildcard on TTM_ALLOCATION_* and TTM_ALLOCATION_POOL_* in @alloc_flags description.

Interesting, I did not realize it would see special meaning in text followed by underscore. Thanks for fixing it up!

I assume no one merged it yet to any branch so I can push it to drm-misc-next?

Regards,

Tvrtko

Quoted 67 lines
Fixes 0af5b6a8f8dd ("drm/ttm: Replace multiple booleans with flags in pool init")
Fixes 77e19f8d3297 ("drm/ttm: Replace multiple booleans with flags in device init")
Fixes 402b3a865090 ("drm/ttm: Add an allocation flag to propagate -ENOSPC on OOM")
---
  drivers/gpu/drm/ttm/ttm_device.c | 2 +-
  drivers/gpu/drm/ttm/ttm_pool.c   | 2 +-
  include/drm/ttm/ttm_device.h     | 2 +-
  include/drm/ttm/ttm_pool.h       | 2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/ttm/ttm_device.c +1 -1
index 5c10e5fbf43b7f..9a51afaf0749e2 100644
@@ -199,7 +199,7 @@ EXPORT_SYMBOL(ttm_device_swapout);
   * @dev: The core kernel device pointer for DMA mappings and allocations.
   * @mapping: The address space to use for this bo.
   * @vma_manager: A pointer to a vma manager.
- * @alloc_flags: TTM_ALLOCATION_ flags.
+ * @alloc_flags: TTM_ALLOCATION_* flags.
   *
   * Initializes a struct ttm_device:
   * Returns:
drivers/gpu/drm/ttm/ttm_pool.c +1 -1
index 97e9ce505cf68d..18b6db015619c0 100644
@@ -1067,7 +1067,7 @@ long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt *tt,
   * @pool: the pool to initialize
   * @dev: device for DMA allocations and mappings
   * @nid: NUMA node to use for allocations
- * @alloc_flags: TTM_ALLOCATION_POOL_ flags
+ * @alloc_flags: TTM_ALLOCATION_POOL_* flags
   *
   * Initialize the pool and its pool types.
   */
include/drm/ttm/ttm_device.h +1 -1
index d016360e5cebbc..5618aef462f21b 100644
@@ -221,7 +221,7 @@ struct ttm_device {
  	struct list_head device_list;
 
  	/**
-	 * @alloc_flags: TTM_ALLOCATION_ flags.
+	 * @alloc_flags: TTM_ALLOCATION_* flags.
  	 */
  	unsigned int alloc_flags;
 
include/drm/ttm/ttm_pool.h +1 -1
index 67c72de913bb9d..233581670e7825 100644
@@ -64,7 +64,7 @@ struct ttm_pool_type {
   *
   * @dev: the device we allocate pages for
   * @nid: which numa node to use
- * @alloc_flags: TTM_ALLOCATION_POOL_ flags
+ * @alloc_flags: TTM_ALLOCATION_POOL_* flags
   * @caching: pools for each caching/order
   */
  struct ttm_pool {

base-commit: c553832116b8d0039b13ae84d1ed06e7ee4f1fdf

#3 lore raw
Quoted 2 lines · Tvrtko Ursulin

I assume no one merged it yet to any branch so I can push it to drm-misc-next?

Of course!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#4 lore raw
Quoted 5 lines · Bagas Sanjaya
Quoted 2 lines · Tvrtko Ursulin

I assume no one merged it yet to any branch so I can push it to drm-misc-next?

Of course!

Pushed, thanks again for fixing it!

Regards,

Tvrtko

Reviewed-by on v1 1/1
#5 lore raw
In reply to Bagas Sanjaya
Quoted 10 lines · Bagas Sanjaya

Stephen Rothwell reports htmldocs warnings when merging drm-misc tree:

Documentation/gpu/drm-mm:40: include/drm/ttm/ttm_device.h:225: ERROR: Unknown target name: "ttm_allocation". [docutils] Documentation/gpu/drm-mm:43: drivers/gpu/drm/ttm/ttm_device.c:202: ERROR: Unknown target name: "ttm_allocation". [docutils] Documentation/gpu/drm-mm:73: include/drm/ttm/ttm_pool.h:68: ERROR: Unknown target name: "ttm_allocation_pool". [docutils] Documentation/gpu/drm-mm:76: drivers/gpu/drm/ttm/ttm_pool.c:1070: ERROR: Unknown target name: "ttm_allocation_pool". [docutils]

Fix these by adding missing wildcard on TTM_ALLOCATION_* and TTM_ALLOCATION_POOL_* in @alloc_flags description.

Quoted 6 lines
Fixes 0af5b6a8f8dd ("drm/ttm: Replace multiple booleans with flags in pool init")
Fixes 77e19f8d3297 ("drm/ttm: Replace multiple booleans with flags in device init")
Fixes 402b3a865090 ("drm/ttm: Add an allocation flag to propagate -ENOSPC on OOM")
Quoted 61 lines
---
 drivers/gpu/drm/ttm/ttm_device.c | 2 +-
 drivers/gpu/drm/ttm/ttm_pool.c   | 2 +-
 include/drm/ttm/ttm_device.h     | 2 +-
 include/drm/ttm/ttm_pool.h       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/ttm/ttm_device.c +1 -1
index 5c10e5fbf43b7f..9a51afaf0749e2 100644
@@ -199,7 +199,7 @@ EXPORT_SYMBOL(ttm_device_swapout);
  * @dev: The core kernel device pointer for DMA mappings and allocations.
  * @mapping: The address space to use for this bo.
  * @vma_manager: A pointer to a vma manager.
- * @alloc_flags: TTM_ALLOCATION_ flags.
+ * @alloc_flags: TTM_ALLOCATION_* flags.
  *
  * Initializes a struct ttm_device:
  * Returns:
drivers/gpu/drm/ttm/ttm_pool.c +1 -1
index 97e9ce505cf68d..18b6db015619c0 100644
@@ -1067,7 +1067,7 @@ long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt *tt,
  * @pool: the pool to initialize
  * @dev: device for DMA allocations and mappings
  * @nid: NUMA node to use for allocations
- * @alloc_flags: TTM_ALLOCATION_POOL_ flags
+ * @alloc_flags: TTM_ALLOCATION_POOL_* flags
  *
  * Initialize the pool and its pool types.
  */
include/drm/ttm/ttm_device.h +1 -1
index d016360e5cebbc..5618aef462f21b 100644
@@ -221,7 +221,7 @@ struct ttm_device {
 	struct list_head device_list;
 
 	/**
-	 * @alloc_flags: TTM_ALLOCATION_ flags.
+	 * @alloc_flags: TTM_ALLOCATION_* flags.
 	 */
 	unsigned int alloc_flags;
 
include/drm/ttm/ttm_pool.h +1 -1
index 67c72de913bb9d..233581670e7825 100644
@@ -64,7 +64,7 @@ struct ttm_pool_type {
  *
  * @dev: the device we allocate pages for
  * @nid: which numa node to use
- * @alloc_flags: TTM_ALLOCATION_POOL_ flags
+ * @alloc_flags: TTM_ALLOCATION_POOL_* flags
  * @caching: pools for each caching/order
  */
 struct ttm_pool {

base-commit: c553832116b8d0039b13ae84d1ed06e7ee4f1fdf