]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdkfd: Fix byte align on VegaM
authorKent Russell <kent.russell@amd.com>
Tue, 23 Jul 2019 14:18:01 +0000 (10:18 -0400)
committerSasha Levin <sashal@kernel.org>
Sun, 25 Aug 2019 14:10:30 +0000 (10:10 -0400)
[ Upstream commit d65848657c3da5c0d4b685f823d0230f151ab34e ]

This was missed during the addition of VegaM support

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 4b192e0ce92f4044150de4a40656c548508dcb64..ed7977d0dd01827aebd51c7b6a026c6e195ca666 100644 (file)
@@ -1148,7 +1148,8 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(
                        adev->asic_type != CHIP_FIJI &&
                        adev->asic_type != CHIP_POLARIS10 &&
                        adev->asic_type != CHIP_POLARIS11 &&
-                       adev->asic_type != CHIP_POLARIS12) ?
+                       adev->asic_type != CHIP_POLARIS12 &&
+                       adev->asic_type != CHIP_VEGAM) ?
                        VI_BO_SIZE_ALIGN : 1;
 
        mapping_flags = AMDGPU_VM_PAGE_READABLE;