If SDMA is not available, warn if we try and copy a GFX12 DCC buffer with the CPU. Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 9f922ec50ea2d..884e6b6984619 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -565,10 +565,12 @@ static int amdgpu_bo_move(struct ttm_buffer_object *bo, bool evict, } amdgpu_bo_move_notify(bo, evict, new_mem); - if (adev->mman.buffer_funcs_enabled) + if (adev->mman.buffer_funcs_enabled) { r = amdgpu_move_blit(bo, evict, new_mem, old_mem); - else + } else { + WARN_ON(abo->flags & AMDGPU_GEM_CREATE_GFX12_DCC); r = -ENODEV; + } if (r) { /* Check that all memory is CPU accessible */ -- 2.47.0