diff options
author | Yi Li <liyi@loongson.cn> | 2021-05-14 09:40:39 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-05-20 01:01:51 +0300 |
commit | d53751568359e5b3ffb859b13cbd79dc77a571f1 (patch) | |
tree | b613322faa75c231e77fbce84a128551bf95825c /drivers/gpu/drm/amd/amdgpu/soc15.c | |
parent | 0c8df343c200529e6b9820bdfed01814140f75e4 (diff) | |
download | linux-d53751568359e5b3ffb859b13cbd79dc77a571f1.tar.xz |
drm/amdgpu: Fix GPU TLB update error when PAGE_SIZE > AMDGPU_PAGE_SIZE
When PAGE_SIZE is larger than AMDGPU_PAGE_SIZE, the number of GPU TLB
entries which need to update in amdgpu_map_buffer() should be multiplied
by AMDGPU_GPU_PAGES_IN_CPU_PAGE (PAGE_SIZE / AMDGPU_PAGE_SIZE).
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Yi Li <liyi@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
0 files changed, 0 insertions, 0 deletions