diff options
| author | Philip Yang <[email protected]> | 2022-10-03 21:53:25 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-10-06 16:08:18 +0000 |
| commit | 2302d507149f0ae7cc697089ab5675a2d4cf9d2a (patch) | |
| tree | dcf4c091c8b2128da2806aa912fd4d60ada59eb2 /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |
| parent | drm/amdgpu: Set vmbo destroy after pt bo is created (diff) | |
| download | kernel-2302d507149f0ae7cc697089ab5675a2d4cf9d2a.tar.gz kernel-2302d507149f0ae7cc697089ab5675a2d4cf9d2a.zip | |
drm/amdgpu: Correct amdgpu_amdkfd_total_mem_size calculation
amdkfd_total_mem_size is the size of total GPUs vram plus system memory
to estimate page tables memory usage and leave enough VRAM room for page
tables allocation.
Calculate amdkfd_total_mem_size in amdgpu_amdkfd_device_probe is
incorrect because adev->gmc.real_vram_size is still 0 called from
amdgpu_device_ip_early_init. Move the calculation
to amdgpu_amdkfd_device_init to get the correct VRAM size.
Do reverse calculation in amdgpu_amdkfd_device_fini_sw to support
hot-unplugging GPUs.
Signed-off-by: Philip Yang <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
0 files changed, 0 insertions, 0 deletions
