diff options
| author | Christian König <[email protected]> | 2022-02-04 15:17:47 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-01-03 21:50:14 +0000 |
| commit | da2f992091e2576f93453f3e2dec365538b3ccab (patch) | |
| tree | 4531242fc79a18d8f790558287da211e794af1fc /drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |
| parent | drm/amdgpu: rename vram_scratch into mem_scratch (diff) | |
| download | kernel-da2f992091e2576f93453f3e2dec365538b3ccab.tar.gz kernel-da2f992091e2576f93453f3e2dec365538b3ccab.zip | |
drm/amdgpu: cleanup visible vram size handling
Centralize the limit handling and validation in one place instead
of spreading that around in different hw generations.
Signed-off-by: Christian König <[email protected]>
Acked-by: Luben Tuikov <[email protected]>
Acked-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 24a256cfd7ce..8256795f6646 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -587,10 +587,7 @@ static int gmc_v8_0_mc_init(struct amdgpu_device *adev) } #endif - /* In case the PCI BAR is larger than the actual amount of vram */ adev->gmc.visible_vram_size = adev->gmc.aper_size; - if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) - adev->gmc.visible_vram_size = adev->gmc.real_vram_size; /* set the gart size */ if (amdgpu_gart_size == -1) { |
