linux_dsm_epyc7002/drivers/gpu/drm/amd/amdgpu
Felix Kuehling 611736d844 drm/amdgpu: Add KFD VRAM limit checking
We don't want KFD processes evicting each other over VRAM usage.
Therefore prevent overcommitting VRAM among KFD applications with
a per-GPU limit. Also leave enough room for page tables on top
of the application memory usage.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-12-07 18:13:15 -05:00
..
amdgpu_acp.c drm/amdgpu: Fix null point error 2018-10-24 20:04:03 -05:00
amdgpu_acp.h
amdgpu_acpi.c drm/amdgpu/acpi: NULL check before some freeing functions is not needed 2018-12-05 17:50:26 -05:00
amdgpu_afmt.c
amdgpu_amdkfd_fence.c
amdgpu_amdkfd_gfx_v7.c drm/amdgpu: Workaround build failure due to trace conflict 2018-12-07 17:53:47 -05:00
amdgpu_amdkfd_gfx_v8.c drm/amdgpu: Workaround build failure due to trace conflict 2018-12-07 17:53:47 -05:00
amdgpu_amdkfd_gfx_v9.c drm/amdgpu: Workaround build failure due to trace conflict 2018-12-07 17:53:47 -05:00
amdgpu_amdkfd_gpuvm.c drm/amdgpu: Add KFD VRAM limit checking 2018-12-07 18:13:15 -05:00
amdgpu_amdkfd.c drm/amdgpu: Add KFD VRAM limit checking 2018-12-07 18:13:15 -05:00
amdgpu_amdkfd.h drm/amdgpu: Add KFD VRAM limit checking 2018-12-07 18:13:15 -05:00
amdgpu_atombios.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_atombios.h
amdgpu_atomfirmware.c drm/amdgpu: fix unknown vram mem type for vega20 2018-09-19 12:37:39 -05:00
amdgpu_atomfirmware.h
amdgpu_atpx_handler.c
amdgpu_benchmark.c
amdgpu_bios.c
amdgpu_bo_list.c drm/amdgpu: fix using shared fence for exported BOs v2 2018-12-07 17:53:44 -05:00
amdgpu_bo_list.h drm/amdgpu: remove amdgpu_bo_list_entry.robj (v2) 2018-09-13 15:14:12 -05:00
amdgpu_cgs.c drm/amdgpu: update smu firmware images for VI variants (v2) 2018-11-05 14:21:45 -05:00
amdgpu_connectors.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_connectors.h
amdgpu_cs.c drm/amdgpu: always reserve one more shared slot for pipelined BO moves 2018-12-07 17:53:45 -05:00
amdgpu_csa.c drm/ttm: allow reserving more than one shared slot v3 2018-12-07 17:53:44 -05:00
amdgpu_csa.h drm/amdgpu: Change AMDGPU_CSA_SIZE to 128K 2018-11-05 14:21:50 -05:00
amdgpu_ctx.c drm/amdgpu: add VCN JPEG support amdgpu_ctx_num_entities 2018-11-30 12:01:23 -05:00
amdgpu_ctx.h drm/amdgpu: amdgpu_ctx_add_fence can't fail 2018-08-27 15:12:10 -05:00
amdgpu_debugfs.c drm/amd/amdgpu: Fix debugfs error handling 2018-10-16 15:10:34 -05:00
amdgpu_debugfs.h
amdgpu_device.c drm/amdgpu/si: fix SI after doorbell rework 2018-12-05 17:49:50 -05:00
amdgpu_display.c drm/amdgpu: Correct get_crtc_scanoutpos behavior when vpos >= vtotal 2018-11-28 15:55:35 -05:00
amdgpu_display.h drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_doorbell.h drm/amdgpu: Move doorbell structures to seperate file 2018-11-28 15:55:33 -05:00
amdgpu_dpm.c
amdgpu_dpm.h drm/amdgpu: Add fan RPM setting via sysfs 2018-10-09 17:04:59 -05:00
amdgpu_drv.c drm/amdgpu: fix spelling mistake "Pramater" -> "Parameter" 2018-11-26 15:54:40 -05:00
amdgpu_drv.h
amdgpu_encoders.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_fb.c drm/amdgpu: move gem definitions into amdgpu_gem header 2018-08-27 11:09:56 -05:00
amdgpu_fence.c drm/amdgpu: drop the remaining uses of ring idx in messages 2018-11-05 14:21:31 -05:00
amdgpu_gart.c drm/amdgpu: Added a few comments for gart 2018-11-05 14:21:16 -05:00
amdgpu_gart.h drm/amdgpu: Added a few comments for gart 2018-11-05 14:21:16 -05:00
amdgpu_gds.h drm/amdgpu: fix up GDS/GWS/OA shifting 2018-09-19 12:38:48 -05:00
amdgpu_gem.c drm/ttm: allow reserving more than one shared slot v3 2018-12-07 17:53:44 -05:00
amdgpu_gem.h drm/amdgpu: move gem definitions into amdgpu_gem header 2018-08-27 11:09:56 -05:00
amdgpu_gfx.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
amdgpu_gfx.h drm/amdgpu: separate amdgpu_rlc into a single file 2018-11-09 16:29:02 -05:00
amdgpu_gmc.c drm/amdgpu: Limit the max mc address to hole start 2018-10-10 14:48:02 -05:00
amdgpu_gmc.h drm/amdgpu: add a xgmi supported flag 2018-12-03 11:14:39 -05:00
amdgpu_gtt_mgr.c drm/amdgpu: revert "stop using gart_start as offset for the GTT domain" 2018-09-14 10:05:42 -05:00
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
amdgpu_ids.c drm/amdgpu: Fix typo in amdgpu_vmid_mgr_init 2018-10-16 15:08:08 -05:00
amdgpu_ids.h
amdgpu_ih.c drm/amdgpu: move more interrupt processing into amdgpu_irq.c 2018-09-26 21:09:22 -05:00
amdgpu_ih.h drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu: use scheduler fault instead of reset work 2018-11-05 14:21:03 -05:00
amdgpu_irq.h drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
amdgpu_job.c drm/scheduler: Add drm_sched_job_cleanup 2018-11-05 14:21:27 -05:00
amdgpu_job.h drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
amdgpu_kms.c drm/amdgpu: wait for IB test on first device open 2018-11-30 12:01:35 -05:00
amdgpu_mn.c mm, oom: distinguish blockable mode for mmu notifiers 2018-08-22 10:52:44 -07:00
amdgpu_mn.h
amdgpu_mode.h drm/amdgpu: Set FreeSync state using drm VRR properties 2018-11-28 15:55:35 -05:00
amdgpu_object.c drm/amdgpu: Add KFD VRAM limit checking 2018-12-07 18:13:15 -05:00
amdgpu_object.h drm/amdgpu: remove amdgpu_bo_backup_to_shadow 2018-12-03 11:14:48 -05:00
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pm.c drm/amdgpu: don't expose fan attributes on APUs 2018-11-30 12:01:12 -05:00
amdgpu_pm.h
amdgpu_prime.c drm: Remove defunct dma_buf_kmap stubs 2018-10-05 16:45:40 +01:00
amdgpu_psp.c drm/amdgpu/psp: Destroy psp ring when doing gpu reset 2018-12-07 17:53:46 -05:00
amdgpu_psp.h drm/amdgpu/psp: Add support VMR ring for VF 2018-12-07 17:53:46 -05:00
amdgpu_ring.c drm/amdgpu: Skip ring soft recovery when fence was NULL 2018-12-07 17:53:47 -05:00
amdgpu_ring.h drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
amdgpu_rlc.c drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
amdgpu_rlc.h drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
amdgpu_sa.c drm/amdgpu: Initialize fences array entries in amdgpu_sa_bo_next_hole 2018-09-14 09:37:17 -05:00
amdgpu_sched.c drm/amdgpu: fix incorrect use of drm_file->pid 2018-08-21 14:19:18 -05:00
amdgpu_sched.h
amdgpu_sdma.c drm/amdgpu: Add helper function to get sdma index 2018-11-05 15:49:38 -05:00
amdgpu_sdma.h drm/amdgpu: Add helper function to get sdma index 2018-11-05 15:49:38 -05:00
amdgpu_sync.c
amdgpu_sync.h
amdgpu_test.c
amdgpu_trace_points.c drm/amdgpu: correct SPDX identifier in amdgpu_trace_points.c 2018-10-15 16:16:06 -05:00
amdgpu_trace.h drm/amdgpu: use ring name instead of idx in traces 2018-11-05 14:21:29 -05:00
amdgpu_ttm.c drm/amdgpu: Retire amdgpu_ring.ready flag v4 2018-11-05 14:21:23 -05:00
amdgpu_ttm.h drm/ttm: initialize globals during device init (v2) 2018-11-05 14:21:21 -05:00
amdgpu_ucode.c drm/amdgpu: remove set but not used variable 'header' 2018-10-10 14:49:43 -05:00
amdgpu_ucode.h drm/amdgpu/psp: init/de-init xgmi ta microcode 2018-11-06 14:02:40 -05:00
amdgpu_uvd.c drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD 2018-11-26 15:47:34 -05:00
amdgpu_uvd.h drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD 2018-11-26 15:47:34 -05:00
amdgpu_vce.c drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
amdgpu_vce.h drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
amdgpu_vcn.c drm/amdgpu: remove messages from IB tests 2018-11-05 14:21:27 -05:00
amdgpu_vcn.h drm/amdgpu/vcn:Correct VCN cache window definition 2018-10-09 17:07:39 -05:00
amdgpu_vf_error.c
amdgpu_vf_error.h
amdgpu_virt.c drm/amd/amdgpu/sriov: Aligned the definition with libgv 2018-11-19 15:27:42 -05:00
amdgpu_virt.h drm/amd/amdgpu/sriov: Aligned the definition with libgv 2018-11-19 15:27:42 -05:00
amdgpu_vm.c drm/amdgpu: always reserve one more shared slot for pipelined BO moves 2018-12-07 17:53:45 -05:00
amdgpu_vm.h drm/amdgpu: use a single linked list for amdgpu_vm_bo_base 2018-09-13 15:14:12 -05:00
amdgpu_vram_mgr.c drm/amdgpu: try allocating VRAM as power of two 2018-09-12 16:28:28 -05:00
amdgpu_xgmi.c drm/amdgpu: Update XGMI node print 2018-12-04 14:37:23 -05:00
amdgpu_xgmi.h drm/amdgpu: Handle xgmi device removal. 2018-12-03 11:15:08 -05:00
amdgpu.h drm/amdgpu: Add KFD VRAM limit checking 2018-12-07 18:13:15 -05:00
atom.c
atom.h
atombios_crtc.c
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
atombios_encoders.h
atombios_i2c.c
atombios_i2c.h
ci_dpm.c drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
ci_dpm.h
ci_smc.c
cik_dpm.h
cik_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
cik_ih.h
cik_sdma.c drm/amdgpu: Refine function name 2018-11-05 15:49:37 -05:00
cik_sdma.h
cik.c drm/amdgpu: Doorbell index initialization for ASICs before vega10 2018-11-28 15:55:32 -05:00
cik.h drm/amdgpu: Doorbell index initialization for ASICs before vega10 2018-11-28 15:55:32 -05:00
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h
clearstate_si.h
clearstate_vi.h
cz_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
cz_ih.h
dce_v6_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v8_0.h
dce_v10_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v10_0.h
dce_v11_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v11_0.h
dce_virtual.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_virtual.h
df_v1_7.c
df_v1_7.h
df_v3_6.c
df_v3_6.h
emu_soc.c
gfx_v6_0.c drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
gfx_v6_0.h
gfx_v7_0.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
gfx_v7_0.h
gfx_v8_0.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
gfx_v8_0.h
gfx_v9_0.c drm/amdgpu: both support PCO FP5/AM4 rlc fw 2018-12-07 17:53:13 -05:00
gfx_v9_0.h
gfxhub_v1_0.c Merge branch 'drm-next-4.21' of git://people.freedesktop.org/~agd5f/linux into drm-next 2018-11-19 11:07:52 +10:00
gfxhub_v1_0.h drm/amdgpu/amdkfd: clean up mmhub and gfxhub includes 2018-11-05 14:21:24 -05:00
gfxhub_v1_1.c drm/amdgpu/gmc9: Adjust GART and AGP location with xgmi offset (v2) 2018-09-10 22:47:34 -05:00
gfxhub_v1_1.h drm/amdgpu/gmc9: add a new gfxhub 1.1 helper for xgmi 2018-09-10 22:46:22 -05:00
gmc_v6_0.c drm/amdgpu: Reorganize amdgpu_gmc_flush_gpu_tlb() for kfd to use 2018-11-05 14:21:15 -05:00
gmc_v6_0.h
gmc_v7_0.c drm/amdgpu: Reorganize amdgpu_gmc_flush_gpu_tlb() for kfd to use 2018-11-05 14:21:15 -05:00
gmc_v7_0.h
gmc_v8_0.c drm/amdgpu: Reorganize amdgpu_gmc_flush_gpu_tlb() for kfd to use 2018-11-05 14:21:15 -05:00
gmc_v8_0.h
gmc_v9_0.c drm/amdgpu: add missing error handling 2018-12-03 11:14:54 -05:00
gmc_v9_0.h drm/amdgpu/amdkfd: clean up mmhub and gfxhub includes 2018-11-05 14:21:24 -05:00
iceland_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
iceland_ih.h
iceland_sdma_pkt_open.h
Kconfig drm/amdgpu: Merge amdkfd into amdgpu 2018-08-28 11:22:42 -05:00
kv_dpm.c drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
kv_dpm.h
kv_smc.c
Makefile drm/amdgpu: separate amdgpu_rlc into a single file 2018-11-09 16:29:02 -05:00
mmhub_v1_0.c Merge branch 'drm-next-4.21' of git://people.freedesktop.org/~agd5f/linux into drm-next 2018-11-19 11:07:52 +10:00
mmhub_v1_0.h drm/amdgpu/amdkfd: clean up mmhub and gfxhub includes 2018-11-05 14:21:24 -05:00
mmsch_v1_0.h
mxgpu_ai.c drm/amdgpu: cleanup GPU recovery check a bit (v2) 2018-08-27 11:11:16 -05:00
mxgpu_ai.h
mxgpu_vi.c drm/amd/amdgpu: Remove duplicate header 2018-11-21 15:32:19 -05:00
mxgpu_vi.h
nbio_v6_1.c
nbio_v6_1.h
nbio_v7_0.c Revert "drm/amdgpu: Add nbio support for vega20 (v2)" 2018-08-27 11:10:22 -05:00
nbio_v7_0.h
nbio_v7_4.c drm/amdgpu: add vega20 sriov capability detection 2018-09-19 22:32:21 -05:00
nbio_v7_4.h drm/amdgpu: Add nbio 7.4 support for vega20 (v3) 2018-08-27 11:10:23 -05:00
ObjectID.h
ppsmc.h
psp_gfx_if.h drm/amdgpu/psp: Add support VMR ring for VF 2018-12-07 17:53:46 -05:00
psp_v3_1.c drm/amdgpu/psp: Update waiting in psp mode1 reset. 2018-12-03 11:15:00 -05:00
psp_v3_1.h
psp_v10_0.c drm/amdgpu: remove set but not used variable 'ring' 2018-11-19 15:27:42 -05:00
psp_v10_0.h
psp_v11_0.c drm/amdgpu/psp: Add support VMR ring for VF 2018-12-07 17:53:46 -05:00
psp_v11_0.h drm/amdgpu: Add psp 11.0 support for vega20. (v2) 2018-08-27 11:10:34 -05:00
r600_dpm.h
sdma_v2_4.c drm/amdgpu: Refine function name 2018-11-05 15:49:37 -05:00
sdma_v2_4.h
sdma_v3_0.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
sdma_v3_0.h
sdma_v4_0.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
sdma_v4_0.h
si_dma.c drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
si_dma.h
si_dpm.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
si_dpm.h
si_enums.h drm/amdgpu: enable ABGR and XBGR formats (v2) 2018-08-27 11:10:19 -05:00
si_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
si_ih.h
si_smc.c
si.c drm/amdgpu: Change SI/CI gfx/sdma/smu init sequence 2018-10-10 14:48:11 -05:00
si.h
sid.h drm/amdgpu: enable ABGR and XBGR formats (v2) 2018-08-27 11:10:19 -05:00
sislands_smc.h
soc15_common.h drm/amdgpu/soc15: fix warnings in register macro 2018-09-26 21:09:26 -05:00
soc15.c drm/amdgpu: add a xgmi supported flag 2018-12-03 11:14:39 -05:00
soc15.h drm/amdgpu: Doorbell layout for vega20 and future asic 2018-11-28 15:55:32 -05:00
soc15d.h
ta_xgmi_if.h drm/amdgpu/psp: add xgmi ta header 2018-11-06 14:02:41 -05:00
tonga_ih.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
tonga_ih.h
tonga_sdma_pkt_open.h
uvd_v4_2.c drm/amdgpu: Reorder uvd ring init before uvd resume 2018-11-28 15:55:36 -05:00
uvd_v4_2.h
uvd_v5_0.c drm/amdgpu: Reorder uvd ring init before uvd resume 2018-11-28 15:55:36 -05:00
uvd_v5_0.h
uvd_v6_0.c drm/amdgpu: Reorder uvd ring init before uvd resume 2018-11-28 15:55:36 -05:00
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu: Reorder uvd ring init before uvd resume 2018-11-28 15:55:36 -05:00
uvd_v7_0.h
vce_v2_0.c drm/amdgpu: Retire amdgpu_ring.ready flag v4 2018-11-05 14:21:23 -05:00
vce_v2_0.h
vce_v3_0.c drm/amd/amdgpu/vce_v3_0.c: Remove duplicate header 2018-11-21 15:32:19 -05:00
vce_v3_0.h
vce_v4_0.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
vce_v4_0.h
vcn_v1_0.c drm/amdgpu: Modify the argument of emit_ib interface 2018-11-05 14:21:50 -05:00
vcn_v1_0.h
vega10_ih.c drm/amdgpu: Use asic specific doorbell index instead of macro definition 2018-11-28 15:55:33 -05:00
vega10_ih.h
vega10_reg_init.c drm/amdgpu: Vega10 doorbell index initialization 2018-11-28 15:55:31 -05:00
vega10_sdma_pkt_open.h
vega20_reg_init.c drm/amdgpu: Doorbell layout for vega20 and future asic 2018-11-28 15:55:32 -05:00
vi_dpm.h
vi.c drm/amdgpu: Doorbell index initialization for ASICs before vega10 2018-11-28 15:55:32 -05:00
vi.h drm/amdgpu: Doorbell index initialization for ASICs before vega10 2018-11-28 15:55:32 -05:00
vid.h