]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Moved gart_size calculation to mc_init functions
authorOak Zeng <Oak.Zeng@amd.com>
Sat, 3 Oct 2020 01:03:11 +0000 (20:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:30 +0000 (22:58 -0400)
commit2739263bb9c14e0e99aee61963234c0a01e04c08
tree8b91bc4ac5859a777fd27d28af5ba49440d4880f
parent472ee0a957bd45dece30e3ffab82a0ab79ab9863
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c