mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/amdgpu/gmc: add a way to force a particular placement for GART
We normally place GART based on the location of VRAM and the available address space around that, but provide an option to force a particular location for hardware that needs it. v2: Switch to passing the placement via parameter Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -199,6 +199,12 @@ struct amdgpu_mem_partition_info {
|
||||
|
||||
#define INVALID_PFN -1
|
||||
|
||||
enum amdgpu_gart_placement {
|
||||
AMDGPU_GART_PLACEMENT_BEST_FIT = 0,
|
||||
AMDGPU_GART_PLACEMENT_HIGH,
|
||||
AMDGPU_GART_PLACEMENT_LOW,
|
||||
};
|
||||
|
||||
struct amdgpu_gmc {
|
||||
/* FB's physical address in MMIO space (for CPU to
|
||||
* map FB). This is different compared to the agp/
|
||||
@@ -391,7 +397,8 @@ void amdgpu_gmc_sysvm_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc
|
||||
void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc,
|
||||
u64 base);
|
||||
void amdgpu_gmc_gart_location(struct amdgpu_device *adev,
|
||||
struct amdgpu_gmc *mc);
|
||||
struct amdgpu_gmc *mc,
|
||||
enum amdgpu_gart_placement gart_placement);
|
||||
void amdgpu_gmc_agp_location(struct amdgpu_device *adev,
|
||||
struct amdgpu_gmc *mc);
|
||||
void amdgpu_gmc_set_agp_default(struct amdgpu_device *adev,
|
||||
|
||||
Reference in New Issue
Block a user