]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix a bug on flag table_freed
authorEric Huang <jinhuieric.huang@amd.com>
Sat, 29 May 2021 22:34:20 +0000 (18:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:55:39 +0000 (22:55 -0400)
commit8ec197817508f6fe36c6ab1cd546951e77351717
tree915d1620e23ff1726a896a21c7160c7a38ecd425
parent2b8cf964e914eeb9861396e1f9c9f3c92562e7e8
drm/amdgpu: Fix a bug on flag table_freed

table_freed will be always true when mapping a memory with size
bigger than 2MB. The problem is page table's entries are always
existed, but existing mapping depends on page talbe's bo, so
using a check of page table's bo existed will resolve the issue.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c