summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-04 07:26:20 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-04 07:26:20 +0000
commitbefd41770b4c5e188b0a7de7246f6815ebff7597 (patch)
tree8c6181b8a853dc5f4b3126b55238045c2706b8d0
parentbe96363cc9978d3a36d9c9cfc921aafb10ac58b8 (diff)
drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag
From Philip Yang 6fcd12cb90888ef2d8af8d4c04e913252eee4ef3 in linux-6.6.y/6.6.24 6c6064cbe58b43533e3451ad6a8ba9736c109ac3 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c
index 162d1f54ab7..9927850573e 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c
@@ -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;
}
/*