Defined in 1 files as a member:
Defined in 1 files as a function:
Referenced in 9 files:
- arch/powerpc/kvm/book3s_hv_uvmem.c
- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
- drivers/gpu/drm/drm_pagemap.c
- drivers/gpu/drm/nouveau/nouveau_dmem.c
- include/trace/events/compaction.h
- lib/test_hmm.c
-
mm/compaction.c
- line 352
- line 355
- line 371
- line 371
- line 376
- line 377
- line 379
- line 397
- line 398
- line 872
- line 1322
- line 1470
- line 1581
- line 1755
- line 1956
- line 1958
- line 1961
- line 1974
- line 2021
- line 2022
- line 2024
- line 2117
- line 2128
- line 2334
- line 2612
- line 2615
- line 2621
- line 2621
- line 2622
- line 2623
- line 2624
- line 2627
- line 2651
- line 2689
- line 2727
- line 2760
- mm/migrate_device.c
- mm/page_alloc.c, line 7163
Smatch caller information:
lib/test_hmm.c dmirror_device_evict_chunk() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mdevice->devmem_lock |
lib/test_hmm.c dmirror_devmem_fault_alloc_and_copy() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
lib/test_hmm.c dmirror_devmem_fault_alloc_and_copy() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,12384898975268864,9223396226110586880-u64max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
drivers/gpu/drm/drm_pagemap.c drm_pagemap_migrate_populate_ram_pfn() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/drm_pagemap.c drm_pagemap_migrate_to_devmem() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &driver_migrate_lock | ||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &vm->lock | ||
| LOCK2 | global &drm_unplug_srcu | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct xe_vm)->lock |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c svm_migrate_copy_to_ram() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &prange->migrate_mutex | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &p->svms.lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| HALF_LOCKED2 | &svms->lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c svm_migrate_copy_to_vram() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-4503599627370495 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &prange->migrate_mutex | ||
| LOCK2 | &svms->lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |
mm/migrate_device.c migrate_device_coherent_folio() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/migrate_device.c migrate_device_coherent_folio() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/migrate_device.c migrate_device_pfn_lock() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | pfn | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | pfn | unit_page |
mm/migrate_device.c migrate_vma_collect_huge_pmd() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/migrate_device.c migrate_vma_collect_pmd() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/migrate_device.c migrate_vma_collect_pmd() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-1099511627775 |
| CAPPED_DATA | 0 | pfn | 1 |
| CAPPED_DATA | 0 | pfn | 1 |
| DATA_SOURCE | 0 | pfn | r pte_pfn |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/migrate_device.c migrate_vma_split_unmapped_folio() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 1-288230376151712254 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | pfn | unit_page |
| HALF_LOCKED2 | &drm->dmem->mutex |
drivers/gpu/drm/nouveau/nouveau_dmem.c nouveau_dmem_evict_chunk() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,12384898975268864,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &drm->dmem->mutex | ||
| TYPE_LOCK | (struct nouveau_dmem)->mutex |
drivers/gpu/drm/nouveau/nouveau_dmem.c nouveau_dmem_migrate_copy_one() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
drivers/gpu/drm/nouveau/nouveau_dmem.c nouveau_dmem_migrate_to_ram() -> migrate_pfn()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pfn | 0-12384898975264768,9223396226110586880-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |