diff options
| author | Huang Rui <[email protected]> | 2020-12-16 09:21:27 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-06-04 20:03:12 +0000 |
| commit | e15a5fb9b6ac2556a4fe59dba5faa34c695e8b73 (patch) | |
| tree | 551a96ee3cb17952c9de6452d24da20e63e7a58d /drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | |
| parent | drm/amdgpu: add gfx golden settings for yellow carp (v3) (diff) | |
| download | kernel-e15a5fb9b6ac2556a4fe59dba5faa34c695e8b73.tar.gz kernel-e15a5fb9b6ac2556a4fe59dba5faa34c695e8b73.zip | |
drm/amdgpu: introduce a stolen reserved buffer to protect specific buffer region (v2)
Some ASICs such as Yellow Carp needs to reserve a region of video memory
to avoid access from driver. So this patch is to introduce a stolen
reserved buffer to protect specific buffer region.
v2: free this buffer in amdgpu_ttm_fini.
Signed-off-by: Huang Rui <[email protected]>
Acked-and-Tested-by: Aaron Liu <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h index 6aa1d52d3aee..e55201134a01 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h @@ -332,6 +332,7 @@ amdgpu_gmc_set_vm_fault_masks(struct amdgpu_device *adev, int hub_type, bool enable); void amdgpu_gmc_get_vbios_allocations(struct amdgpu_device *adev); +void amdgpu_gmc_get_reserved_allocation(struct amdgpu_device *adev); void amdgpu_gmc_init_pdb0(struct amdgpu_device *adev); uint64_t amdgpu_gmc_vram_mc2pa(struct amdgpu_device *adev, uint64_t mc_addr); |
