mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
drm/ttm: use an operation ctx for ttm_tt_populate in ttm_bo_driver (v2)
forward the operation context to ttm_tt_populate as well, and the ultimate goal is swapout enablement for reserved BOs. v2: squash in fix for vboxvideo Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -324,12 +324,13 @@ static struct ttm_backend_func virtio_gpu_backend_func = {
|
||||
.destroy = &virtio_gpu_ttm_backend_destroy,
|
||||
};
|
||||
|
||||
static int virtio_gpu_ttm_tt_populate(struct ttm_tt *ttm)
|
||||
static int virtio_gpu_ttm_tt_populate(struct ttm_tt *ttm,
|
||||
struct ttm_operation_ctx *ctx)
|
||||
{
|
||||
if (ttm->state != tt_unpopulated)
|
||||
return 0;
|
||||
|
||||
return ttm_pool_populate(ttm);
|
||||
return ttm_pool_populate(ttm, ctx);
|
||||
}
|
||||
|
||||
static void virtio_gpu_ttm_tt_unpopulate(struct ttm_tt *ttm)
|
||||
|
||||
Reference in New Issue
Block a user