linux-stable/drivers/gpu/drm/amd/amdgpu
Horace Chen a05502e5cf drm/amdgpu: Reserve shared memory on VRAM for SR-IOV
SR-IOV need to reserve a piece of shared VRAM at the exact place
to exchange data betweem PF and VF. The start address and size of
the shared mem are passed to guest through VBIOS structure
VRAM_UsageByFirmware.

VRAM_UsageByFirmware is a general feature in VBIOS, it indicates
that VBIOS need to reserve a piece of memory on the VRAM.

Because the mem address is specified. Reserve it early in
amdgpu_ttm_init to make sure that it can monoplize the space.

Signed-off-by: Horace Chen <horace.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-10-09 16:30:16 -04:00
..
amdgpu.h drm/amdgpu: Reserve shared memory on VRAM for SR-IOV 2017-10-09 16:30:16 -04:00
amdgpu_acp.c drm/amd/amdgpu: Disabling Power Gating for Stoney platform 2017-08-15 14:46:22 -04:00
amdgpu_acp.h
amdgpu_acpi.c drm/amdgpu: Make amdgpu_atif_handler static 2017-08-15 14:46:08 -04:00
amdgpu_afmt.c
amdgpu_amdkfd.c drm/amdkfd: Clean up KFD style errors and warnings v2 2017-08-15 23:00:04 -04:00
amdgpu_amdkfd.h drm/amd: Update MEC HQD loading code for KFD 2017-08-15 23:00:17 -04:00
amdgpu_amdkfd_gfx_v7.c drm/amdgpu: Fixed a potential circular lock 2017-10-06 16:48:00 -04:00
amdgpu_amdkfd_gfx_v8.c drm/amdgpu: Fixed a potential circular lock 2017-10-06 16:48:00 -04:00
amdgpu_atombios.c drm/amdgpu: Reserve shared memory on VRAM for SR-IOV 2017-10-09 16:30:16 -04:00
amdgpu_atombios.h drm/amdgpu/atombios: add function for whether we need asic_init 2017-07-14 11:06:05 -04:00
amdgpu_atomfirmware.c drm/amdgpu: add get_clock_info for atomfirmware 2017-07-14 11:06:38 -04:00
amdgpu_atomfirmware.h drm/amdgpu: add get_clock_info for atomfirmware 2017-07-14 11:06:38 -04:00
amdgpu_atpx_handler.c
amdgpu_benchmark.c drm/amdgpu: Add a parameter to amdgpu_bo_create() 2017-08-15 14:45:58 -04:00
amdgpu_bios.c drm/amdgpu: reduce the time of reading VBIOS 2017-07-25 16:37:39 -04:00
amdgpu_bo_list.c drm/amdgpu: Fix preferred typo 2017-08-15 14:46:16 -04:00
amdgpu_cgs.c drm/amdgpu: add cgs interface to register pp handle 2017-09-28 16:03:34 -04:00
amdgpu_connectors.c drm/amd: Remove null check before kfree 2017-08-29 15:57:32 -04:00
amdgpu_connectors.h
amdgpu_cs.c drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file 2017-10-06 16:47:56 -04:00
amdgpu_ctx.c drm/amdgpu:make ctx_add_fence interruptible(v2) 2017-09-26 15:14:13 -04:00
amdgpu_device.c drm/amdgpu: Reserve shared memory on VRAM for SR-IOV 2017-10-09 16:30:16 -04:00
amdgpu_display.c drm/amdgpu: switch to drm_*{get,put} helpers 2017-08-15 14:46:12 -04:00
amdgpu_dpm.c drm/amdgpu: rename amdgpu_dpm_funcs to amd_pm_funcs 2017-09-18 23:30:34 -04:00
amdgpu_dpm.h drm/amd/powerplay: move set_clockgating_by_smu to pp func table 2017-10-06 16:47:46 -04:00
amdgpu_drv.c drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file 2017-10-06 16:47:56 -04:00
amdgpu_drv.h
amdgpu_encoders.c
amdgpu_fb.c amdgpu: Only destroy fbdev framebuffer if it was initialized 2017-09-13 12:10:11 -04:00
amdgpu_fence.c drm/amdgpu/SRIOV:implement guilty job TDR for(V2) 2017-05-24 17:40:40 -04:00
amdgpu_gart.c drm/amdgpu: move default gart size setting into gmc modules 2017-08-29 15:27:43 -04:00
amdgpu_gart.h drm/amdgpu: move default gart size setting into gmc modules 2017-08-29 15:27:43 -04:00
amdgpu_gds.h
amdgpu_gem.c drm/amdgpu: move taking mmap_sem into get_user_pages v2 2017-09-12 14:24:00 -04:00
amdgpu_gfx.c drm/amdgpu: add option for force enable multipipe policy for compute 2017-09-28 16:03:21 -04:00
amdgpu_gfx.h drm/amdgpu/gfx: consolidate mqd buffer setup code 2017-06-07 18:20:59 -04:00
amdgpu_gtt_mgr.c drm/amdgpu: fix amdgpu_ttm_bind 2017-08-29 15:27:46 -04:00
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c drm/amdgpu:fix world switch hang 2017-07-14 11:06:10 -04:00
amdgpu_ih.c drm/amdgpu: Track pending retry faults in IH and VM (v2) 2017-09-26 14:53:20 -04:00
amdgpu_ih.h drm/amdgpu: Track pending retry faults in IH and VM (v2) 2017-09-26 14:53:20 -04:00
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu/virtual_dce: Virtual display doesn't support disable vblank immediately 2017-08-29 15:27:38 -04:00
amdgpu_irq.h
amdgpu_job.c drm/amdgpu: allow flushing VMID0 before IB execution as well 2017-07-14 11:05:57 -04:00
amdgpu_kms.c drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file 2017-10-06 16:47:56 -04:00
amdgpu_mn.c Merge branch 'drm-next-4.15' of git://people.freedesktop.org/~agd5f/linux into drm-next 2017-09-28 08:37:02 +10:00
amdgpu_mn.h drm/amdgpu: move MMU notifier related defines to amdgpu_mn.h 2017-09-12 14:29:37 -04:00
amdgpu_mode.h Merge tag 'drm-misc-next-2017-08-08' of git://anongit.freedesktop.org/git/drm-misc into drm-next 2017-08-10 10:47:33 +10:00
amdgpu_object.c drm/amdgpu: simplify pinning into visible VRAM 2017-09-26 15:14:25 -04:00
amdgpu_object.h drm/amdgpu: fix and cleanup amdgpu_bo_create v2 2017-09-13 12:10:14 -04:00
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pm.c drm/amdgpu: delete pp_enable in adev 2017-09-28 16:03:33 -04:00
amdgpu_pm.h drm/amdgpu: Fix amdgpu_pm_acpi_event_handler warning 2017-08-15 14:46:06 -04:00
amdgpu_powerplay.c drm/amd/powerplay: refine code in amd_powerplay.c (v2) 2017-10-01 17:34:18 -04:00
amdgpu_powerplay.h
amdgpu_prime.c drm/amdgpu: Add gem_prime_mmap support 2017-09-26 15:14:37 -04:00
amdgpu_psp.c drm/amdgpu: move amdgpu_ucode_init_bo to amdgpu_device.c 2017-09-28 16:03:31 -04:00
amdgpu_psp.h drm/amdgpu: Add GPU reset functionality for Vega10 2017-09-26 15:14:06 -04:00
amdgpu_queue_mgr.c drm/amdgpu: map compute rings by least recently used pipe 2017-09-28 16:03:22 -04:00
amdgpu_ring.c drm/amdgpu: map compute rings by least recently used pipe 2017-09-28 16:03:22 -04:00
amdgpu_ring.h drm/amdgpu: map compute rings by least recently used pipe 2017-09-28 16:03:22 -04:00
amdgpu_sa.c drm/amdgpu: Add a parameter to amdgpu_bo_create() 2017-08-15 14:45:58 -04:00
amdgpu_sync.c drm/amdgpu: save list length when fence is signaled 2017-08-17 15:46:03 -04:00
amdgpu_sync.h drm/amdgpu: Add amdgpu_sync_wait 2017-06-09 11:29:46 -04:00
amdgpu_test.c drm/amdgpu: Add a parameter to amdgpu_bo_create() 2017-08-15 14:45:58 -04:00
amdgpu_trace.h drm/amdgpu: Use correct path to trace include 2017-09-01 15:01:20 -04:00
amdgpu_trace_points.c drm/amdgpu: clarify license in amdgpu_trace_points.c 2017-09-26 15:14:37 -04:00
amdgpu_ttm.c drm/amdgpu: Reserve shared memory on VRAM for SR-IOV 2017-10-09 16:30:16 -04:00
amdgpu_ttm.h drm/amd/amdgpu: Fold TTM debugfs entries into array (v2) 2017-09-26 15:14:04 -04:00
amdgpu_ucode.c drm/amdgpu/sriov:fix memory leak after gpu reset 2017-09-26 15:14:13 -04:00
amdgpu_ucode.h drm/amdgpu: add new member in gpu_info fw 2017-06-15 11:50:22 -04:00
amdgpu_uvd.c drm/amdgpu:fix uvd ring fini routine(v2) 2017-09-26 15:14:24 -04:00
amdgpu_uvd.h
amdgpu_vce.c drm/amdgpu: move amdgpu_cs_sysvm_access_required into find_mapping 2017-09-12 14:27:22 -04:00
amdgpu_vce.h drm/amdgpu: add saved_bo to save vce 4.0 context when suspend 2017-06-01 16:00:22 -04:00
amdgpu_vcn.c drm/amdgpu: Add a parameter to amdgpu_bo_create() 2017-08-15 14:45:58 -04:00
amdgpu_vcn.h drm/amdgpu: add vcn enc ring type and functions 2017-05-24 17:41:41 -04:00
amdgpu_vf_error.c drm/amdgpu: fix vf error handling 2017-09-28 16:03:20 -04:00
amdgpu_vf_error.h drm/amdgpu: fix vf error handling 2017-09-28 16:03:20 -04:00
amdgpu_virt.c drm/amdgpu: separate bo_va structure 2017-08-17 15:46:07 -04:00
amdgpu_virt.h drm/amdgpu: fix vf error handling 2017-09-28 16:03:20 -04:00
amdgpu_vm.c drm/amdgpu: Set the correct value for PDEs/PTEs of ATC memory on Raven 2017-10-09 16:30:16 -04:00
amdgpu_vm.h drm/amdgpu: Set the correct value for PDEs/PTEs of ATC memory on Raven 2017-10-09 16:30:16 -04:00
amdgpu_vram_mgr.c drm/amdgpu: move vram usage tracking into the vram manager v2 2017-08-17 15:46:03 -04:00
atom.c drm/amdgpu: Add debugfs file for VBIOS and version 2017-08-29 15:27:54 -04:00
atom.h drm/amdgpu: Add debugfs file for VBIOS and version 2017-08-29 15:27:54 -04:00
atombios_crtc.c drm/amdgpu/atom: fix ps allocation size for EnableDispPowerGating 2017-06-20 12:06:49 -04:00
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c
atombios_encoders.h
atombios_i2c.c
atombios_i2c.h
ci_dpm.c drm/amdgpu: move common pm sysfs code to amdgpu_device.c 2017-09-28 16:03:31 -04:00
ci_dpm.h
ci_smc.c drm/amd: fix include notation and remove -Iinclude/drm flag 2017-05-16 17:17:41 +02:00
cik.c drm/amdgpu: Correctly establish the suspend/resume hook for amdkfd 2017-07-14 11:06:37 -04:00
cik.h
cik_dpm.h drm/amdgpu: unify the interface of amd_pm_funcs 2017-09-18 23:30:35 -04:00
cik_ih.c drm/amdgpu: Handle GPUVM fault storms 2017-09-28 16:03:30 -04:00
cik_ih.h
cik_sdma.c drm/amdgpu: Add copy_pte_num_dw member in amdgpu_vm_pte_funcs 2017-09-26 15:14:22 -04:00
cik_sdma.h
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h drm/amdgpu: fix header on gfx9 clear state 2017-07-27 11:17:45 -04:00
clearstate_si.h
clearstate_vi.h
cz_ih.c drm/amdgpu: Handle GPUVM fault storms 2017-09-28 16:03:30 -04:00
cz_ih.h
dce_v6_0.c drm/amdgpu: switch to drm_*{get,put} helpers 2017-08-15 14:46:12 -04:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: switch to drm_*{get,put} helpers 2017-08-15 14:46:12 -04:00
dce_v8_0.h
dce_v10_0.c drm/amdgpu: switch to drm_*{get,put} helpers 2017-08-15 14:46:12 -04:00
dce_v10_0.h
dce_v11_0.c drm/amdgpu: switch to drm_*{get,put} helpers 2017-08-15 14:46:12 -04:00
dce_v11_0.h
dce_virtual.c drm/amdgpu/dce_virtual: remove error message for vega10 2017-08-15 14:45:43 -04:00
dce_virtual.h
gfx_v6_0.c drm/amdgpu: revert tile table update for oland 2017-09-14 14:22:57 -04:00
gfx_v6_0.h
gfx_v7_0.c drm/amdgpu: Program SH_STATIC_MEM_CONFIG globally, not per-VMID 2017-08-15 23:00:18 -04:00
gfx_v7_0.h drm/amdgpu: unify MQD programming sequence for kfd and amdgpu v2 2017-05-31 16:48:48 -04:00
gfx_v8_0.c drm/amd/powerplay: move set_clockgating_by_smu to pp func table 2017-10-06 16:47:46 -04:00
gfx_v8_0.h drm/amdgpu: unify MQD programming sequence for kfd and amdgpu v2 2017-05-31 16:48:48 -04:00
gfx_v9_0.c amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
gfx_v9_0.h drm/amdgpu: set gfx_v9_0_ip_funcs as static 2017-08-15 14:46:13 -04:00
gfxhub_v1_0.c drm/amdgpu:halt when vm fault 2017-09-26 15:14:22 -04:00
gfxhub_v1_0.h drm/amdgpu: drop old ip definitions for gfxhub and mmhub 2017-08-15 14:46:00 -04:00
gmc_v6_0.c drm/amdgpu:fix firmware memoryleak(v2) 2017-09-26 15:14:25 -04:00
gmc_v6_0.h
gmc_v7_0.c drm/amdgpu:fix firmware memoryleak(v2) 2017-09-26 15:14:25 -04:00
gmc_v7_0.h
gmc_v8_0.c drm/amdgpu:fix firmware memoryleak(v2) 2017-09-26 15:14:25 -04:00
gmc_v8_0.h
gmc_v9_0.c drm/amd/amdgpu: add vega10/raven mmhub/athub golden settings 2017-09-26 15:14:18 -04:00
gmc_v9_0.h
iceland_ih.c drm/amdgpu: Handle GPUVM fault storms 2017-09-28 16:03:30 -04:00
iceland_ih.h
iceland_sdma_pkt_open.h
Kconfig drm/amdgpu/radeon: Use radeon by default for CIK GPUs 2017-06-08 10:54:37 -04:00
kv_dpm.c drm/amdgpu: move common pm sysfs code to amdgpu_device.c 2017-09-28 16:03:31 -04:00
kv_dpm.h
kv_smc.c drm/amd: fix include notation and remove -Iinclude/drm flag 2017-05-16 17:17:41 +02:00
Makefile drm/amdgpu: Use correct path to trace include 2017-09-01 15:01:20 -04:00
mmhub_v1_0.c drm/amdgpu:halt when vm fault 2017-09-26 15:14:22 -04:00
mmhub_v1_0.h drm/amdgpu: drop old ip definitions for gfxhub and mmhub 2017-08-15 14:46:00 -04:00
mmsch_v1_0.h drm/amdgpu/vce4: move mm table constructions functions into mmsch header file 2017-04-28 17:32:57 -04:00
mxgpu_ai.c drm/amdgpu: Support passing amdgpu critical error to host via GPU Mailbox. 2017-07-14 11:05:52 -04:00
mxgpu_ai.h drm/amdgpu/sriov:increate mailbox polling timeout 2017-09-26 15:14:12 -04:00
mxgpu_vi.c drm/amdgpu: Support passing amdgpu critical error to host via GPU Mailbox. 2017-07-14 11:05:52 -04:00
mxgpu_vi.h drm/amdgpu/sriov:increate mailbox polling timeout 2017-09-26 15:14:12 -04:00
nbio_v6_1.c amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
nbio_v6_1.h amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
nbio_v7_0.c amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
nbio_v7_0.h amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
ObjectID.h
ppsmc.h
psp_gfx_if.h
psp_v3_1.c drm/amdgpu: Add GPU reset functionality for Vega10 2017-09-26 15:14:06 -04:00
psp_v3_1.h drm/amdgpu: Add GPU reset functionality for Vega10 2017-09-26 15:14:06 -04:00
psp_v10_0.c drm/amdgpu: Add GPU reset functionality for Vega10 2017-09-26 15:14:06 -04:00
psp_v10_0.h drm/amdgpu: Add GPU reset functionality for Vega10 2017-09-26 15:14:06 -04:00
r600_dpm.h
sdma_v2_4.c drm/amdgpu: delete dead code about fw load check 2017-09-28 16:03:32 -04:00
sdma_v2_4.h
sdma_v3_0.c drm/amdgpu: delete dead code about fw load check 2017-09-28 16:03:32 -04:00
sdma_v3_0.h
sdma_v4_0.c amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
sdma_v4_0.h
si.c drm/amdgpu: Fix undue fallthroughs in golden registers initialization 2017-08-15 14:46:05 -04:00
si.h
si_dma.c drm/amdgpu: Add copy_pte_num_dw member in amdgpu_vm_pte_funcs 2017-09-26 15:14:22 -04:00
si_dma.h
si_dpm.c drm/amdgpu: move common pm sysfs code to amdgpu_device.c 2017-09-28 16:03:31 -04:00
si_dpm.h drm/amdgpu: unify the interface of amd_pm_funcs 2017-09-18 23:30:35 -04:00
si_enums.h
si_ih.c drm/amdgpu: Add prescreening stage in IH processing (v2) 2017-09-26 13:07:04 -04:00
si_ih.h
si_smc.c drm/amd: fix include notation and remove -Iinclude/drm flag 2017-05-16 17:17:41 +02:00
sid.h
sislands_smc.h
soc15.c amdgpu/nbio: use constant nbio_hdp_flush_reg structs. 2017-09-29 12:24:39 -04:00
soc15.h drm/amdgpu: apply nbio7 for Raven (v3) 2017-05-24 17:41:17 -04:00
soc15_common.h drm/amdgpu: Add WREG32_SOC15_NO_KIQ macro define 2017-07-14 11:06:10 -04:00
soc15d.h drm/amdgpu: fix vega10 graphic hang issue in S3 test 2017-08-18 12:02:11 -04:00
tonga_ih.c drm/amdgpu: Handle GPUVM fault storms 2017-09-28 16:03:30 -04:00
tonga_ih.h
tonga_sdma_pkt_open.h
uvd_v4_2.c drm/amdgpu: various cleanups for uvd/vce. 2017-04-04 13:40:33 -04:00
uvd_v4_2.h
uvd_v5_0.c drm/amdgpu: various cleanups for uvd/vce. 2017-04-04 13:40:33 -04:00
uvd_v5_0.h
uvd_v6_0.c drm/amdgpu: add uvd enc irq 2017-10-06 17:44:11 -04:00
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu:use formal register to trigger hdp invalidate 2017-09-26 15:14:10 -04:00
uvd_v7_0.h
vce_v2_0.c drm/amdgpu: various cleanups for uvd/vce. 2017-04-04 13:40:33 -04:00
vce_v2_0.h
vce_v3_0.c drm/amdgpu: Program ring for vce instance 1 at its register space 2017-05-31 14:16:37 -04:00
vce_v3_0.h
vce_v4_0.c drm/amdgpu: remove the clearance of vce 4.0 interrupt mask 2017-09-26 15:14:03 -04:00
vce_v4_0.h
vcn_v1_0.c drm/amdgpu:use formal register to trigger hdp invalidate 2017-09-26 15:14:10 -04:00
vcn_v1_0.h drm/amdgpu: add vcn ip block and type 2017-05-24 17:41:27 -04:00
vega10_ih.c drm/amdgpu: Handle GPUVM fault storms 2017-09-28 16:03:30 -04:00
vega10_ih.h
vega10_sdma_pkt_open.h
vi.c drm/amd/powerplay: move set_clockgating_by_smu to pp func table 2017-10-06 16:47:46 -04:00
vi.h
vi_dpm.h
vid.h drm/amdgpu: add uvd enc command in header 2017-10-06 17:43:56 -04:00