aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-30drm/amdgpu: Fix VRAM memory accountingMukul Joshi1-1/+1
2024-04-23drm/amdkfd: make sure VM is ready for updating operationsLang Yu1-14/+20
2024-04-23drm/amdgpu: Fix leak when GPU memory allocation failsMukul Joshi1-0/+1
2024-03-20drm/amdgpu: Handle duplicate BOs during process restoreMukul Joshi1-4/+10
2024-02-28amd/amdkfd: remove unused parameterEric Huang1-2/+1
2024-01-31drm/amdkfd: reserve the BO before validating itLang Yu1-3/+17
2024-01-15drm/amdgpu: Auto-validate DMABuf imports in compute VMsFelix Kuehling1-17/+22
2024-01-09drm/amdkfd: Fix sparse __rcu annotation warningsFelix Kuehling1-2/+2
2023-12-20Merge tag 'drm-msm-next-2023-12-15' of https://gitlab.freedesktop.org/drm/msm...Dave Airlie1-4/+4
2023-12-13drm/amdkfd: Import DMABufs for interop through DRMFelix Kuehling1-20/+44
2023-12-13drm/amdkfd: Export DMABufs from KFD using GEM handlesFelix Kuehling1-7/+26
2023-12-10drm/exec: Pass in initial # of objectsRob Clark1-4/+4
2023-11-29drm/amdkfd: Run restore_workers on freezable WQsFelix Kuehling1-19/+49
2023-11-17drm/amdgpu: update mappings not managed by KFDFelix Kuehling1-6/+22
2023-11-07Merge tag 'drm-next-2023-11-07' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-31/+48
2023-11-03drm/amdgpu: Attach eviction fence on allocFelix Kuehling1-31/+48
2023-11-01Merge tag 'drm-next-2023-10-31-1' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-11/+46
2023-10-23drm/amdkfd: reserve a fence slot while locking the BOChristian König1-1/+1
2023-10-13drm/amdgpu: Correctly use bo_va->ref_count in compute VMsXiaogang Chen1-3/+11
2023-10-04drm/amdgpu: Rework KFD memory max limitsRajneesh Bhardwaj1-2/+8
2023-09-26drm/amdkfd: Move dma unmapping after TLB flushPhilip Yang1-4/+22
2023-09-20drm/amdgpu: Add EXT_COHERENT memory allocation flagsDavid Francis1-0/+2
2023-08-30drm/amdkfd: Share the original BO for GTT mappingPhilip Yang1-2/+3
2023-08-15drm/amdgpu: Remove duplicated includesGUO Zihua1-1/+0
2023-08-04Merge tag 'amd-drm-next-6.6-2023-07-28' of https://gitlab.freedesktop.org/agd...Daniel Vetter1-1/+2
2023-07-18drm/amdgpu: use a macro to define no xcp partition caseGuchun Chen1-1/+2
2023-07-17Merge tag 'drm-misc-next-2023-07-13' of git://anongit.freedesktop.org/drm/drm...Daniel Vetter1-184/+115
2023-07-12drm/amdgpu: avoid restore process run into dead loop.gaba1-0/+3
2023-07-12drm/amdkfd: switch over to using drm_exec v3Christian König1-184/+115
2023-07-10drm/amdgpu: avoid restore process run into dead loop.gaba1-0/+3
2023-06-09drm/amdgpu: Fix missing parameter desc for 'xcp_id' in amdgpu_amdkfd_reserve_...Srinivasan Shanmugam1-1/+4
2023-06-09drm/amdgpu: Fix create_dmamap_sg_bo kdoc warningsSrinivasan Shanmugam1-1/+2
2023-06-09drm/amdkfd: Fix memory reporting on GFX 9.4.3Mukul Joshi1-18/+63
2023-06-09drm/amdkfd: Store xcp partition id to amdgpu boPhilip Yang1-5/+6
2023-06-09drm/amdkfd: Alloc memory of GPU support memory partitionPhilip Yang1-17/+7
2023-06-09drm/amdgpu: Add memory partition mem_id to amdgpu_boPhilip Yang1-2/+2
2023-06-09drm/amdgpu: For GFX 9.4.3 APU fix vram_usage valueHarish Kasiviswanathan1-3/+6
2023-06-09drm/amdgpu: Fix xGMI access P2P mapping failure on GFXIP 9.4.3Rajneesh Bhardwaj1-1/+1
2023-06-09drm/amdkfd: Native mode memory partition supportRajneesh Bhardwaj1-0/+7
2023-06-09drm/amdgpu: Create VRAM BOs on GTT for GFXIP9.4.3Rajneesh Bhardwaj1-2/+16
2023-06-09drm/amdgpu: Handle VRAM dependencies on GFXIP9.4.3Rajneesh Bhardwaj1-1/+2
2023-06-09drm/amdkfd: Introduce kfd_node struct (v5)Mukul Joshi1-0/+1
2023-06-09drm/amdkfd: Don't trigger evictions unmapping dmabuf attachmentsFelix Kuehling1-5/+10
2023-06-09drm/amdkfd: Update KFD TTM mem limitMukul Joshi1-1/+5
2023-04-24drm/amdkfd: Fix an issue at userptr buffer validation process.Xiaogang Chen1-4/+18
2023-04-11drm/amdgpu: DROP redundant drm_prime_sg_to_dma_addr_arrayShane Xiao1-3/+0
2023-04-11amd/amdgpu: Inherit coherence flags base on original BO flagsShane Xiao1-4/+8
2023-04-11drm/amdgpu: Add userptr bo support for mGPUs when iommu is onShane Xiao1-4/+23
2023-03-07amdkfd: Memory availability can never be negativeDaniel Phillips1-1/+4
2023-02-28drm/amdkfd: Implement DMA buf fd export from KFDFelix Kuehling1-10/+35
2023-02-28drm/amdgpu: Generalize KFD dmabuf importFelix Kuehling1-17/+21
2023-01-16Merge tag 'amd-drm-next-6.3-2023-01-13' of https://gitlab.freedesktop.org/agd...Dave Airlie1-22/+10
2023-01-11drm/amdkfd: Page aligned memory reserve sizePhilip Yang1-5/+7
2023-01-11drm/amdkfd: Cleanup vm process info if init vm failedPhilip Yang1-16/+2
2023-01-10drm/amdkfd: Fix NULL pointer error for GC 11.0.1 on mGPUEric Huang1-1/+1
2023-01-04Merge tag 'drm-misc-next-2023-01-03' of git://anongit.freedesktop.org/drm/drm...Daniel Vetter1-0/+1
2022-12-20drm/amdkfd: Fix double release compute pasidPhilip Yang1-11/+28
2022-12-20drm/amdkfd: Fix double release compute pasidPhilip Yang1-11/+28
2022-12-14drm/amdgpu: Add notifier lock for KFD userptrsFelix Kuehling1-72/+140
2022-12-06drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2Christian König1-0/+1
2022-11-29drm/amdkfd: Fix memory leakageKonstantin Meskhidze1-1/+1
2022-11-17drm/amdgpu: rename the files for HMM handlingChristian König1-3/+4
2022-11-17drm/amdgpu: fix userptr HMM range handling v2Christian König1-4/+8
2022-11-15drm/amdkfd: Fix a memory limit issueEric Huang1-3/+1
2022-11-09drm/amdgpu: Set MTYPE in PTE based on BO flagsFelix Kuehling1-51/+8
2022-11-04drm/amdkfd: Remove skiping userptr buffer mapping when mmu notifier marks it ...Xiaogang Chen1-10/+0
2022-10-24drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()Rafael Mendonca1-3/+3
2022-10-17drm/amdgpu: convert amdgpu_amdkfd_gpuvm.c to IP version checksAlex Deucher1-4/+4
2022-09-13drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP v2Christian König1-10/+16
2022-09-13drm/amdgpu: cleanup coding style in amdgpu_amdkfd_gpuvm.cJingyu Wang1-1/+3
2022-09-07drm/amdkfd: print address in hex format rather than decimalYifan Zhang1-1/+1
2022-08-10drm/amdgpu: Pessimistic availability based on rounded up allocationsDaniel Phillips1-3/+7
2022-08-10drm/amdgpu: Remove rounding from vram allocation pathDaniel Phillips1-6/+5
2022-07-28drm/amdkfd: remove an unnecessary amdgpu_bo_refLang Yu1-1/+0
2022-07-28drm/amdkfd: fix kgd_mem memory leak when importing dmabufLang Yu1-0/+8
2022-07-28drm/amdgpu: add debugfs for kfd system and ttm mem usedAlex Sierra1-0/+19
2022-07-28drm/amdkfd: track unified memory reservation with xnack offAlex Sierra1-9/+14
2022-07-25drm/amdgpu: Refactor code to handle non coherent and uncachedRajneesh Bhardwaj1-27/+24
2022-07-20drm/amdgpu: remove acc_size from reserve/unreserve memAlex Sierra1-43/+17
2022-07-12drm/amdgpu: Remove one duplicated ef removalxinhui pan1-6/+0
2022-07-05drm/amdkfd: simplify vm_validate_pt_pd_bosLang Yu1-14/+0
2022-06-30drm/amdkfd: Add user queue eviction restore SMI eventPhilip Yang1-4/+8
2022-06-23drm/amdkfd: Fix spelling mistake "mechanim" -> "mechanism"Colin Ian King1-1/+1
2022-06-23drm/amdkfd: Enable GFX11 usermode queue oversubscriptionGraham Sider1-0/+48
2022-06-14drm/amdkfd: Add available memory ioctlDaniel Phillips1-4/+34
2022-06-08drm/amdkfd: Document and fix GTT BO kmap APIFelix Kuehling1-4/+24
2022-06-08drm/amdgpu: Add peer-to-peer support among PCIe connected AMD GPUsRamesh Errabolu1-62/+238
2022-06-03drm/amdkfd: add pinned BOs to kfd_bo_listLang Yu1-7/+6
2022-05-26drm/amdkfd: fix typo in commentJulia Lawall1-1/+1
2022-05-19Merge tag 'amd-drm-next-5.19-2022-05-18' of https://gitlab.freedesktop.org/ag...Dave Airlie1-16/+16
2022-05-16drm/amdkfd: allocate MMIO/DOORBELL BOs with AMDGPU_GEM_CREATE_PREEMPTIBLELang Yu1-16/+16
2022-04-28Merge tag 'amd-drm-next-5.19-2022-04-15' of https://gitlab.freedesktop.org/ag...Dave Airlie1-10/+8
2022-04-07drm/ttm: remove bo->movingChristian König1-4/+9
2022-04-07dma-buf: specify usage while adding fences to dma_resv obj v7Christian König1-1/+1
2022-04-06dma-buf/drivers: make reserving a shared slot mandatory v4Christian König1-2/+2
2022-04-05Merge drm/drm-next into drm-misc-nextMaxime Ripard1-12/+64
2022-03-25drm/amdgpu: remove table_freed param from the VM codeChristian König1-1/+1
2022-03-25drm/amdkfd: use tlb_seq from the VM subsystem for SVM as well v2Christian König1-10/+8
2022-03-24dma-buf: add dma_resv_replace_fences v2Christian König1-42/+7
2022-02-14drm/amdgpu: Fix some kerneldoc warningsRajneesh Bhardwaj1-1/+1
2022-02-07drm/amdkfd: CRIU Implement KFD resume ioctlRajneesh Bhardwaj1-3/+50
2022-02-07drm/amdkfd: CRIU Implement KFD checkpoint ioctlRajneesh Bhardwaj1-0/+11
2022-02-07drm/amdgpu: rename amdgpu_vm_bo_rmv to _delChristian König1-2/+2
2022-01-19drm/amdkfd: enable heavy-weight TLB flush on ArcturusEric Huang1-6/+0
2021-12-13drm/amdgpu: Reduce SG bo memory usage for mGPUsPhilip Yang1-4/+6
2021-12-01drm/amdkfd: err_pin_bo path leaks kfd_bo_listPhilip Yang1-8/+6
2021-12-01drm/amdkfd: fix double free mem structurePhilip Yang1-3/+5
2021-11-24drm/amdgpu: Declare Unpin BO api as staticRamesh Errabolu1-1/+1
2021-11-22drm/amdgpu: Fix double free of dmabufxinhui pan1-6/+0
2021-11-22drm/amdgpu: Pin MMIO/DOORBELL BO's in GTT domainRamesh Errabolu1-0/+69
2021-11-22drm/amdgpu: Update BO memory accounting to rely on allocation flagRamesh Errabolu1-36/+59
2021-11-17drm/amdkfd: replace kgd_dev in gpuvm amdgpu_amdkfd funcsGraham Sider1-30/+16
2021-11-05drm/amdgpu: Fix dangling kfd_bo pointer for shared BOsFelix Kuehling1-3/+9
2021-11-05drm/amdgpu: Make sure to reserve BOs before adding or removingKent Russell1-3/+10
2021-10-28drm/amdkfd: Separate pinned BOs destruction from general routineLang Yu1-0/+10
2021-10-28drm/amdkfd: restore userptr ignore bad address errorPhilip Yang1-10/+17
2021-10-19drm/amdkfd: Fix an inappropriate error handling in allloc memory of gpuLang Yu1-1/+1
2021-10-04drm/amdkfd: fix a potential ttm->sg memory leakLang Yu1-0/+1
2021-08-02Revert "Revert "drm/amdkfd: Only apply TLB flush optimization on ALdebaran""Eric Huang1-0/+6
2021-08-02Revert "Revert "drm/amdkfd: Make TLB flush conditional on mapping""Eric Huang1-8/+11
2021-07-30Merge tag 'amd-drm-next-5.15-2021-07-29' of https://gitlab.freedesktop.org/ag...Dave Airlie1-1/+12
2021-07-28Revert "Revert "drm/amdkfd: Make TLB flush conditional on mapping""Eric Huang1-8/+11
2021-07-13Revert "drm/amdkfd: Make TLB flush conditional on mapping"Eric Huang1-11/+8
2021-07-13drm/amdkfd: Allow CPU access for all VRAM BOsFelix Kuehling1-2/+1
2021-07-13Revert "drm/amdkfd: Make TLB flush conditional on mapping"Eric Huang1-11/+8
2021-07-13Revert "drm/amdkfd: Only apply TLB flush optimization on ALdebaran"Eric Huang1-6/+0
2021-07-13drm/amdkfd: Allow CPU access for all VRAM BOsFelix Kuehling1-2/+1
2021-07-08drm/amdkfd: Only apply TLB flush optimization on ALdebaranEric Huang1-0/+6
2021-07-08drm/amdgpu: separate out vm pasid assignmentNirmoy Das1-1/+12
2021-06-15drm/amdgpu: remove amdgpu_vm_ptNirmoy Das1-13/+13
2021-06-11drm/amdgpu: use adev_to_drm macro for consistency (v2)Guchun Chen1-1/+1
2021-06-10drm/amdkfd: use allowed domain for vmbo validationNirmoy Das1-17/+4
2021-06-10Merge tag 'amd-drm-next-5.14-2021-06-09' of https://gitlab.freedesktop.org/ag...Dave Airlie1-9/+12
2021-06-10Merge tag 'drm-misc-next-2021-06-09' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-2/+2
2021-06-06dma-buf: rename and cleanup dma_resv_get_list v2Christian König1-1/+1
2021-06-04drm/amdgpu: remove redundant assignment of variable kColin Ian King1-1/+1
2021-06-04drm/amdkfd: Make TLB flush conditional on mappingEric Huang1-8/+11
2021-06-02drm/ttm: rename bo->mem and make it a pointerChristian König1-1/+1
2021-05-25drm/amdgpu: Fix an error code in kfd_mem_attach_dmabuf()Dan Carpenter1-1/+3
2021-05-25drm/amdgpu: add missing unreserve on errorDan Carpenter1-2/+1
2021-05-21drm/amdgpu: Use preemptible placement for KFDFelix Kuehling1-3/+4
2021-05-19drm/amdgpu: Move dmabuf attach/detach to backend_(un)bindFelix Kuehling1-3/+0
2021-05-19drm/amdgpu: Add DMA mapping of GTT BOsFelix Kuehling1-1/+75
2021-05-19drm/amdgpu: Move kfd_mem_attach outside reservationFelix Kuehling1-31/+44
2021-05-19drm/amdgpu: DMA map/unmap when updating GPU mappingsFelix Kuehling1-27/+29
2021-05-19drm/amdgpu: Add multi-GPU DMA mapping helpersFelix Kuehling1-8/+141
2021-05-19drm/amdgpu: Simplify AQL queue mappingFelix Kuehling1-55/+48
2021-05-19drm/amdgpu: Keep a bo-reference per-attachmentFelix Kuehling1-5/+17
2021-05-19drm/amdgpu: Rename kfd_bo_va_list to kfd_mem_attachmentFelix Kuehling1-109/+100
2021-05-19drm/amdgpu: Albebaran: MTYPE_NC for coarse-grain remote memoryFelix Kuehling1-1/+2
2021-05-19drm/amdgpu: Arcturus: MTYPE_NC for coarse-grain remote memoryFelix Kuehling1-1/+2
2021-04-20drm/amdgpu: add param bit flag to create SVM BOsAlex Sierra1-5/+2
2021-04-20drm/amdkfd: add svm_bo reference for eviction fenceAlex Sierra1-2/+4
2021-04-20drm/amdkfd: set memory limit to avoid OOM with HMM enabledPhilip Yang1-0/+5
2021-04-20drm/amdkfd: map svm range to GPUsFelix Kuehling1-7/+0
2021-04-20drm/amdkfd: Allow access for mmapping KFD BOsFelix Kuehling1-1/+17
2021-04-20drm/amdkfd: Use drm_priv to pass VM from KFD to amdgpuFelix Kuehling1-28/+41
2021-04-15drm/amdkfd: Remove legacy code not acquiring VMsFelix Kuehling1-50/+0
2021-04-15drm/amdkfd: change MTYPEs for Aldebaran's HW requirementEric Huang1-8/+5
2021-03-26Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/ag...Daniel Vetter1-2/+35
2021-03-23drm/amdkfd: apply uncached flag for aldebaranEric Huang1-1/+7
2021-03-23drm/amdgpu: Use free system memory size for kfd memory accountingOak Zeng1-1/+1
2021-03-23drm/amdgpu: new cache coherence change for AldebaranEric Huang1-2/+28
2021-03-16Merge tag 'drm-misc-next-2021-03-03' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-4/+12
2021-03-10drm/amdkfd: Add Aldebaran KFD supportYong Zhao1-0/+1
2021-02-09drm/ttm: move memory accounting into vmwgfx v4Christian König1-4/+12
2021-02-02drm/amdkfd: fix null pointer panic while free buffer in kfdHuang Rui1-10/+6
2021-01-07Merge tag 'drm-misc-next-2020-12-17' of git://anongit.freedesktop.org/drm/drm...Daniel Vetter1-4/+4
2020-12-15drm/amdkfd: correct amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu log.Yifan Zhang1-1/+1
2020-12-15Merge drm/drm-next into drm-misc-nextMaarten Lankhorst1-2/+15
2020-12-14drm/amdkfd: fix ttm size refactor falloutDaniel Vetter1-4/+4
2020-12-01drm/amdkfd: keep BOs in system memory if restore failedPhilip Yang1-2/+15
2020-11-10Merge tag 'amd-drm-next-5.11-2020-11-05' of git://people.freedesktop.org/~agd...Dave Airlie1-13/+12
2020-11-04Merge tag 'drm-misc-next-2020-10-27' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-2/+3
2020-11-02drm/amdgpu/amdgpu: improve code indentation and alignmentDeepak R Varma1-10/+10
2020-10-26drm/amdgpu: use true and false for bool initialisationsSumera Priyadarsini1-1/+1
2020-10-15Merge tag 'drm-next-2020-10-15' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-3/+7
2020-10-09drm/amdgpu: Use struct_size() helper in kmalloc()Gustavo A. R. Silva1-2/+1
2020-09-24drm/amdgpu: switch over to the new pin interfaceChristian König1-2/+3
2020-09-17drm, iommu: Change type of pasid to u32Fenghua Yu1-2/+2
2020-09-08Merge tag 'amd-drm-next-5.10-2020-09-03' of git://people.freedesktop.org/~agd...Dave Airlie1-2/+6
2020-08-24drm/amdgpu: drm_device to amdgpu_device by inline-f (v2)Luben Tuikov1-1/+1
2020-08-18Merge v5.9-rc1 into drm-misc-nextMaxime Ripard1-2/+0
2020-08-14drm/amdgpu: revert "fix system hang issue during GPU reset"Christian König1-7/+0
2020-08-12Merge drm/drm-next into drm-misc-nextThomas Zimmermann1-4/+4
2020-08-10Merge tag 'locking-urgent-2020-08-10' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-2/+0
2020-08-07drm/amdgpu: make sure userptr ttm is allocatedChristian König1-1/+1
2020-08-06drm/amdkfd: option to disable system mem limitPhilip Yang1-1/+5
2020-07-29dma-buf: Use sequence counter with associated wound/wait mutexAhmed S. Darwish1-2/+0
2020-07-27drm/amdgpu: fix system hang issue during GPU resetDennis Li1-0/+7
2020-07-02Merge tag 'amd-drm-next-5.9-2020-07-01' of git://people.freedesktop.org/~agd5...Dave Airlie1-4/+4
2020-07-01drm/amdgpu: remove distinction between explicit and implicit sync (v2)Christian König1-4/+4
2020-06-24Merge tag 'drm-misc-next-2020-06-19' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-1/+1
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-2/+2
2020-05-21drm/amdkfd: fix restore worker race conditionPhilip Yang1-3/+3
2020-05-06drm/amdgpu: Use GEM obj reference for KFD BOsFelix Kuehling1-2/+3
2020-04-30drm/amdkfd: Track GPU memory utilization per processMukul Joshi1-1/+15
2020-04-23drm/amdgpu: shrink critical section in amdgpu_amdkfd_gpuvm_free_memory_of_gpuBernard Zhao1-7/+7
2020-04-22drm/amdgpu: cleanup coding style in amdkfd a bitBernard Zhao1-11/+9
2020-04-13drm/amd/amdgpu: remove hardcoded module name in printsAurabindo Pillai1-3/+3