Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: don't validate TILE_SPLIT on GFX9

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Marek Olšák and committed by
Alex Deucher
9079ac76 00ac6f6b

+4 -1
+4 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
··· 815 815 816 816 int amdgpu_bo_set_tiling_flags(struct amdgpu_bo *bo, u64 tiling_flags) 817 817 { 818 - if (AMDGPU_TILING_GET(tiling_flags, TILE_SPLIT) > 6) 818 + struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); 819 + 820 + if (adev->family <= AMDGPU_FAMILY_CZ && 821 + AMDGPU_TILING_GET(tiling_flags, TILE_SPLIT) > 6) 819 822 return -EINVAL; 820 823 821 824 bo->tiling_flags = tiling_flags;