Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_init() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 1 size 0-18446744073708503040
PARAM_VALUE 2 chunk_size 4096
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 size 0-4503599626321920[c]
UNITS 1 size unit_byte
UNITS 2 chunk_size unit_byte

drivers/gpu/drm/i915/i915_ttm_buddy_manager.c i915_ttm_buddy_man_init() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 2 chunk_size 4096
DATA_SOURCE 1 size $3
DATA_SOURCE 2 chunk_size $6
RX_PATH
TASK_NOT_RUNNING
UNITS 2 chunk_size unit_byte

drivers/gpu/drm/xe/xe_ttm_vram_mgr.c __xe_ttm_vram_mgr_init() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 2 chunk_size 4096
DATA_SOURCE 1 size $3 [m]
DATA_SOURCE 2 chunk_size $5
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 mm->avail
NO_OVERFLOW_SIMPLE 0 mm->size
UNITS 2 chunk_size unit_byte
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/ttm/tests/ttm_mock_manager.c ttm_mock_manager_init() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4096-ptr_max
PARAM_VALUE 1 size 1048576
PARAM_VALUE 2 chunk_size 4096
DATA_SOURCE 1 size $2
UNITS 2 chunk_size unit_byte

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_addr_to_block() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 5501470301888192512
PARAM_VALUE 1 size 6291456
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_clear() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4418604149187158016
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_clear() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4418604149187158016
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->max_order 0-2147483646
PARAM_VALUE 0 mm->n_roots 0-s32max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->n_roots

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_clear() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4418604149187158016
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->max_order 0-2147483646
PARAM_VALUE 0 mm->n_roots 0-s32max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 20971520
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->n_roots

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_clear() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4418604149187158016
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->max_order 0-2147483646
PARAM_VALUE 0 mm->n_roots 0-s32max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 20971520
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->n_roots

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_clear() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 4418604149187158016
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->max_order 0-2147483646
PARAM_VALUE 0 mm->n_roots 0-s32max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 20971520
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->n_roots

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_contiguous() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 5303430588477145088
PARAM_VALUE 1 size 196608
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_exceeds_max_order() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 1822663995839451136
PARAM_VALUE 1 size 10737418240
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_limit() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 6673180222330703872
PARAM_VALUE 1 size u64max
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_optimistic() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 2918397562002550784
PARAM_VALUE 1 size 536866816
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_pathological() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 1274072054375104512
PARAM_VALUE 1 size 32768
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_pessimistic() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 2485355546759708672
PARAM_VALUE 1 size 268435456
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
PARAM_COMPARE 1 size >= $2
PARAM_COMPARE 2 chunk_size <= $1
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
PARAM_COMPARE 1 size >= $2
PARAM_COMPARE 2 chunk_size <= $1
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 7340032
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 65536
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 9038028188426358784
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 16777216
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 1 size
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range_bias() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 6086007340207362048
PARAM_VALUE 1 size 0-8388607
PARAM_VALUE 2 chunk_size 4096-u32max
CAPPED_DATA 1 size 1

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range_bias() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 6086007340207362048
PARAM_VALUE 0 mm->chunk_size 4096-u32max
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 4096-8388607
PARAM_VALUE 2 chunk_size 4096-u32max
CAPPED_DATA 1 size 1
CAPPED_DATA 2 chunk_size 1
PARAM_COMPARE 1 size >= $2
PARAM_COMPARE 2 chunk_size <= $1
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_range_bias() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 6086007340207362048
PARAM_VALUE 0 mm->chunk_size 4096-u32max
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 4096-8388607
PARAM_VALUE 2 chunk_size 4096-u32max
CAPPED_DATA 1 size 1
CAPPED_DATA 2 chunk_size 1
PARAM_COMPARE 1 size >= $2
PARAM_COMPARE 2 chunk_size <= $1
NO_OVERFLOW_SIMPLE 0 mm->chunk_size
NO_OVERFLOW_SIMPLE 0 mm->n_roots
NO_OVERFLOW_SIMPLE 2 chunk_size

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_fragmentation_performance() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 6743707022481940480
PARAM_VALUE 1 size 4294967296
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_fragmentation_performance() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 6743707022481940480
PARAM_VALUE 0 mm->chunk_size 4096
PARAM_VALUE 0 mm->free_scoreboard 4096-ptr_max
PARAM_VALUE 0 mm->free_trees 4096-ptr_max
PARAM_VALUE 0 mm->lock_dep_map 0
PARAM_VALUE 0 mm->max_order 0-51
PARAM_VALUE 0 mm->n_roots 0-64
PARAM_VALUE 0 mm->roots 4096-ptr_max
PARAM_VALUE 0 mm->size 1-u64max
PARAM_VALUE 0 mm->used_scoreboard 4096-ptr_max
PARAM_VALUE 1 size 4294967296
PARAM_VALUE 2 chunk_size 4096
NO_OVERFLOW_SIMPLE 0 mm->n_roots

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_offset_aligned_allocation() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 2450317267143839744
PARAM_VALUE 1 size 4194304
PARAM_VALUE 2 chunk_size 4096

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_subtree_offset_alignment_stress() -> gpu_buddy_init()

Type Parameter Key Value
PARAM_VALUE 0 mm 1027097854816448512
PARAM_VALUE 1 size 2097152
PARAM_VALUE 2 chunk_size 4096