aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
AgeCommit message (Expand)AuthorFilesLines
10 daysMerge tag 'drm-next-2024-05-15' of https://gitlab.freedesktop.org/drm/kernelLinus Torvalds1-9/+79
2024-05-10drm/amdgpu: Fix comparison in amdgpu_res_cpu_visibleMichel Dänzer1-1/+1
2024-04-30drm/amdgpu: fix doorbell regressionShashank Sharma1-1/+1
2024-04-30drm/amdgpu: once more fix the call oder in amdgpu_ttm_move() v2Christian König1-22/+26
2024-04-30Merge tag 'amd-drm-next-6.10-2024-04-26' of https://gitlab.freedesktop.org/ag...Dave Airlie1-7/+11
2024-04-26drm/amdgpu: replace tmz flag into buffer flagFrank Min1-7/+11
2024-04-23Merge drm/drm-next into drm-misc-nextMaxime Ripard1-27/+38
2024-04-22drm/amdgpu: Enable clear page functionalityArunpravin Paneer Selvam1-2/+68
2024-04-17drm/amdgpu: fix visible VRAM handling during faultsChristian König1-23/+38
2024-04-17drm/amdgpu: remove invalid resource->start check v2Christian König1-4/+0
2024-04-16drm/amdgpu: fix visible VRAM handling during faultsChristian König1-23/+38
2024-04-12drm/amdgpu: remove invalid resource->start check v2Christian König1-4/+0
2024-03-20drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flagPhilip Yang1-0/+1
2024-01-29Merge drm/drm-next into drm-misc-nextMaxime Ripard1-5/+4
2024-01-25drm/ttm: replace busy placement with flags v6Somalapuram Amaranath1-9/+2
2023-12-14drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heapWang, Beyond1-2/+3
2023-11-29drm/amdgpu: fix AGP addressing when GART is not at 0Alex Deucher1-3/+1
2023-09-20drm/amdgpu: Use function for IP version checkLijo Lazar1-1/+2
2023-08-15drm/amdgpu: Replace ternary operator with min() in 'amdgpu_iomem_write'Srinivasan Shanmugam1-1/+1
2023-08-15drm/amdgpu: Remove duplicated includesGUO Zihua1-1/+0
2023-08-15drm/amdgpu: Replace ternary operator with min() in 'amdgpu_iomem_read'Srinivasan Shanmugam1-1/+1
2023-08-07drm/amdgpu: create kernel doorbell pagesShashank Sharma1-0/+7
2023-08-07drm/amdgpu: initialize ttm for doorbellsShashank Sharma1-0/+7
2023-08-07drm/amdgpu: accommodate DOMAIN/PL_DOORBELLAlex Deucher1-1/+15
2023-06-15drm/amdgpu: Rename DRM schedulers in amdgpu TTMMukul Joshi1-9/+9
2023-06-09drm/amdgpu: bypass bios dependent operationsShiwu Zhang1-2/+5
2023-06-09drm/amdgpu: Add a low priority scheduler for VRAM clearingMukul Joshi1-9/+28
2023-06-09drm/amdgpu: stop including swiotlb.hChristoph Hellwig1-1/+0
2023-06-09drm/amdgpu: remove unnecessary (void*) conversionsSu Hui1-1/+1
2023-06-09drm/amd/amdgpu: Fix errors & warnings in amdgpu_ttm.cSrinivasan Shanmugam1-12/+13
2023-06-09drm/amdgpu/gmc9: fix 64 bit division in partition codeAlex Deucher1-1/+4
2023-06-09drm/amdkfd: Store xcp partition id to amdgpu boPhilip Yang1-1/+5
2023-06-09drm/amdkfd: Alloc memory of GPU support memory partitionPhilip Yang1-19/+1
2023-06-09drm/amdgpu: Fix unmapping of apertureLijo Lazar1-3/+4
2023-06-09drm/amdkfd: Native mode memory partition supportRajneesh Bhardwaj1-0/+18
2023-06-09drm/amdgpu: Set TTM pools for memory partitionsPhilip Yang1-2/+59
2023-06-09drm/amdgpu: Use apt name for FW reserved regionLijo Lazar1-17/+19
2023-06-09drm/amdgpu: Handle VRAM dependencies on GFXIP9.4.3Rajneesh Bhardwaj1-36/+53
2023-06-09drm/amdkfd: Update MQD management on multi XCC setupMukul Joshi1-15/+36
2023-06-09drm/amdgpu: Set GTT size equal to TTM mem limitMukul Joshi1-19/+6
2023-02-06drm/ttm: prevent moving of pinned BOsChristian König1-4/+0
2023-01-25drm/ttm: revert "prevent moving of pinned BOs"Christian König1-0/+4
2023-01-25drm/ttm: prevent moving of pinned BOsChristian König1-4/+0
2023-01-16Merge tag 'amd-drm-next-6.3-2023-01-06' of https://gitlab.freedesktop.org/agd...Dave Airlie1-15/+8
2023-01-04Merge tag 'drm-misc-next-2023-01-03' of git://anongit.freedesktop.org/drm/drm...Daniel Vetter1-2/+2
2023-01-03drm/amdgpu: cleanup visible vram size handlingChristian König1-7/+0
2023-01-03drm/amdgpu: use VRAM|GTT for a bunch of kernel allocationsChristian König1-8/+8
2022-12-14drm/amdgpu: Remove unnecessary domain argumentLuben Tuikov1-7/+0
2022-12-14drm/amdgpu: Add notifier lock for KFD userptrsFelix Kuehling1-5/+12
2022-12-06drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2Christian König1-2/+2
2022-11-29drm/amdgpu: add drv_vram_usage_va for virt data exchangeTong Liu011-3/+4
2022-11-22Merge tag 'amd-drm-next-6.2-2022-11-18' of https://gitlab.freedesktop.org/agd...Dave Airlie1-42/+71
2022-11-17drm/amdgpu: cleanup amdgpu_hmm_range_get_pagesChristian König1-3/+2
2022-11-17drm/amdgpu: rename the files for HMM handlingChristian König1-0/+1
2022-11-17drm/amdgpu: fix userptr HMM range handling v2Christian König1-38/+15
2022-11-16Merge tag 'drm-misc-next-2022-11-10-1' of git://anongit.freedesktop.org/drm/d...Dave Airlie1-46/+26
2022-11-10drm/amdgpu: add vram reservation based on vram_usagebyfirmware_v2_2Tong Liu011-0/+51
2022-11-09drm/amdgpu: Fix the kerneldoc descriptionRajneesh Bhardwaj1-2/+3
2022-11-08Merge tag 'amd-drm-next-6.2-2022-11-04' of https://gitlab.freedesktop.org/agd...Dave Airlie1-4/+4
2022-11-05Merge drm/drm-next into drm-misc-nextThomas Zimmermann1-0/+3
2022-11-04Merge tag 'drm-misc-next-2022-11-03' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-3/+3
2022-11-03drm/amdgpu: cleanup scheduler job initialization v2Christian König1-35/+21
2022-11-03drm/amdgpu: use drm_sched_job_add_resv_dependencies for movesChristian König1-11/+5
2022-10-27drm/ttm: rework on ttm_resource to use size_t typeSomalapuram Amaranath1-3/+3
2022-10-18drm/amdgpu: Fix for BO move issueArunpravin Paneer Selvam1-0/+3
2022-10-18drm/amdgpu: Fix for BO move issueArunpravin Paneer Selvam1-0/+3
2022-10-17drm/amd/amdgpu: Replace kmap() with kmap_local_page()Fabio M. De Francesco1-4/+4
2022-10-06drm/amdgpu: Fix VRAM BO swap issueArunpravin Paneer Selvam1-5/+12
2022-09-11Merge tag 'drm-misc-next-2022-09-09' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-32/+13
2022-09-06Merge tag 'drm-misc-next-2022-08-20-1' of git://anongit.freedesktop.org/drm/d...Daniel Vetter1-1/+2
2022-08-22drm/ttm: Switch to using the new res callbackArunpravin Paneer Selvam1-32/+13
2022-08-10drm/amdgpu: Avoid direct cast to amdgpu_ttm_ttRajneesh Bhardwaj1-16/+18
2022-07-13Merge drm/drm-next into drm-misc-nextMaxime Ripard1-6/+14
2022-07-11drm/amdgpu: audit bo->resource usageChristian König1-1/+2
2022-06-21drm/amdgpu: Adjust logic around GTT size (v3)Alex Deucher1-6/+14
2022-05-26drm/amdgpu: add AMDGPU_GEM_CREATE_DISCARDABLEChristian König1-1/+1
2022-04-20drm/amdgpu: Use TTM builtin resource manager debugfs codeZack Rusin1-70/+16
2022-04-07dma-buf: add DMA_RESV_USAGE_BOOKKEEP v3Christian König1-1/+1
2022-04-07dma-buf: add enum dma_resv_usage v4Christian König1-1/+2
2022-04-05Merge drm/drm-next into drm-misc-nextMaxime Ripard1-164/+245
2022-03-29drm/ttm: rework bulk move handling v5Christian König1-1/+0
2022-02-25Merge tag 'drm-misc-next-2022-02-23' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-1/+1
2022-02-14drm/amdgpu: remove VRAM accounting v2Christian König1-1/+1
2022-02-14Merge tag 'amd-drm-next-5.18-2022-02-11-1' of https://gitlab.freedesktop.org/...Dave Airlie1-164/+245
2022-02-07drm/amdkfd: CRIU Implement KFD checkpoint ioctlRajneesh Bhardwaj1-0/+20
2022-02-02drm/amdgpu: restructure amdgpu_fill_buffer v2Christian König1-82/+105
2022-02-02drm/amdgpu: rework GART copy window handlingChristian König1-25/+24
2022-02-02drm/amdgpu: lower BUG_ON into WARN_ON for AMDGPU_PL_PREEMPTChristian König1-1/+3
2022-02-02drm/amdgpu: fix logic inversion in checkChristian König1-1/+1
2022-02-01Merge tag 'drm-misc-next-2022-01-27' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-5/+5
2022-01-24drm/amdgpu: use ttm_resource_manager_debugChristian König1-5/+5
2022-01-19drm/amdgpu: fix broken debug sdma vram access functionJonathan Kim1-7/+8
2022-01-19drm/amdgpu: remove gart.ready flagChristian König1-55/+22
2022-01-14drm/amdgpu: cleanup ttm debug sdma vram access functionJonathan Kim1-16/+7
2022-01-14drm/amdgpu: improve debug VRAM access performance using sdmaJonathan Kim1-0/+78
2022-01-11drm/amdgpu: Unmap MMIO mappings when device is not unpluggedLeslie Shi1-0/+11
2021-12-10Merge tag 'amd-drm-next-5.17-2021-12-02' of https://gitlab.freedesktop.org/ag...Dave Airlie1-5/+0
2021-11-22drm/amdgpu: partially revert "svm bo enable_signal call condition"Christian König1-9/+0
2021-11-18Merge drm/drm-next into drm-misc-nextThomas Zimmermann1-1/+9
2021-11-17drm/amdgpu: remove unnecessary checksNirmoy Das1-5/+0
2021-11-04Merge tag 'char-misc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+3
2021-10-28drm/amdkfd: restore userptr ignore bad address errorPhilip Yang1-0/+3
2021-10-25Merge drm/drm-next into drm-misc-nextMaxime Ripard1-9/+39
2021-10-25dma-buf: move dma-buf symbols into the DMA_BUF module namespaceGreg Kroah-Hartman1-0/+3
2021-10-22drm/amdgpu: use new iterator in amdgpu_ttm_bo_eviction_valuableChristian König1-10/+4
2021-10-13drm/amdkfd: unregistered svm range not overlap with TTM rangePhilip Yang1-1/+3
2021-10-11Merge tag 'drm-misc-next-2021-10-06' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-6/+19
2021-10-07drm/amdgpu: unify BO evicting method in amdgpu_ttmNirmoy Das1-0/+30
2021-09-29drm/ttm: s/FLAG_SG/FLAG_EXTERNAL/Matthew Auld1-5/+5
2021-09-29drm/ttm: move ttm_tt_{add, clear}_mapping into amdgpuMatthew Auld1-1/+14
2021-09-22Merge tag 'drm-misc-next-2021-09-16' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-2/+2
2021-09-14drm/amdgpu: fix use after free during BO moveChristian König1-9/+9
2021-09-14Merge drm/drm-next into drm-misc-nextMaxime Ripard1-2/+2
2021-08-23drm/ttm: remove ttm_tt_destroy_common v2Christian König1-1/+0
2021-08-23drm/amdgpu: unbind in amdgpu_ttm_tt_unpopulateChristian König1-1/+2
2021-08-05drm/amdgpu: drop redundant null-pointer checks in amdgpu_ttm_tt_populate() an...Tuo Li1-2/+2
2021-07-30Merge tag 'amd-drm-next-5.15-2021-07-29' of https://gitlab.freedesktop.org/ag...Dave Airlie1-41/+49
2021-07-21Merge tag 'drm-misc-next-2021-07-16' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-3/+5
2021-07-16drm/amdgpu/ttm: optimize vram access in amdgpu_ttm_access_memory()Kevin Wang1-35/+48
2021-07-16drm/amdgpu/ttm: replace duplicate code with exiting functionKevin Wang1-6/+1
2021-07-08Merge tag 'drm-next-2021-07-08-1' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-6/+3
2021-07-08Merge tag 'drm-misc-next-fixes-2021-07-01' of git://anongit.freedesktop.org/d...Dave Airlie1-1/+2
2021-07-01Merge tag 'drm-next-2021-07-01' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-233/+154
2021-07-01drm/amdkfd: add owner ref param to get hmm pagesAlex Sierra1-1/+1
2021-07-01drm/amdgpu: Set ttm caching flags during bo allocationOak Zeng1-4/+0
2021-06-29drm/amdgpu: use vma_lookup() in amdgpu_ttm_tt_get_user_pages()Liam Howlett1-2/+2
2021-06-29drm/amdgpu: return early for non-TTM_PL_TT type BOsNirmoy Das1-1/+2
2021-06-23ydrm/amdgpu: always allow evicting to SYSTEM domainChristian König1-2/+4
2021-06-23drm/amdgpu: user temporary GTT as bounce bufferLang Yu1-1/+1
2021-06-18drm/amdgpu: remove unused parameter in amdgpu_gart_bindYifan Zhang1-4/+3
2021-06-18drm/amdgpu: Set TTM_PAGE_FLAG_SG earlier for userprt BOsxinhui pan1-3/+3
2021-06-10Merge tag 'amd-drm-next-5.14-2021-06-09' of https://gitlab.freedesktop.org/ag...Dave Airlie1-0/+10
2021-06-10Merge tag 'drm-misc-next-2021-06-09' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-46/+54
2021-06-07drm/ttm, drm/amdgpu: Allow the driver some control over swappingThomas Hellström1-0/+4
2021-06-06dma-buf: rename and cleanup dma_resv_get_list v2Christian König1-1/+1
2021-06-04drm/amdgpu: introduce a stolen reserved buffer to protect specific buffer reg...Huang Rui1-0/+10
2021-06-04drm/ttm: flip over the range manager to self allocated nodesChristian König1-0/+1
2021-06-04drm/ttm: allocate resource object instead of embedding it v2Christian König1-27/+27
2021-06-04Merge tag 'amd-drm-next-5.14-2021-06-02' of https://gitlab.freedesktop.org/ag...Dave Airlie1-4/+34
2021-06-02drm/ttm: rename bo->mem and make it a pointerChristian König1-20/+23
2021-06-01drm/amdgpu: flush gart changes after all BO recoveryNirmoy Das1-0/+1
2021-05-26drm/amdgpu: Implement mmap as GEM object functionThomas Zimmermann1-75/+0
2021-05-22Merge drm/drm-next into drm-misc-nextThomas Zimmermann1-112/+57
2021-05-21drm/amdgpu: Add new placement for preemptible SG BOsFelix Kuehling1-4/+33
2021-05-21Merge tag 'amd-drm-next-5.14-2021-05-21' of https://gitlab.freedesktop.org/ag...Dave Airlie1-38/+32
2021-05-21Merge tag 'amd-drm-next-5.14-2021-05-19' of https://gitlab.freedesktop.org/ag...Dave Airlie1-74/+25
2021-05-19drm/amdgpu: Unmap all MMIO mappingsAndrey Grodzovsky1-4/+0
2021-05-19drm/amdgpu: Remap all page faults to per process dummy page.Andrey Grodzovsky1-5/+16
2021-05-19drm/amdgpu: Fix a use-after-freexinhui pan1-0/+1
2021-05-19drm/amdgpu: Move dmabuf attach/detach to backend_(un)bindFelix Kuehling1-26/+25
2021-05-19drm/amdgpu: Fix GPU TLB update error when PAGE_SIZE > AMDGPU_PAGE_SIZEYi Li1-1/+1
2021-05-19drm/amdgpu: check contiguous flags instead of mm_nodeChristian König1-7/+4
2021-05-19drm/amdgpu: switch to cached fw flags for mem training capHawking Zhang1-4/+1
2021-05-19drm/amdgpu: Fix a use-after-freexinhui pan1-0/+1
2021-05-19drm/amdgpu: Fix GPU TLB update error when PAGE_SIZE > AMDGPU_PAGE_SIZEYi Li1-1/+1
2021-05-03drm/ttm: always initialize the full ttm_resource v2Christian König1-2/+0
2021-04-20drm/amd/amdgpu/amdgpu_ttm: Fix incorrectly documented function 'amdgpu_ttm_co...Lee Jones1-1/+1
2021-04-20drm/amdgpu: svm bo enable_signal call conditionAlex Sierra1-0/+14
2021-04-20drm/amdgpu: add common HMM get pages functionPhilip Yang1-66/+10
2021-04-20drm/amdgpu: Remove verify_access shortcut for KFD BOsFelix Kuehling1-7/+0
2021-04-09drm/amdgpu: Fix size overflowxinhui pan1-1/+1
2021-04-09drm/amdgpu: fix compiler warning(v2)Guchun Chen1-3/+1
2021-04-09drm/amdgpu: fix NULL pointer dereferenceGuchun Chen1-1/+1
2021-04-09drm/amdgpu: Use correct size when access vramxinhui pan1-1/+1
2021-04-09drm/amdgpu/ttm: Fix memory leak userptr pagesDaniel Gomez1-3/+3
2021-03-26Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/ag...Daniel Vetter1-287/+171
2021-03-23drm/amdgpu: use the new cursor in amdgpu_ttm_bo_eviction_valuableChristian König1-6/+8
2021-03-23drm/amdgpu: use new cursor in amdgpu_mem_visibleChristian König1-4/+6
2021-03-23drm/amdgpu: use the new cursor in amdgpu_ttm_access_memoryChristian König1-49/+18
2021-03-23drm/amdgpu: use new cursor in amdgpu_ttm_io_mem_pfnChristian König1-5/+3
2021-03-23drm/amdgpu: use the new cursor in amdgpu_fill_bufferChristian König1-50/+15
2021-03-23drm/amdgpu: use the new cursor in amdgpu_ttm_copy_mem_to_memChristian König1-61/+26
2021-03-23drm/amdgpu: fix compile error on architecture s390 (v2)Oak Zeng1-0/+2
2021-03-23drm/amdgpu: set snoop bit in pde/pte entries for A+AEric Huang1-0/+4
2021-03-23drm/amdgpu: set CPU mapping of vram as cached for A+A modeEric Huang1-1/+4
2021-03-23drm/amdgpu: use pd addr based on gart level page tableAlex Sierra1-1/+2
2021-03-23drm/amdgpu: pre-map device buffer as cached for A+A configOak Zeng1-2/+7
2021-02-25drm/amdgpu/ttm: constify static vm_operations_structRikard Falkeborn1-1/+1
2021-02-18drm/amdgpu: do not use drm middle layer for debugfsNirmoy Das1-29/+71
2021-02-18drm/amdgpu: remove CONFIG_DRM_AMDGPU_GART_DEBUGFSNirmoy Das1-57/+0
2021-02-18drm/amdgpu: do not keep debugfs dentryNirmoy Das1-29/+12
2021-01-21drm/ttm: device naming cleanupChristian König1-13/+13
2020-12-15Merge drm/drm-next into drm-misc-nextMaarten Lankhorst1-41/+32
2020-12-15Merge tag 'drm-misc-next-2020-11-27-1' of git://anongit.freedesktop.org/drm/d...Daniel Vetter1-30/+23
2020-12-14drm/ttm: cleanup BO size handling v3Christian König1-3/+3
2020-12-10Merge tag 'amd-drm-next-5.11-2020-12-09' of git://people.freedesktop.org/~agd...Dave Airlie1-41/+32
2020-12-08drm/amdgpu: remove amdgpu_ttm_late_init and amdgpu_bo_late_initAlex Deucher1-7/+0
2020-12-08drm/amdgpu: free the pre-OS console framebuffer after the first modesetAlex Deucher1-6/+2
2020-12-01drm/ttm/drivers: remove unecessary ttm_module.h include v2Christian König1-1/+0
2020-11-30drm/prime: split array import functions v4Christian König1-5/+4
2020-11-30drm/amdgpu: stop using pages with drm_prime_sg_to_page_addr_arraysChristian König1-3/+3
2020-11-24drm/amd/amdgpu/amdgpu_ttm: Add description for 'page_flags'Lee Jones1-0/+1
2020-11-18drm/amdgpu: fix check order in amdgpu_bo_moveChristian König1-30/+23
2020-11-13drm/amd/amdgpu/amdgpu_ttm: Demote non-conformant kernel-doc headers, fix slig...Lee Jones1-29/+30
2020-11-11drm/amdgpu/ttm: use multihopDave Airlie1-124/+12
2020-11-11drm/ttm: add multihop infrastrucutre (v3)Dave Airlie1-1/+2
2020-11-10Merge tag 'amd-drm-next-5.11-2020-11-05' of git://people.freedesktop.org/~agd...Dave Airlie1-5/+5
2020-11-04drm/ttm: rework no_retry handling v2Christian König1-3/+0
2020-11-02drm/amdgpu/amdgpu: use "*" adjacent to data nameDeepak R Varma1-3/+3
2020-11-02drm/amdgpu/amdgpu: improve code indentation and alignmentDeepak R Varma1-1/+1