diff options
author | Oak Zeng <Oak.Zeng@amd.com> | 2020-10-02 20:03:11 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-03-23 22:58:30 -0400 |
commit | f1dc12ca56b25a37559e82c294be1250ed5858e4 (patch) | |
tree | 8b91bc4ac5859a777fd27d28af5ba49440d4880f /drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | |
parent | 1f928f51593ca07e2b125ca862fcff687e9e498b (diff) | |
download | linux-stable-f1dc12ca56b25a37559e82c294be1250ed5858e4.tar.gz linux-stable-f1dc12ca56b25a37559e82c294be1250ed5858e4.tar.bz2 linux-stable-f1dc12ca56b25a37559e82c294be1250ed5858e4.zip |
drm/amdgpu: Moved gart_size calculation to mc_init functions
In amdgpu_gmc_gart_location function, gart_size is adjusted
by a smu_prv_buffer_size. This logic shouldn't belong to
this function. Move the logic to the mc_init functions
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Christian Konig <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c index dee2b34effb6..210ada2289ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c @@ -414,6 +414,7 @@ static int gmc_v7_0_mc_init(struct amdgpu_device *adev) adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; } + adev->gmc.gart_size += adev->pm.smu_prv_buffer_size; gmc_v7_0_vram_gtt_location(adev, &adev->gmc); return 0; |