drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag
authorjsg <jsg@openbsd.org>
Thu, 4 Apr 2024 07:26:19 +0000 (07:26 +0000)
committerjsg <jsg@openbsd.org>
Thu, 4 Apr 2024 07:26:19 +0000 (07:26 +0000)
From Philip Yang
6fcd12cb90888ef2d8af8d4c04e913252eee4ef3 in linux-6.6.y/6.6.24
6c6064cbe58b43533e3451ad6a8ba9736c109ac3 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c

index 162d1f5..9927850 100644 (file)
@@ -876,6 +876,7 @@ static void amdgpu_ttm_gart_bind(struct amdgpu_device *adev,
                amdgpu_gart_bind(adev, gtt->offset, ttm->num_pages,
                                 gtt->ttm.dma_address, flags);
        }
+       gtt->bound = true;
 }
 
 /*